SlideShare a Scribd company logo
1 of 39
Download to read offline
Spring 2011 ECE 331 - Digital System Design 2
Combinational vs. Sequential
● Combinational Logic Circuit
– Output is a function only of the present inputs.
– Does not have state information.
– Does not require memory.
● Sequential Logic Circuit (aka. Finite State Machine)
– Output is a function of the present state.
– Has state information
– Requires memory.
– Uses Flip-Flops to implement memory.
Spring 2011 ECE 331 - Digital System Design 3
Synchronous vs. Asynchronous
● Synchronous Sequential Logic Circuit
– Clocked
– All Flip-Flops use the same clock and change
state on the same triggering edge.
● Asynchronous Sequential Logic Circuit
– No clock
– Can change state at any instance in time.
– Faster but more complex than synchronous
sequential circuits.
Spring 2011 ECE 331 - Digital System Design 4
Sequential Circuits: General Model
● Memory
– Stores state information
– Realized using Flip-Flops
● Combinational Logic
– Implements Flip-Flop input functions and output functions
– Realized using logic gates, a ROM or a PLA
Spring 2011 ECE 331 - Digital System Design 5
Sequential Circuits: Models
● Moore Machine
– Outputs are a function of the present state.
– Outputs are independent of the inputs.
– State diagram includes an output value for each state.
● Mealy Machine
– Outputs are a function of the present state and the
present input.
– State diagram includes an input and output value for
each transition (between states).
Spring 2011 ECE 331 - Digital System Design 6
Sequential Circuits: Models
Spring 2011 ECE 331 - Digital System Design 7
Sequential Circuits: Mealy Model
output
Present state
Next state
Spring 2011 ECE 331 - Digital System Design 8
Sequential Circuits: Moore Model
Present
state
output
Next state
Spring 2011 ECE 331 - Digital System Design 9
Sequential Circuits: State Diagram
State
Output
Input
Moore Machine
Each node in the graph
represents a state in the
sequential circuit.
Spring 2011 ECE 331 - Digital System Design 10
Sequential Circuits: State Diagram
Mealy Machine
Each node in the graph
represents a state in the
sequential circuit.
Input
State
Output
Spring 2011 ECE 331 - Digital System Design 11
Sequential Circuit Analysis
Spring 2011 ECE 331 - Digital System Design 12
Analysis: Signal Tracing
1.Assume an initial state for the sequential circuit.
 All Flip-Flops reset to 0 (unless otherwise stated).
2.Determine the sequential circuit output and the flip-
flop inputs for the first input value in the sequence.
3.Determine the next state of each Flip-Flop
 After the next active clock edge.
4.Determine the sequential circuit output and the flip-
flop inputs for the next value in the sequence.
5.Repeat steps 3 & 4.
Spring 2011 ECE 331 - Digital System Design 13
Example: Moore Machine
input
Flip-Flop inputs
output
State = AB
Spring 2011 ECE 331 - Digital System Design 14
Example: Moore Machine
0 1 1 0 1
Spring 2011 ECE 331 - Digital System Design 15
Example: Mealy Machine
Spring 2011 ECE 331 - Digital System Design 16
Example: Mealy Machine
Spring 2011 ECE 331 - Digital System Design 17
Analysis: State Tables and Graphs
Although constructing timing charts is satisfactory for small
circuits and short input sequences, the construction of state
tables and graphs provides a more systematic approach
which is useful for the analysis of larger circuits and which
leads to a general synthesis procedure for sequential
circuits.
The state table specifies the next state and output of a
sequential circuit in terms of its present state and input.
Spring 2011 ECE 331 - Digital System Design 18
Analysis Procedure
1. Determine the Flip-Flop input equations
2. Determine the Sequential Circuit output equations
3. Derive the Next State equation for each Flip-Flop
 Using the corresponding input equation
 And the Flip-Flop characteristic equation
4. Plot the Next State K-map for each Flip-Flop
5. Construct the State Table (aka. Transition Table)
 Assign a state label to each binary state assignment
6. Draw the corresponding state diagram (aka. state graph)
Spring 2011 ECE 331 - Digital System Design 19
Example:
Analyze a sequential circuit using D Flip-Flops
Spring 2011 ECE 331 - Digital System Design 20
Example: Analysis (D FF)
Derive the State Table for the following Sequential Logic Circuit:
Spring 2011 ECE 331 - Digital System Design 21
Example: Analysis (D FF)
The flip-flop input equations are:
DA = X xor B' DB = X or A
Z = A xor B
The next-state equations for the flip-flops are:
A+
= DA = X xor B' B+
= DB = X or A
The sequential circuit output equation is:
Spring 2011 ECE 331 - Digital System Design 22
Example: Analysis (D FF)
The corresponding next-state (K-) maps are:
Spring 2011 ECE 331 - Digital System Design 23
Example: Analysis (D FF)
The state table, or transition table, is then:
A+
B+
A B X = 0 X = 1 Z
0 0 1 0 0 1 0
0 1 0 0 1 1 1
1 1 0 1 1 1 0
1 0 1 1 0 1 1
Present Next State
State X = 0 X = 1 Output
S0 S3 S1 0
S1 S0 S2 1
S2 S1 S2 0
S3 S2 S1 1
Spring 2011 ECE 331 - Digital System Design 24
Example: Analysis (D FF)
The state diagram can then be drawn from the state table:
Spring 2011 ECE 331 - Digital System Design 25
Example:
Analyze a sequential circuit using JK Flip-Flops
Spring 2011 ECE 331 - Digital System Design 26
Example: Analysis (JK FF)
Derive the State Table for the following Sequential Logic Circuit:
Spring 2011 ECE 331 - Digital System Design 27
Example: Analysis (JK FF)
The flip-flop input equations are:
The next-state equations for the flip-flops are:
The sequential circuit output equation is:
JA = X.B JB = X
KA = X KB = X.A
Z = X.B' + X.A + X'.A'.B
A+
= JA.A' + KA'.A B+
= JB.B' + KB'.B
A+
= X.B.A' + X.A B+
= X.B' + X.A.B
Spring 2011 ECE 331 - Digital System Design 28
Example: Analysis (JK FF)
The corresponding next-state (K-) maps are
Spring 2011 ECE 331 - Digital System Design 29
Example: Analysis (JK FF)
The state table, and transition table, is then:
Spring 2011 ECE 331 - Digital System Design 30
Example: Analysis (JK FF)
The state diagram can then be drawn from the state table:
Spring 2011 ECE 331 - Digital System Design 31
Example:
Analyze a serial adder
Spring 2011 ECE 331 - Digital System Design 32
Example: Serial Adder
The serial adder adds two n-bit binary numbers.
(serial) inputs
(serial) output
present
state
next state
Spring 2011 ECE 331 - Digital System Design 33
Example: Serial Adder
Truth Table for the Full Adder:
Spring 2011 ECE 331 - Digital System Design 34
Example: Serial Adder
The state table, or transition table, is then:
Ci+1 Sum
Ci XY = 00 XY = 01 XY = 10 XY = 11 XY = 00 XY = 01 XY = 10 XY = 11
0 0 0 0 1 0 1 1 0
1 0 1 1 1 1 0 0 1
Present Next State Output
State XY = 00 XY = 01 XY = 10 XY = 11 XY = 00 XY = 01 XY = 10 XY = 11
S0 S0 S0 S0 S1 0 1 1 0
S1 S0 S1 S1 S1 1 0 0 1
Spring 2011 ECE 331 - Digital System Design 35
Example: Serial Adder
State Graph for the Serial Adder:
What type of state machine is this?
Spring 2011 ECE 331 - Digital System Design 36
Example: Serial Adder
Timing Diagram for the Serial Adder:
Spring 2011 ECE 331 - Digital System Design 37
Example:
Analyze a state machine with multiple inputs.
Spring 2011 ECE 331 - Digital System Design 38
Example: Multiple Inputs
State Table for a state machine with multiple inputs:
Spring 2011 ECE 331 - Digital System Design 39
Example: Multiple Inputs
State Graph for a state machine with multiple inputs:
How many paths
leave each state?
What type of state
machine is this?
Spring 2011 ECE 331 - Digital System Design 40
Questions?

More Related Content

What's hot

flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applicationsGaditek
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoderUnsa Shakir
 
quine mc cluskey method
 quine mc cluskey method quine mc cluskey method
quine mc cluskey methodUnsa Shakir
 
1d-HALF ADDER & FULL ADDER-PPT.pdf
1d-HALF ADDER & FULL ADDER-PPT.pdf1d-HALF ADDER & FULL ADDER-PPT.pdf
1d-HALF ADDER & FULL ADDER-PPT.pdfssusera0b94b
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
State table and characteristic equation for sequential circuit
State table and characteristic equation for sequential circuitState table and characteristic equation for sequential circuit
State table and characteristic equation for sequential circuitPreet_patel
 
Layout design on MICROWIND
Layout design on MICROWINDLayout design on MICROWIND
Layout design on MICROWINDvaibhav jindal
 
Flip Flop and Its Types
Flip Flop and Its TypesFlip Flop and Its Types
Flip Flop and Its TypesJancypriya M
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsVinoth Loganathan
 

What's hot (20)

flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applications
 
PLA
PLAPLA
PLA
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 
quine mc cluskey method
 quine mc cluskey method quine mc cluskey method
quine mc cluskey method
 
1d-HALF ADDER & FULL ADDER-PPT.pdf
1d-HALF ADDER & FULL ADDER-PPT.pdf1d-HALF ADDER & FULL ADDER-PPT.pdf
1d-HALF ADDER & FULL ADDER-PPT.pdf
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
D and T Flip Flop
D and T Flip FlopD and T Flip Flop
D and T Flip Flop
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Synchronous Counter
Synchronous Counter Synchronous Counter
Synchronous Counter
 
latches
 latches latches
latches
 
State table and characteristic equation for sequential circuit
State table and characteristic equation for sequential circuitState table and characteristic equation for sequential circuit
State table and characteristic equation for sequential circuit
 
Layout design on MICROWIND
Layout design on MICROWINDLayout design on MICROWIND
Layout design on MICROWIND
 
Flip Flop and Its Types
Flip Flop and Its TypesFlip Flop and Its Types
Flip Flop and Its Types
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Flipflop
FlipflopFlipflop
Flipflop
 

Similar to Analysis sequential circuits

EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCETEC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCETSeshaVidhyaS
 
Sequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdfSequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdfimadshaheen2
 
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptxSequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptxAhmedAlAfandi5
 
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DD Slides6.pptx  aaaaaaaaaaaaaaaaaaaaaaaaaaaaDD Slides6.pptx  aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaakasheenp
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuitAswiniT3
 
UNIT-IV.pptx
UNIT-IV.pptxUNIT-IV.pptx
UNIT-IV.pptxamudhak10
 
Eceg 3201-dld-lec 12-synchronous_counter_design
Eceg 3201-dld-lec 12-synchronous_counter_designEceg 3201-dld-lec 12-synchronous_counter_design
Eceg 3201-dld-lec 12-synchronous_counter_designNebiyu Musie
 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu Piyush Rochwani
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
07 seq logicii-ix2
07 seq logicii-ix207 seq logicii-ix2
07 seq logicii-ix2SHIVA PRASAD
 
EET107_Chapter 3_SLD(part2.1)-edit1.ppt
EET107_Chapter 3_SLD(part2.1)-edit1.pptEET107_Chapter 3_SLD(part2.1)-edit1.ppt
EET107_Chapter 3_SLD(part2.1)-edit1.pptBeautyKumar1
 
Sequential Logic Circuits
Sequential Logic CircuitsSequential Logic Circuits
Sequential Logic CircuitsDilum Bandara
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machineShreyans Pathak
 
Saur lecture 16
Saur lecture 16Saur lecture 16
Saur lecture 16saur28_83
 
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Hsien-Hsin Sean Lee, Ph.D.
 

Similar to Analysis sequential circuits (20)

EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCETEC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
 
Sequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdfSequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdf
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptxSequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
 
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DD Slides6.pptx  aaaaaaaaaaaaaaaaaaaaaaaaaaaaDD Slides6.pptx  aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuit
 
UNIT-IV.pptx
UNIT-IV.pptxUNIT-IV.pptx
UNIT-IV.pptx
 
Eceg 3201-dld-lec 12-synchronous_counter_design
Eceg 3201-dld-lec 12-synchronous_counter_designEceg 3201-dld-lec 12-synchronous_counter_design
Eceg 3201-dld-lec 12-synchronous_counter_design
 
Lec 25 26_27
Lec 25 26_27Lec 25 26_27
Lec 25 26_27
 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
07 seq logicii-ix2
07 seq logicii-ix207 seq logicii-ix2
07 seq logicii-ix2
 
Digital Design Session 29
Digital Design Session 29Digital Design Session 29
Digital Design Session 29
 
EET107_Chapter 3_SLD(part2.1)-edit1.ppt
EET107_Chapter 3_SLD(part2.1)-edit1.pptEET107_Chapter 3_SLD(part2.1)-edit1.ppt
EET107_Chapter 3_SLD(part2.1)-edit1.ppt
 
Sequential Logic Circuits
Sequential Logic CircuitsSequential Logic Circuits
Sequential Logic Circuits
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 
Saur lecture 16
Saur lecture 16Saur lecture 16
Saur lecture 16
 
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
 
Lec17-Registers.ppt
Lec17-Registers.pptLec17-Registers.ppt
Lec17-Registers.ppt
 

Recently uploaded

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
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
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
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
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
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
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune 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
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
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
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 

Recently uploaded (20)

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
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🔝
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
★ 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
 
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
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
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, ...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
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
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
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)
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
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
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 

Analysis sequential circuits

  • 1. Spring 2011 ECE 331 - Digital System Design 2 Combinational vs. Sequential ● Combinational Logic Circuit – Output is a function only of the present inputs. – Does not have state information. – Does not require memory. ● Sequential Logic Circuit (aka. Finite State Machine) – Output is a function of the present state. – Has state information – Requires memory. – Uses Flip-Flops to implement memory.
  • 2. Spring 2011 ECE 331 - Digital System Design 3 Synchronous vs. Asynchronous ● Synchronous Sequential Logic Circuit – Clocked – All Flip-Flops use the same clock and change state on the same triggering edge. ● Asynchronous Sequential Logic Circuit – No clock – Can change state at any instance in time. – Faster but more complex than synchronous sequential circuits.
  • 3. Spring 2011 ECE 331 - Digital System Design 4 Sequential Circuits: General Model ● Memory – Stores state information – Realized using Flip-Flops ● Combinational Logic – Implements Flip-Flop input functions and output functions – Realized using logic gates, a ROM or a PLA
  • 4. Spring 2011 ECE 331 - Digital System Design 5 Sequential Circuits: Models ● Moore Machine – Outputs are a function of the present state. – Outputs are independent of the inputs. – State diagram includes an output value for each state. ● Mealy Machine – Outputs are a function of the present state and the present input. – State diagram includes an input and output value for each transition (between states).
  • 5. Spring 2011 ECE 331 - Digital System Design 6 Sequential Circuits: Models
  • 6. Spring 2011 ECE 331 - Digital System Design 7 Sequential Circuits: Mealy Model output Present state Next state
  • 7. Spring 2011 ECE 331 - Digital System Design 8 Sequential Circuits: Moore Model Present state output Next state
  • 8. Spring 2011 ECE 331 - Digital System Design 9 Sequential Circuits: State Diagram State Output Input Moore Machine Each node in the graph represents a state in the sequential circuit.
  • 9. Spring 2011 ECE 331 - Digital System Design 10 Sequential Circuits: State Diagram Mealy Machine Each node in the graph represents a state in the sequential circuit. Input State Output
  • 10. Spring 2011 ECE 331 - Digital System Design 11 Sequential Circuit Analysis
  • 11. Spring 2011 ECE 331 - Digital System Design 12 Analysis: Signal Tracing 1.Assume an initial state for the sequential circuit.  All Flip-Flops reset to 0 (unless otherwise stated). 2.Determine the sequential circuit output and the flip- flop inputs for the first input value in the sequence. 3.Determine the next state of each Flip-Flop  After the next active clock edge. 4.Determine the sequential circuit output and the flip- flop inputs for the next value in the sequence. 5.Repeat steps 3 & 4.
  • 12. Spring 2011 ECE 331 - Digital System Design 13 Example: Moore Machine input Flip-Flop inputs output State = AB
  • 13. Spring 2011 ECE 331 - Digital System Design 14 Example: Moore Machine 0 1 1 0 1
  • 14. Spring 2011 ECE 331 - Digital System Design 15 Example: Mealy Machine
  • 15. Spring 2011 ECE 331 - Digital System Design 16 Example: Mealy Machine
  • 16. Spring 2011 ECE 331 - Digital System Design 17 Analysis: State Tables and Graphs Although constructing timing charts is satisfactory for small circuits and short input sequences, the construction of state tables and graphs provides a more systematic approach which is useful for the analysis of larger circuits and which leads to a general synthesis procedure for sequential circuits. The state table specifies the next state and output of a sequential circuit in terms of its present state and input.
  • 17. Spring 2011 ECE 331 - Digital System Design 18 Analysis Procedure 1. Determine the Flip-Flop input equations 2. Determine the Sequential Circuit output equations 3. Derive the Next State equation for each Flip-Flop  Using the corresponding input equation  And the Flip-Flop characteristic equation 4. Plot the Next State K-map for each Flip-Flop 5. Construct the State Table (aka. Transition Table)  Assign a state label to each binary state assignment 6. Draw the corresponding state diagram (aka. state graph)
  • 18. Spring 2011 ECE 331 - Digital System Design 19 Example: Analyze a sequential circuit using D Flip-Flops
  • 19. Spring 2011 ECE 331 - Digital System Design 20 Example: Analysis (D FF) Derive the State Table for the following Sequential Logic Circuit:
  • 20. Spring 2011 ECE 331 - Digital System Design 21 Example: Analysis (D FF) The flip-flop input equations are: DA = X xor B' DB = X or A Z = A xor B The next-state equations for the flip-flops are: A+ = DA = X xor B' B+ = DB = X or A The sequential circuit output equation is:
  • 21. Spring 2011 ECE 331 - Digital System Design 22 Example: Analysis (D FF) The corresponding next-state (K-) maps are:
  • 22. Spring 2011 ECE 331 - Digital System Design 23 Example: Analysis (D FF) The state table, or transition table, is then: A+ B+ A B X = 0 X = 1 Z 0 0 1 0 0 1 0 0 1 0 0 1 1 1 1 1 0 1 1 1 0 1 0 1 1 0 1 1 Present Next State State X = 0 X = 1 Output S0 S3 S1 0 S1 S0 S2 1 S2 S1 S2 0 S3 S2 S1 1
  • 23. Spring 2011 ECE 331 - Digital System Design 24 Example: Analysis (D FF) The state diagram can then be drawn from the state table:
  • 24. Spring 2011 ECE 331 - Digital System Design 25 Example: Analyze a sequential circuit using JK Flip-Flops
  • 25. Spring 2011 ECE 331 - Digital System Design 26 Example: Analysis (JK FF) Derive the State Table for the following Sequential Logic Circuit:
  • 26. Spring 2011 ECE 331 - Digital System Design 27 Example: Analysis (JK FF) The flip-flop input equations are: The next-state equations for the flip-flops are: The sequential circuit output equation is: JA = X.B JB = X KA = X KB = X.A Z = X.B' + X.A + X'.A'.B A+ = JA.A' + KA'.A B+ = JB.B' + KB'.B A+ = X.B.A' + X.A B+ = X.B' + X.A.B
  • 27. Spring 2011 ECE 331 - Digital System Design 28 Example: Analysis (JK FF) The corresponding next-state (K-) maps are
  • 28. Spring 2011 ECE 331 - Digital System Design 29 Example: Analysis (JK FF) The state table, and transition table, is then:
  • 29. Spring 2011 ECE 331 - Digital System Design 30 Example: Analysis (JK FF) The state diagram can then be drawn from the state table:
  • 30. Spring 2011 ECE 331 - Digital System Design 31 Example: Analyze a serial adder
  • 31. Spring 2011 ECE 331 - Digital System Design 32 Example: Serial Adder The serial adder adds two n-bit binary numbers. (serial) inputs (serial) output present state next state
  • 32. Spring 2011 ECE 331 - Digital System Design 33 Example: Serial Adder Truth Table for the Full Adder:
  • 33. Spring 2011 ECE 331 - Digital System Design 34 Example: Serial Adder The state table, or transition table, is then: Ci+1 Sum Ci XY = 00 XY = 01 XY = 10 XY = 11 XY = 00 XY = 01 XY = 10 XY = 11 0 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0 1 Present Next State Output State XY = 00 XY = 01 XY = 10 XY = 11 XY = 00 XY = 01 XY = 10 XY = 11 S0 S0 S0 S0 S1 0 1 1 0 S1 S0 S1 S1 S1 1 0 0 1
  • 34. Spring 2011 ECE 331 - Digital System Design 35 Example: Serial Adder State Graph for the Serial Adder: What type of state machine is this?
  • 35. Spring 2011 ECE 331 - Digital System Design 36 Example: Serial Adder Timing Diagram for the Serial Adder:
  • 36. Spring 2011 ECE 331 - Digital System Design 37 Example: Analyze a state machine with multiple inputs.
  • 37. Spring 2011 ECE 331 - Digital System Design 38 Example: Multiple Inputs State Table for a state machine with multiple inputs:
  • 38. Spring 2011 ECE 331 - Digital System Design 39 Example: Multiple Inputs State Graph for a state machine with multiple inputs: How many paths leave each state? What type of state machine is this?
  • 39. Spring 2011 ECE 331 - Digital System Design 40 Questions?