SlideShare uma empresa Scribd logo
1 de 7
Finite State Machines
AS and A2 compared
• AS Revision
  – Finite state machines with output
    • Mealy machines
  – Finite state machines without outputs
  – State Transition Tables
  – Decision tables
A2 new topics
– State Transition Diagrams
– Finite state machines with output
  • Mealy and Moore machines
– Finite State Automata
  • Deterministic FSAs (DFAs)
  • Non-Deterministic FSAs (NFAs)
Revision: Mealy Machines
                                        Output on Transition
• Using Boole Deusto

• First task – ballpoint
  pen.
• Two states, retracted
  and extended. Input
  is either a click (1) or
  fumble (0). Output is      Transition table for ballpoint
  ready to write (1) or      pen
  not ready to write (0)     Current     R    R     E         E
                             Input       1    0     1         0
                             Next        E    R     R         E
                             Output      1    0     0         0
Challenge
• Using Boole Deusto or JFLAP:
• Create a machine that outputs 0 unless
  it sees the sequence 111, in which
  case it outputs a single 1.
• Create a vending machine which takes
  either 5p or 10p and gives 15p sweets
  plus change.
Revision – FSMs without outputs
• Ultra-Basic combination
  lock.
• Two digit code ‘20’
• Numbers 012

• Start State
• Accepting State           Decision Table
                            First is 2       Y   Y   N   N

• Use software VAS          Second is 0      Y   N   Y   N
                            Output Pass      Y   N   N   N
Revision – FSMs without outputs
• Ultra-Basic combination
  lock.
• Two digit code ‘20’
• Numbers 012

• Start State
• Accepting State           Decision Table
                            First is 2       Y   Y   N   N

• Use software VAS          Second is 0      Y   N   Y   N
                            Output Pass      Y   N   N   N

Mais conteúdo relacionado

Mais procurados

Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machineEhatsham Riaz
 
Moore Mealy Machine Conversion
Moore Mealy Machine Conversion Moore Mealy Machine Conversion
Moore Mealy Machine Conversion Aiman Hafeez
 
mealy and moore machines
mealy and moore machinesmealy and moore machines
mealy and moore machinesUnsa Shakir
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machinesAYESHA JAVED
 
Analysis of state machines
Analysis of state machinesAnalysis of state machines
Analysis of state machinesAbhilash Nair
 
Designing Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineDesigning Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineAbhilash Nair
 
Automata presentation.
Automata presentation.Automata presentation.
Automata presentation.RehanZafar13
 
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
UNIT-II  : SEQUENTIAL CIRCUIT DESIGN UNIT-II  : SEQUENTIAL CIRCUIT DESIGN
UNIT-II : SEQUENTIAL CIRCUIT DESIGN Dr.YNM
 
UNIT-I DIGITAL SYSTEM DESIGN
UNIT-I DIGITAL SYSTEM DESIGN UNIT-I DIGITAL SYSTEM DESIGN
UNIT-I DIGITAL SYSTEM DESIGN Dr.YNM
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counterRONAK SUTARIYA
 
System design methodology
System design methodologySystem design methodology
System design methodologydennis gookyi
 
UNIT-V-FPGA &CPLD ARCHITECTURES AND APPLICATIONS
UNIT-V-FPGA &CPLD ARCHITECTURES AND APPLICATIONSUNIT-V-FPGA &CPLD ARCHITECTURES AND APPLICATIONS
UNIT-V-FPGA &CPLD ARCHITECTURES AND APPLICATIONSDr.YNM
 
Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuitsG Subramaniamg
 

Mais procurados (16)

Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
 
Moore Mealy Machine Conversion
Moore Mealy Machine Conversion Moore Mealy Machine Conversion
Moore Mealy Machine Conversion
 
mealy and moore machines
mealy and moore machinesmealy and moore machines
mealy and moore machines
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
Analysis of state machines
Analysis of state machinesAnalysis of state machines
Analysis of state machines
 
Moore machine (automata)
Moore  machine (automata)Moore  machine (automata)
Moore machine (automata)
 
Lec 25 26_27
Lec 25 26_27Lec 25 26_27
Lec 25 26_27
 
Designing Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineDesigning Clocked Synchronous State Machine
Designing Clocked Synchronous State Machine
 
Automata presentation.
Automata presentation.Automata presentation.
Automata presentation.
 
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
UNIT-II  : SEQUENTIAL CIRCUIT DESIGN UNIT-II  : SEQUENTIAL CIRCUIT DESIGN
UNIT-II : SEQUENTIAL CIRCUIT DESIGN
 
UNIT-I DIGITAL SYSTEM DESIGN
UNIT-I DIGITAL SYSTEM DESIGN UNIT-I DIGITAL SYSTEM DESIGN
UNIT-I DIGITAL SYSTEM DESIGN
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counter
 
System design methodology
System design methodologySystem design methodology
System design methodology
 
Quntum error
Quntum errorQuntum error
Quntum error
 
UNIT-V-FPGA &CPLD ARCHITECTURES AND APPLICATIONS
UNIT-V-FPGA &CPLD ARCHITECTURES AND APPLICATIONSUNIT-V-FPGA &CPLD ARCHITECTURES AND APPLICATIONS
UNIT-V-FPGA &CPLD ARCHITECTURES AND APPLICATIONS
 
Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuits
 

Destaque

Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machineslavishka_anuj
 
Introduction to State Machines
Introduction to State MachinesIntroduction to State Machines
Introduction to State Machinescodeofficer
 
Divide by N clock
Divide by N clockDivide by N clock
Divide by N clockMantra VLSI
 
Mealy and moore machines
Mealy and moore machinesMealy and moore machines
Mealy and moore machinesgrahamwell
 
Moore and mealy machine
Moore and mealy machineMoore and mealy machine
Moore and mealy machineMian Munib
 
An introduction to scan test for test engineers
An introduction to scan test for test engineersAn introduction to scan test for test engineers
An introduction to scan test for test engineersMohit Mongia
 
Sayısal Devreler 07, Feza BUZLUCA
Sayısal Devreler 07, Feza BUZLUCASayısal Devreler 07, Feza BUZLUCA
Sayısal Devreler 07, Feza BUZLUCAFeza BUZLUCA
 
Propuesta Clubpoint branding planner
Propuesta Clubpoint branding plannerPropuesta Clubpoint branding planner
Propuesta Clubpoint branding plannerStudio WA!
 
Good and bad effect of television
Good and bad effect of televisionGood and bad effect of television
Good and bad effect of televisionshaikhbushra
 
Roberto payán información del micrositio
Roberto payán información del micrositioRoberto payán información del micrositio
Roberto payán información del micrositiomarimba de chonta
 
Cuentos 2008 De Cristian Carcamo
Cuentos 2008 De Cristian CarcamoCuentos 2008 De Cristian Carcamo
Cuentos 2008 De Cristian Carcamoguestefe2634
 
Gestion sostenible de residuos domiciliarios
Gestion sostenible de residuos domiciliariosGestion sostenible de residuos domiciliarios
Gestion sostenible de residuos domiciliariosCarmen Garcia Sanchez
 

Destaque (20)

Finite State Machines - Why the fear?
Finite State Machines - Why the fear?Finite State Machines - Why the fear?
Finite State Machines - Why the fear?
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
Introduction to State Machines
Introduction to State MachinesIntroduction to State Machines
Introduction to State Machines
 
Divide by N clock
Divide by N clockDivide by N clock
Divide by N clock
 
Mealy and moore machines
Mealy and moore machinesMealy and moore machines
Mealy and moore machines
 
Counters
CountersCounters
Counters
 
Moore and mealy machine
Moore and mealy machineMoore and mealy machine
Moore and mealy machine
 
An introduction to scan test for test engineers
An introduction to scan test for test engineersAn introduction to scan test for test engineers
An introduction to scan test for test engineers
 
Sayısal Devreler 07, Feza BUZLUCA
Sayısal Devreler 07, Feza BUZLUCASayısal Devreler 07, Feza BUZLUCA
Sayısal Devreler 07, Feza BUZLUCA
 
Deterministic Finite Automata
Deterministic Finite AutomataDeterministic Finite Automata
Deterministic Finite Automata
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
Matlab
MatlabMatlab
Matlab
 
Propuesta Clubpoint branding planner
Propuesta Clubpoint branding plannerPropuesta Clubpoint branding planner
Propuesta Clubpoint branding planner
 
Good and bad effect of television
Good and bad effect of televisionGood and bad effect of television
Good and bad effect of television
 
Roberto payán información del micrositio
Roberto payán información del micrositioRoberto payán información del micrositio
Roberto payán información del micrositio
 
Cuentos 2008 De Cristian Carcamo
Cuentos 2008 De Cristian CarcamoCuentos 2008 De Cristian Carcamo
Cuentos 2008 De Cristian Carcamo
 
2016 práctica calameo william
2016 práctica calameo william2016 práctica calameo william
2016 práctica calameo william
 
Cuál es mi idea
Cuál es mi ideaCuál es mi idea
Cuál es mi idea
 
Gestion sostenible de residuos domiciliarios
Gestion sostenible de residuos domiciliariosGestion sostenible de residuos domiciliarios
Gestion sostenible de residuos domiciliarios
 
Kim's portfolio
Kim's portfolioKim's portfolio
Kim's portfolio
 

Mais de grahamwell

Excel =if function
Excel =if functionExcel =if function
Excel =if functiongrahamwell
 
Excel Min max-average
Excel Min max-average Excel Min max-average
Excel Min max-average grahamwell
 
What is binary and why do we use it?
What is binary and why do we use it?What is binary and why do we use it?
What is binary and why do we use it?grahamwell
 
Introduction to touch develop
Introduction to touch developIntroduction to touch develop
Introduction to touch developgrahamwell
 
Introduction to touch develop
Introduction to touch developIntroduction to touch develop
Introduction to touch developgrahamwell
 
The software story
The software storyThe software story
The software storygrahamwell
 
Turtle graphics
Turtle graphicsTurtle graphics
Turtle graphicsgrahamwell
 
Database field types
Database field typesDatabase field types
Database field typesgrahamwell
 
Pascal names and types
Pascal names and typesPascal names and types
Pascal names and typesgrahamwell
 
Python part two names and types
Python part two names and typesPython part two names and types
Python part two names and typesgrahamwell
 
Abstraction - Year 9
Abstraction - Year 9Abstraction - Year 9
Abstraction - Year 9grahamwell
 
Thinking about your project
Thinking about your projectThinking about your project
Thinking about your projectgrahamwell
 
The rail fence
The rail fenceThe rail fence
The rail fencegrahamwell
 
Rsa encryption
Rsa encryptionRsa encryption
Rsa encryptiongrahamwell
 
Server side scripts
Server side scriptsServer side scripts
Server side scriptsgrahamwell
 
Revision topic 1 sensors and control
Revision topic 1 sensors and controlRevision topic 1 sensors and control
Revision topic 1 sensors and controlgrahamwell
 

Mais de grahamwell (20)

Pseudocode
PseudocodePseudocode
Pseudocode
 
Excel =if function
Excel =if functionExcel =if function
Excel =if function
 
Excel Min max-average
Excel Min max-average Excel Min max-average
Excel Min max-average
 
What is binary and why do we use it?
What is binary and why do we use it?What is binary and why do we use it?
What is binary and why do we use it?
 
Introduction to touch develop
Introduction to touch developIntroduction to touch develop
Introduction to touch develop
 
Introduction to touch develop
Introduction to touch developIntroduction to touch develop
Introduction to touch develop
 
The software story
The software storyThe software story
The software story
 
Turtle graphics
Turtle graphicsTurtle graphics
Turtle graphics
 
Database field types
Database field typesDatabase field types
Database field types
 
Databases 101
Databases 101Databases 101
Databases 101
 
Kodu controls
Kodu controlsKodu controls
Kodu controls
 
Pascal names and types
Pascal names and typesPascal names and types
Pascal names and types
 
Python part two names and types
Python part two names and typesPython part two names and types
Python part two names and types
 
Abstraction - Year 9
Abstraction - Year 9Abstraction - Year 9
Abstraction - Year 9
 
Thinking about your project
Thinking about your projectThinking about your project
Thinking about your project
 
The rail fence
The rail fenceThe rail fence
The rail fence
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 
Rsa encryption
Rsa encryptionRsa encryption
Rsa encryption
 
Server side scripts
Server side scriptsServer side scripts
Server side scripts
 
Revision topic 1 sensors and control
Revision topic 1 sensors and controlRevision topic 1 sensors and control
Revision topic 1 sensors and control
 

Finite state machines

  • 2. AS and A2 compared • AS Revision – Finite state machines with output • Mealy machines – Finite state machines without outputs – State Transition Tables – Decision tables
  • 3. A2 new topics – State Transition Diagrams – Finite state machines with output • Mealy and Moore machines – Finite State Automata • Deterministic FSAs (DFAs) • Non-Deterministic FSAs (NFAs)
  • 4. Revision: Mealy Machines Output on Transition • Using Boole Deusto • First task – ballpoint pen. • Two states, retracted and extended. Input is either a click (1) or fumble (0). Output is Transition table for ballpoint ready to write (1) or pen not ready to write (0) Current R R E E Input 1 0 1 0 Next E R R E Output 1 0 0 0
  • 5. Challenge • Using Boole Deusto or JFLAP: • Create a machine that outputs 0 unless it sees the sequence 111, in which case it outputs a single 1. • Create a vending machine which takes either 5p or 10p and gives 15p sweets plus change.
  • 6. Revision – FSMs without outputs • Ultra-Basic combination lock. • Two digit code ‘20’ • Numbers 012 • Start State • Accepting State Decision Table First is 2 Y Y N N • Use software VAS Second is 0 Y N Y N Output Pass Y N N N
  • 7. Revision – FSMs without outputs • Ultra-Basic combination lock. • Two digit code ‘20’ • Numbers 012 • Start State • Accepting State Decision Table First is 2 Y Y N N • Use software VAS Second is 0 Y N Y N Output Pass Y N N N