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 (20)

Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Unit 5
Unit 5Unit 5
Unit 5
 
Synchronous sequential Circuits
Synchronous sequential CircuitsSynchronous sequential Circuits
Synchronous sequential Circuits
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Interfacing keypad
Interfacing keypadInterfacing keypad
Interfacing keypad
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
 
Difference between led & lcd
Difference between led & lcdDifference between led & lcd
Difference between led & lcd
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
Clocked Sequential circuit analysis and design
Clocked Sequential circuit analysis and designClocked Sequential circuit analysis and design
Clocked Sequential circuit analysis and design
 
Flip flop
Flip flopFlip flop
Flip flop
 
Interrupts of microcontroller 8051
Interrupts of microcontroller 8051Interrupts of microcontroller 8051
Interrupts of microcontroller 8051
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
 
Interfacing rs232
Interfacing rs232Interfacing rs232
Interfacing rs232
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
DELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counterDELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counter
 

Similar to Digital Design Session 24

Automata Presentation - Construction of a Turnstile
Automata Presentation - Construction of a TurnstileAutomata Presentation - Construction of a Turnstile
Automata Presentation - Construction of a TurnstileRishabh Srivastava
 
Synchronous state machines. Moore and Mealy state machines (FSM)
Synchronous state machines.  Moore and Mealy state machines (FSM)Synchronous state machines.  Moore and Mealy state machines (FSM)
Synchronous state machines. Moore and Mealy state machines (FSM)Mumbi Chishimba
 
Applications of Mealy & Moore Machine
Applications of  Mealy  & Moore Machine Applications of  Mealy  & Moore Machine
Applications of Mealy & Moore Machine SardarKashifKhan
 
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
 
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
 
Breakdowns Happen: Factoring Downtime Into Your Simulation
Breakdowns Happen: Factoring Downtime Into Your SimulationBreakdowns Happen: Factoring Downtime Into Your Simulation
Breakdowns Happen: Factoring Downtime Into Your Simulationbussylee25
 
Breakdowns Happen: How to Factor Downtime into your Simulation
Breakdowns Happen: How to Factor Downtime into your SimulationBreakdowns Happen: How to Factor Downtime into your Simulation
Breakdowns Happen: How to Factor Downtime into your SimulationSIMUL8 Corporation
 

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
 
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
 
Synchronous state machines. Moore and Mealy state machines (FSM)
Synchronous state machines.  Moore and Mealy state machines (FSM)Synchronous state machines.  Moore and Mealy state machines (FSM)
Synchronous state machines. Moore and Mealy state machines (FSM)
 
Applications of Mealy & Moore Machine
Applications of  Mealy  & Moore Machine Applications of  Mealy  & Moore Machine
Applications of Mealy & Moore Machine
 
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
 
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
 
Breakdowns Happen: Factoring Downtime Into Your Simulation
Breakdowns Happen: Factoring Downtime Into Your SimulationBreakdowns Happen: Factoring Downtime Into Your Simulation
Breakdowns Happen: Factoring Downtime Into Your Simulation
 
Breakdowns Happen: How to Factor Downtime into your Simulation
Breakdowns Happen: How to Factor Downtime into your SimulationBreakdowns Happen: How to Factor Downtime into your Simulation
Breakdowns Happen: How to Factor Downtime into your Simulation
 

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

(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 

Recently uploaded (20)

(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
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
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 

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