SlideShare a Scribd company logo
1 of 22
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2
Session 24: Focus
 Finite State Machine (FSM)
◦ Example: Turnstile
 Types of Clocked Sequential Circuits
◦ Moore Model
◦ Mealy Model
◦ Example circuits
 Analysis of Clocked Sequential Circuits
◦ Example 1: Moore Machine (partial)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Finite State Machine
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4
Example: Turnstile
4
 Allows people to enter through only on one side. It can also have
controlled access (coin) to let people in.
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5
Operation of Turnstile Operation Explained
 Operation is modeled with a State Machine or State
Diagram
 Turnstile can be in one of these two states
◦ Locked
◦ Unlocked
 Initially it is in a Locked condition
 Dropping a coin changes the state of the machine from
Locked to Unlocked
Inputs are:
1. Coin
2. Push
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 6
Turnstile Operation Explained
 In the unlocked state, when the cross bar is pushed
◦ One person can move in through the gate
◦ Turnstile changes back to Locked state
◦ The cross bar cannot be moved in the locked state even if it
gets pushed
 There by allowing only maximum one person to enter
for every coin dropped
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7
Finite State Machine (FSM)
 A Finite-State Machine (FSM) or Finite-state
Automaton (FSA, plural: automata), finite automaton,
or simply a state machine, is a mathematical model
of computation.
 It is an abstract machine that can be in exactly one of
a finite number of states at any given time.
 The FSM can change from one state to another in
response to some external inputs; the change from
one state to another is called a transition.
 A FSM is defined by a list of its states, its initial
state, and the conditions for each transition.
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8
FSM of Turnstile
 List of states
◦ Locked
◦ Unlocked
 Initial State: Locked
 External Inputs: Coin and Push
 Transitions:
◦ Locked to Unlocked (Condition: Dropping of coin)
◦ Unlocked to Locked (Condition: Pushing the bar)
Dark dot here
Shows the
Initial state
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Types of
Clocked Sequential Circuits
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 10
What are Clocked Sequential Circuits?
 A logic diagram is recognized as a clocked
sequential circuit
◦ If it includes flip-flops with clock inputs.
 The flip-flops may be of any type, and the logic
diagram may or may not include combinational
logic gates.
10
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11
Types of Clocked Sequential Circuits
Sequential Circuits
are built with
Combinational
circuits and flip-
flops
Clocked
Sequential
Circuits are also
called as
Synchronous
Sequential
Circuits
Flip-flops hold
the internal states
of the circuit
There are Two types of them
b) Outputs are driven by both internal
states and also by the inputs to the circuit
a) Outputs are driven only by the internal states
Flip-flops
Flip-flops
Outputs change only
At clock edges
Outputs may change
whenever inputs change
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12
a) Moore Model
 In the Moore model, the output is a function of only the
present state.
◦ Present states are in tern driven by the inputs
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13
b) Mealy Model
 In the Mealy model, the output is a function of
both the present state and the inputs.
 A circuit may also have both types of outputs.
 i.e., both Mealy and Moore type of outputs
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Examples of
Clocked Sequential Circuits
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15
Example A: Sequential Circuit
 Which are the inputs?
 Which are the outputs?
 How many states can this circuit be in?
 Does the output (Z) change while the inputs change?
 The output is driven by?
 Is it a Moore or Mealy machine?
 How many flip-flops are needed to maintain two states?
15
X and Y
Z (same as A, the present state)
2 (D F-F can be a 0 or 1)
No
By A, is same as the internal state (A)
Moore Machine
1
Logic Diagram
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16
Example B: Sequential Circuit
 Inputs:
 Outputs:
 No of states:
 Is Output a
Function (inputs
and internal
states)?
 Mealy or Moore?
16
X
Y
4
Yes
Mealy Machine
A
B
A
B
X
Y
X
Y
Logic Diagram
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 17
Mealy and Moore Machines
 These two models of sequential circuits are
commonly referred to as a Finite State Machine,
abbreviated FSM.
 The Mealy model of a sequential circuit is referred to
as a Mealy FSM or Mealy machine.
 The Moore model is referred to as a Moore FSM or
Moore machine.
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Analysis of
Clocked Sequential Circuits
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 19
Analysis of Clocked Sequential Circuits
 Analysis describes what a given circuit will do under
certain operating conditions.
 The behaviour of a clocked sequential circuit is
determined from
◦ Inputs,
◦ Outputs, and
◦ States of its flip-flops.
 The outputs and the next state are both a function of
◦ Inputs and the present state
 The analysis of a sequential circuit consists of
obtaining a table or a diagram for the time sequence
of inputs, outputs, and internal states
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 20
Example 1.2: State Equations
 The behaviour of a clocked sequential circuit can be
described algebraically by means of state equations.
 A state equation (also called a transition equation)
specifies the next state
◦ As a function of the present state and inputs.
Moore Machine
1.1 Logic Diagram
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 21
Session 24: Summary
 Finite State Machine (FSM)
◦ Example: Turnstile
 Types of Clocked Sequential Circuits
◦ Moore Model
◦ Mealy Model
◦ Example circuits
 Analysis of Clocked Sequential Circuits
◦ Example 1: Moore Machine (partial)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 22
References
Ref 1 Ref 2

More Related Content

What's hot

Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicJames Evangelos
 
Programmable Logic Devices Plds
Programmable Logic Devices PldsProgrammable Logic Devices Plds
Programmable Logic Devices PldsGaditek
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller pptRahul Kumar
 
Lect 7: Verilog Behavioral model for Absolute Beginners
Lect 7: Verilog Behavioral model for Absolute BeginnersLect 7: Verilog Behavioral model for Absolute Beginners
Lect 7: Verilog Behavioral model for Absolute BeginnersDr.YNM
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptDr.YNM
 
sequential circuits
sequential circuitssequential circuits
sequential circuitsUnsa Shakir
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerSudhanshu Janwadkar
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDLanand hd
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...manishpatel_79
 

What's hot (20)

Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
Programmable Logic Devices Plds
Programmable Logic Devices PldsProgrammable Logic Devices Plds
Programmable Logic Devices Plds
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
Lect 7: Verilog Behavioral model for Absolute Beginners
Lect 7: Verilog Behavioral model for Absolute BeginnersLect 7: Verilog Behavioral model for Absolute Beginners
Lect 7: Verilog Behavioral model for Absolute Beginners
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Vlsi design flow
Vlsi design flowVlsi design flow
Vlsi design flow
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.ppt
 
Digital logic families
Digital logic familiesDigital logic families
Digital logic families
 
sequential circuits
sequential circuitssequential circuits
sequential circuits
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDL
 
PAL
PALPAL
PAL
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
 
Logic families 1
Logic families 1Logic families 1
Logic families 1
 
Sampling Theorem
Sampling TheoremSampling Theorem
Sampling Theorem
 
PLA
PLAPLA
PLA
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
 

Similar to Digital Design Session 24

melay and moore machine.pptx
melay and moore machine.pptxmelay and moore machine.pptx
melay and moore machine.pptxssuser1b2fab
 
Automata Presentation - Construction of a Turnstile
Automata Presentation - Construction of a TurnstileAutomata Presentation - Construction of a Turnstile
Automata Presentation - Construction of a TurnstileRishabh Srivastava
 
Applications of Mealy & Moore Machine
Applications of  Mealy  & Moore Machine Applications of  Mealy  & Moore Machine
Applications of Mealy & Moore Machine SardarKashifKhan
 
A single stage ccm zeta microinverter for solar photovoltaic ac module
A single stage ccm zeta microinverter for solar photovoltaic ac moduleA single stage ccm zeta microinverter for solar photovoltaic ac module
A single stage ccm zeta microinverter for solar photovoltaic ac moduleLeMeniz Infotech
 
Updated field oriented control of induction motor.pptx
Updated field oriented control of induction motor.pptxUpdated field oriented control of induction motor.pptx
Updated field oriented control of induction motor.pptxMohit Sharma
 
CONSTRUCTION OF A TURNSTILE USING FINITE AUTOMATA
CONSTRUCTION OF A TURNSTILE USING FINITE AUTOMATACONSTRUCTION OF A TURNSTILE USING FINITE AUTOMATA
CONSTRUCTION OF A TURNSTILE USING FINITE AUTOMATAMudit Mishra
 
Controlofmachines 130110181054-phpapp01
Controlofmachines 130110181054-phpapp01Controlofmachines 130110181054-phpapp01
Controlofmachines 130110181054-phpapp01limenih muluneh
 
SLIDING REVIEW.pptx
SLIDING REVIEW.pptxSLIDING REVIEW.pptx
SLIDING REVIEW.pptxSachinCS19
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERJournal For Research
 
IRJET- Smart Traffic Barricade System
IRJET-  	  Smart Traffic Barricade SystemIRJET-  	  Smart Traffic Barricade System
IRJET- Smart Traffic Barricade SystemIRJET Journal
 
IRJET- Speed Control and Minimization of Torque Ripples in BLDC Motor usi...
IRJET-  	  Speed Control and Minimization of Torque Ripples in BLDC Motor usi...IRJET-  	  Speed Control and Minimization of Torque Ripples in BLDC Motor usi...
IRJET- Speed Control and Minimization of Torque Ripples in BLDC Motor usi...IRJET Journal
 

Similar to Digital Design Session 24 (20)

Digital Design Session 25
Digital Design Session 25Digital Design Session 25
Digital Design Session 25
 
Modeling FSMs
Modeling FSMsModeling FSMs
Modeling FSMs
 
melay and moore machine.pptx
melay and moore machine.pptxmelay and moore machine.pptx
melay and moore machine.pptx
 
Automata Presentation - Construction of a Turnstile
Automata Presentation - Construction of a TurnstileAutomata Presentation - Construction of a Turnstile
Automata Presentation - Construction of a Turnstile
 
Digital Design Session 27
Digital Design Session 27Digital Design Session 27
Digital Design Session 27
 
Digital Design Session 18
Digital Design Session 18Digital Design Session 18
Digital Design Session 18
 
Digital Design Session 15
Digital Design Session 15Digital Design Session 15
Digital Design Session 15
 
Applications of Mealy & Moore Machine
Applications of  Mealy  & Moore Machine Applications of  Mealy  & Moore Machine
Applications of Mealy & Moore Machine
 
A single stage ccm zeta microinverter for solar photovoltaic ac module
A single stage ccm zeta microinverter for solar photovoltaic ac moduleA single stage ccm zeta microinverter for solar photovoltaic ac module
A single stage ccm zeta microinverter for solar photovoltaic ac module
 
Updated field oriented control of induction motor.pptx
Updated field oriented control of induction motor.pptxUpdated field oriented control of induction motor.pptx
Updated field oriented control of induction motor.pptx
 
Digital Design Session 29
Digital Design Session 29Digital Design Session 29
Digital Design Session 29
 
VHDL Reference - FSM
VHDL Reference -  FSMVHDL Reference -  FSM
VHDL Reference - FSM
 
Digital Design Session 26
Digital Design Session 26Digital Design Session 26
Digital Design Session 26
 
CONSTRUCTION OF A TURNSTILE USING FINITE AUTOMATA
CONSTRUCTION OF A TURNSTILE USING FINITE AUTOMATACONSTRUCTION OF A TURNSTILE USING FINITE AUTOMATA
CONSTRUCTION OF A TURNSTILE USING FINITE AUTOMATA
 
Controlofmachines 130110181054-phpapp01
Controlofmachines 130110181054-phpapp01Controlofmachines 130110181054-phpapp01
Controlofmachines 130110181054-phpapp01
 
SLIDING REVIEW.pptx
SLIDING REVIEW.pptxSLIDING REVIEW.pptx
SLIDING REVIEW.pptx
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
 
IRJET- Smart Traffic Barricade System
IRJET-  	  Smart Traffic Barricade SystemIRJET-  	  Smart Traffic Barricade System
IRJET- Smart Traffic Barricade System
 
IRJET- Speed Control and Minimization of Torque Ripples in BLDC Motor usi...
IRJET-  	  Speed Control and Minimization of Torque Ripples in BLDC Motor usi...IRJET-  	  Speed Control and Minimization of Torque Ripples in BLDC Motor usi...
IRJET- Speed Control and Minimization of Torque Ripples in BLDC Motor usi...
 
PLC 2.pdf
PLC 2.pdfPLC 2.pdf
PLC 2.pdf
 

More from International Institute of Information Technology - Bangalore

More from International Institute of Information Technology - Bangalore (20)

Digital Design Session 28
Digital Design Session 28Digital Design Session 28
Digital Design Session 28
 
Digital Design Session 23
Digital Design Session 23Digital Design Session 23
Digital Design Session 23
 
Digital Design Session 22
Digital Design Session 22Digital Design Session 22
Digital Design Session 22
 
Digital Design Session 21
Digital Design Session 21Digital Design Session 21
Digital Design Session 21
 
Digital Design Session 20
Digital Design Session 20Digital Design Session 20
Digital Design Session 20
 
Digital Design Session 19
Digital Design Session 19Digital Design Session 19
Digital Design Session 19
 
Digital Design Session 17
Digital Design Session 17Digital Design Session 17
Digital Design Session 17
 
Digital Design Session 16
Digital Design Session 16Digital Design Session 16
Digital Design Session 16
 
Digital Design Session 14
Digital Design Session 14Digital Design Session 14
Digital Design Session 14
 
Digital Design Session 13
Digital Design Session 13Digital Design Session 13
Digital Design Session 13
 
Digital Design Session 12
Digital Design Session 12Digital Design Session 12
Digital Design Session 12
 
Digital Design Session 11
Digital Design Session 11Digital Design Session 11
Digital Design Session 11
 
Digital Design Session 10
Digital Design Session 10Digital Design Session 10
Digital Design Session 10
 
Digital Design Session 9
Digital Design Session 9Digital Design Session 9
Digital Design Session 9
 
Digital Design Session 8
Digital Design Session 8Digital Design Session 8
Digital Design Session 8
 
Digital Design Session 7
Digital Design  Session 7Digital Design  Session 7
Digital Design Session 7
 
Digital Design Session 6
Digital Design Session 6Digital Design Session 6
Digital Design Session 6
 
Digital Design Session 5
Digital Design  Session 5Digital Design  Session 5
Digital Design Session 5
 
Digital Design Session 4
Digital Design Session 4Digital Design Session 4
Digital Design Session 4
 
Digital Design Session 3
Digital Design Session 3Digital Design Session 3
Digital Design Session 3
 

Recently uploaded

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 

Recently uploaded (20)

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 

Digital Design Session 24

  • 1. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
  • 2. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2 Session 24: Focus  Finite State Machine (FSM) ◦ Example: Turnstile  Types of Clocked Sequential Circuits ◦ Moore Model ◦ Mealy Model ◦ Example circuits  Analysis of Clocked Sequential Circuits ◦ Example 1: Moore Machine (partial)
  • 3. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Finite State Machine
  • 4. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4 Example: Turnstile 4  Allows people to enter through only on one side. It can also have controlled access (coin) to let people in.
  • 5. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5 Operation of Turnstile Operation Explained  Operation is modeled with a State Machine or State Diagram  Turnstile can be in one of these two states ◦ Locked ◦ Unlocked  Initially it is in a Locked condition  Dropping a coin changes the state of the machine from Locked to Unlocked Inputs are: 1. Coin 2. Push
  • 6. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 6 Turnstile Operation Explained  In the unlocked state, when the cross bar is pushed ◦ One person can move in through the gate ◦ Turnstile changes back to Locked state ◦ The cross bar cannot be moved in the locked state even if it gets pushed  There by allowing only maximum one person to enter for every coin dropped
  • 7. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7 Finite State Machine (FSM)  A Finite-State Machine (FSM) or Finite-state Automaton (FSA, plural: automata), finite automaton, or simply a state machine, is a mathematical model of computation.  It is an abstract machine that can be in exactly one of a finite number of states at any given time.  The FSM can change from one state to another in response to some external inputs; the change from one state to another is called a transition.  A FSM is defined by a list of its states, its initial state, and the conditions for each transition.
  • 8. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8 FSM of Turnstile  List of states ◦ Locked ◦ Unlocked  Initial State: Locked  External Inputs: Coin and Push  Transitions: ◦ Locked to Unlocked (Condition: Dropping of coin) ◦ Unlocked to Locked (Condition: Pushing the bar) Dark dot here Shows the Initial state
  • 9. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Types of Clocked Sequential Circuits
  • 10. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 10 What are Clocked Sequential Circuits?  A logic diagram is recognized as a clocked sequential circuit ◦ If it includes flip-flops with clock inputs.  The flip-flops may be of any type, and the logic diagram may or may not include combinational logic gates. 10
  • 11. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11 Types of Clocked Sequential Circuits Sequential Circuits are built with Combinational circuits and flip- flops Clocked Sequential Circuits are also called as Synchronous Sequential Circuits Flip-flops hold the internal states of the circuit There are Two types of them b) Outputs are driven by both internal states and also by the inputs to the circuit a) Outputs are driven only by the internal states Flip-flops Flip-flops Outputs change only At clock edges Outputs may change whenever inputs change
  • 12. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12 a) Moore Model  In the Moore model, the output is a function of only the present state. ◦ Present states are in tern driven by the inputs
  • 13. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13 b) Mealy Model  In the Mealy model, the output is a function of both the present state and the inputs.  A circuit may also have both types of outputs.  i.e., both Mealy and Moore type of outputs
  • 14. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Examples of Clocked Sequential Circuits
  • 15. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15 Example A: Sequential Circuit  Which are the inputs?  Which are the outputs?  How many states can this circuit be in?  Does the output (Z) change while the inputs change?  The output is driven by?  Is it a Moore or Mealy machine?  How many flip-flops are needed to maintain two states? 15 X and Y Z (same as A, the present state) 2 (D F-F can be a 0 or 1) No By A, is same as the internal state (A) Moore Machine 1 Logic Diagram
  • 16. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16 Example B: Sequential Circuit  Inputs:  Outputs:  No of states:  Is Output a Function (inputs and internal states)?  Mealy or Moore? 16 X Y 4 Yes Mealy Machine A B A B X Y X Y Logic Diagram
  • 17. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 17 Mealy and Moore Machines  These two models of sequential circuits are commonly referred to as a Finite State Machine, abbreviated FSM.  The Mealy model of a sequential circuit is referred to as a Mealy FSM or Mealy machine.  The Moore model is referred to as a Moore FSM or Moore machine.
  • 18. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Analysis of Clocked Sequential Circuits
  • 19. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 19 Analysis of Clocked Sequential Circuits  Analysis describes what a given circuit will do under certain operating conditions.  The behaviour of a clocked sequential circuit is determined from ◦ Inputs, ◦ Outputs, and ◦ States of its flip-flops.  The outputs and the next state are both a function of ◦ Inputs and the present state  The analysis of a sequential circuit consists of obtaining a table or a diagram for the time sequence of inputs, outputs, and internal states
  • 20. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 20 Example 1.2: State Equations  The behaviour of a clocked sequential circuit can be described algebraically by means of state equations.  A state equation (also called a transition equation) specifies the next state ◦ As a function of the present state and inputs. Moore Machine 1.1 Logic Diagram
  • 21. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 21 Session 24: Summary  Finite State Machine (FSM) ◦ Example: Turnstile  Types of Clocked Sequential Circuits ◦ Moore Model ◦ Mealy Model ◦ Example circuits  Analysis of Clocked Sequential Circuits ◦ Example 1: Moore Machine (partial)
  • 22. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 22 References Ref 1 Ref 2