SlideShare a Scribd company logo
1 of 11
Download to read offline
EE201: Digital Circuits and Systems 4 Sequential Circuits page 1 of 11
EE201: Digital Circuits and Systems
Section 4 – Sequential Circuits
4.1 Overview of Sequential Circuits:
Definition
• The circuit whose outputs and next state
depend on both the input signals and the
present state of the circuit
Principle [spot the error!]
Memory Elements
Combinational Logic
Present
State
Input
Signals
O
S
Clock
EE201: Digital Circuits and Systems 4 Sequential Circuits page 2 of 11
4.2 Flip-Flops
SR Flip-Flop
Q
Q
SET
CLR
S
R
JK Flip-Flop
J
Q
Q
K
SET
CLR
D Flip-Flop
Q
Q
SET
CLR
D
T Flip-Flop
Q
Q
SET
CLR
DT
S R Q’
0 0 Q
0 1 0
1 0 1
1 1 X
Q Q’ S R
0 0 0 X
0 1 1 0
1 0 0 1
1 1 X 0
J K Q’
0 0 Q
0 1 0
1 0 1
1 1 !Q
Q Q’ J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
D Q’
0 0
1 1
Q Q’ D
X 0 0
X 1 1
Q Q’ T
0 0 0
0 1 1
1 0 1
1 1 0
T Q’
0 Q
1 !Q
EE201: Digital Circuits and Systems 4 Sequential Circuits page 3 of 11
4.3 Design of Sequential Circuits
Algorithm:
• Obtain the description of circuit and create the
State Diagram
• Determine the State Table
• Minimize the number of states
• Assign binary codes to each state
• Determine the number of flip-flops needed and
give a letter symbol to each of them
• Choose the type of flip-flops
• Starting from State Table, derive the Excitation
Table and the Output Table
• Derive the minimized circuit output functions
and flip-flop input functions
• Draw the Logic Diagram
EE201: Digital Circuits and Systems 4 Sequential Circuits page 4 of 11
4.4 Example of Design
Design a sequential logic circuit whose output Z is 1 except
when the input X = 1 for at least four clock periods. Then the
output Z is 0. Use J-K flip-flops.
• State Diagram [X/Z]
A B C D
1/1 1/1 1/1
0/1
0/1
0/1
0/1 1/0
• State Coding
Present
State
Code
A 0 0
B 0 1
C 1 0
D 1 1
• Flip Flops
We require two JK flip-flops.
Let’s name them JKA and JKB
EE201: Digital Circuits and Systems 4 Sequential Circuits page 5 of 11
• State Table
Next State Output ZPresent
State X=0 X=1 X=0 X=1
A A B 1 1
B A C 1 1
C A D 1 1
D A D 1 0
• Excitation Table
QA QB X Q’A Q’B JA KA JB KB Z
0 0 0 0 0 0 x 0 x 1
0 0 1 0 1 0 x 1 x 1
0 1 0 0 0 0 x x 1 1
0 1 1 1 0 1 x x 1 1
1 0 0 0 0 x 1 0 x 1
1 0 1 1 1 x 0 1 x 1
1 1 0 0 0 x 1 x 1 1
1 1 1 1 1 x 0 x 0 0
• Minimisations and Equations
JA
X QA QB 00 01 11 10
0 0 0 x x
1 0 1 x x
BA XQJ =
EE201: Digital Circuits and Systems 4 Sequential Circuits page 6 of 11
KA
X QA QB 00 01 11 10
0 X x 1 1
1 X x 0 0
XKA =
JB
X QA QB 00 01 11 10
0 0 x x 0
1 1 x x 1
XJB =
KB
X QA QB 00 01 11 10
0 x 1 1 x
1 x 1 0 x
AAB XQQXK =+=
Z
X QA QB 00 01 11 10
0 0 0 0 0
1 0 0 1 0
BAQXQZ =
EE201: Digital Circuits and Systems 4 Sequential Circuits page 7 of 11
4.5 State Reduction
Definition of Equivalent States
• Two or more states of a sequential circuit are equivalent
if for the same values for the inputs, have exactly the same
output and determine the sequential circuit transition to the
same next state or to equivalent states.
Algorithm for State Reduction
• If more 2 or more states are equivalent, one of them can be
substituted with the other one
• The other states that have transitions to one of the removed
states have to have their next states changed into the
remaining equivalent state
Advantages of State Reduction
• By reducing the number of states, it is possible that the
number of flip-flops and/or amount of combinational
circuitry needed to implement the sequential circuit will
decrease, reducing the cost of the circuit
EE201: Digital Circuits and Systems 4 Sequential Circuits page 8 of 11
Example of State Reduction
• Let’s assume that there is the following state table:
Next State OutputPresent
State
X=0 X=1 X=0 X=1
A A B 0 0
B C D 0 0
C A D 0 0
D E F 0 1
E A F 0 1
F G F 0 1
G A F 0 1
• States G and E are equivalent (same next states for the
same inputs and same outputs for the same inputs)
• State reduction => state G will be replaced by E
Next State OutputPresent
State
X=0 X=1 X=0 X=1
A A B 0 0
B C D 0 0
C A D 0 0
D E F 0 1
E A F 0 1
F E F 0 1
EE201: Digital Circuits and Systems 4 Sequential Circuits page 9 of 11
• States D and F are equivalent
• State reduction => state F will be replaced by D
Next State OutputPresent
State
X=0 X=1 X=0 X=1
A A B 0 0
B C D 0 0
C A D 0 0
D E D 0 1
E A D 0 1
• By reducing the number of states, the number of flip-flops
and amount of combinational circuitry needed to implement
this sequential circuit could have decreased, reducing the
cost of the circuit.
• However in this example the number of flip-flops remains
the same.
EE201: Digital Circuits and Systems 4 Sequential Circuits page 10 of 11
4.6 State Assignment
Definition of State Assignment
• The process of assigning a binary code to each state
Possibilities for State Assignment
• There are many possibilities to assign binary codes to
states
• The number of possible options increases exponentially
with the number of states
• The cost of the combinational circuit strongly depends
on the state assignment chosen
• Although various State Assignment methods have been
proposed, there is no assignment procedure that
guarantees a minimal cost for the resulting
combinational circuit
Examples of State Assignment
States Assign.
1
Assign.
2
Assign.
3
A 0 0 1 0 0 0 0 0 0
B 0 1 0 0 1 0 1 0 0
C 0 1 1 0 1 1 0 1 0
D 1 0 0 1 0 1 1 0 1
E 1 0 1 1 1 1 0 1 1
EE201: Digital Circuits and Systems 4 Sequential Circuits page 11 of 11
4.7 Homework
• Having the following state table, design the sequential
circuit following state assignment 1, 2 and 3,
respectively.
Next State OutputPresent
State
X=0 X=1 X=0 X=1
A A B 0 0
B C D 0 0
C A D 0 0
D E D 0 1
E A D 0 1

More Related Content

Similar to 04 sequential circuits

Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuitsG Subramaniamg
 
synchronous state machine design
synchronous state machine designsynchronous state machine design
synchronous state machine designAdarsh Patel
 
State Machine Design and Synthesis
State Machine Design and SynthesisState Machine Design and Synthesis
State Machine Design and SynthesisAbhilash Nair
 
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
 
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
 
digital-electronics_7.pdf
digital-electronics_7.pdfdigital-electronics_7.pdf
digital-electronics_7.pdfsarala9
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machineShreyans Pathak
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
Digital Electronics – Unit IV.pdf
Digital Electronics – Unit IV.pdfDigital Electronics – Unit IV.pdf
Digital Electronics – Unit IV.pdfKannan Kanagaraj
 
Sequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdfSequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdfimadshaheen2
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptAsynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptSIVALAKSHMIPANNEERSE
 
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptxSequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptxAhmedAlAfandi5
 
Adobe Scan 14 Dec 2023 (1).pdf
Adobe Scan 14 Dec 2023 (1).pdfAdobe Scan 14 Dec 2023 (1).pdf
Adobe Scan 14 Dec 2023 (1).pdfkt5830207
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Asif Iqbal
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuitAswiniT3
 

Similar to 04 sequential circuits (20)

Basics Counters
Basics Counters Basics Counters
Basics Counters
 
Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuits
 
synchronous state machine design
synchronous state machine designsynchronous state machine design
synchronous state machine design
 
State Machine Design and Synthesis
State Machine Design and SynthesisState Machine Design and Synthesis
State Machine Design and Synthesis
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
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
 
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
 
digital-electronics_7.pdf
digital-electronics_7.pdfdigital-electronics_7.pdf
digital-electronics_7.pdf
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
Lec9
Lec9Lec9
Lec9
 
Digital Electronics – Unit IV.pdf
Digital Electronics – Unit IV.pdfDigital Electronics – Unit IV.pdf
Digital Electronics – Unit IV.pdf
 
Sequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdfSequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdf
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptAsynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 ppt
 
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptxSequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
 
Adobe Scan 14 Dec 2023 (1).pdf
Adobe Scan 14 Dec 2023 (1).pdfAdobe Scan 14 Dec 2023 (1).pdf
Adobe Scan 14 Dec 2023 (1).pdf
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuit
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5
 

More from xyxz

Optimal reception-of-digital-signals
Optimal reception-of-digital-signalsOptimal reception-of-digital-signals
Optimal reception-of-digital-signalsxyxz
 
Optimal reception-of-digital-signals-2
Optimal reception-of-digital-signals-2Optimal reception-of-digital-signals-2
Optimal reception-of-digital-signals-2xyxz
 
Optimal reception-of-digital-signals
Optimal reception-of-digital-signalsOptimal reception-of-digital-signals
Optimal reception-of-digital-signalsxyxz
 
Complex propagation
Complex propagationComplex propagation
Complex propagationxyxz
 
Digital class
Digital classDigital class
Digital classxyxz
 
New ways of teaching entrepreneurship
New ways of teaching entrepreneurshipNew ways of teaching entrepreneurship
New ways of teaching entrepreneurshipxyxz
 
Bits and bandwidth
Bits and bandwidthBits and bandwidth
Bits and bandwidthxyxz
 
Io t system management with
Io t system management withIo t system management with
Io t system management withxyxz
 
Mpmc unit-string manipulation
Mpmc unit-string manipulationMpmc unit-string manipulation
Mpmc unit-string manipulationxyxz
 
Lp iot-iv-ece- 2019-20
Lp iot-iv-ece- 2019-20Lp iot-iv-ece- 2019-20
Lp iot-iv-ece- 2019-20xyxz
 
Jntuh b.tech 3 year ece r16 syllabus
Jntuh b.tech 3 year ece r16 syllabusJntuh b.tech 3 year ece r16 syllabus
Jntuh b.tech 3 year ece r16 syllabusxyxz
 
Devicemgmt
DevicemgmtDevicemgmt
Devicemgmtxyxz
 
29fe586301a42c2d2e7279d658da178ae1e6
29fe586301a42c2d2e7279d658da178ae1e629fe586301a42c2d2e7279d658da178ae1e6
29fe586301a42c2d2e7279d658da178ae1e6xyxz
 
Lecture notes front page sample (1) copy
Lecture notes front page sample (1)   copyLecture notes front page sample (1)   copy
Lecture notes front page sample (1) copyxyxz
 
Jntua ece 3rd & 4th year (r15) syllabus (1) split-merge-1-4-1-2
Jntua ece 3rd & 4th year (r15) syllabus (1) split-merge-1-4-1-2Jntua ece 3rd & 4th year (r15) syllabus (1) split-merge-1-4-1-2
Jntua ece 3rd & 4th year (r15) syllabus (1) split-merge-1-4-1-2xyxz
 
Ilovepdf merged
Ilovepdf mergedIlovepdf merged
Ilovepdf mergedxyxz
 
Dc lab manual
Dc lab manualDc lab manual
Dc lab manualxyxz
 
Adc lab
Adc labAdc lab
Adc labxyxz
 
Dcs lesson plan 18 19
Dcs lesson plan 18 19Dcs lesson plan 18 19
Dcs lesson plan 18 19xyxz
 
507 block 1_lesson_1
507 block 1_lesson_1507 block 1_lesson_1
507 block 1_lesson_1xyxz
 

More from xyxz (20)

Optimal reception-of-digital-signals
Optimal reception-of-digital-signalsOptimal reception-of-digital-signals
Optimal reception-of-digital-signals
 
Optimal reception-of-digital-signals-2
Optimal reception-of-digital-signals-2Optimal reception-of-digital-signals-2
Optimal reception-of-digital-signals-2
 
Optimal reception-of-digital-signals
Optimal reception-of-digital-signalsOptimal reception-of-digital-signals
Optimal reception-of-digital-signals
 
Complex propagation
Complex propagationComplex propagation
Complex propagation
 
Digital class
Digital classDigital class
Digital class
 
New ways of teaching entrepreneurship
New ways of teaching entrepreneurshipNew ways of teaching entrepreneurship
New ways of teaching entrepreneurship
 
Bits and bandwidth
Bits and bandwidthBits and bandwidth
Bits and bandwidth
 
Io t system management with
Io t system management withIo t system management with
Io t system management with
 
Mpmc unit-string manipulation
Mpmc unit-string manipulationMpmc unit-string manipulation
Mpmc unit-string manipulation
 
Lp iot-iv-ece- 2019-20
Lp iot-iv-ece- 2019-20Lp iot-iv-ece- 2019-20
Lp iot-iv-ece- 2019-20
 
Jntuh b.tech 3 year ece r16 syllabus
Jntuh b.tech 3 year ece r16 syllabusJntuh b.tech 3 year ece r16 syllabus
Jntuh b.tech 3 year ece r16 syllabus
 
Devicemgmt
DevicemgmtDevicemgmt
Devicemgmt
 
29fe586301a42c2d2e7279d658da178ae1e6
29fe586301a42c2d2e7279d658da178ae1e629fe586301a42c2d2e7279d658da178ae1e6
29fe586301a42c2d2e7279d658da178ae1e6
 
Lecture notes front page sample (1) copy
Lecture notes front page sample (1)   copyLecture notes front page sample (1)   copy
Lecture notes front page sample (1) copy
 
Jntua ece 3rd & 4th year (r15) syllabus (1) split-merge-1-4-1-2
Jntua ece 3rd & 4th year (r15) syllabus (1) split-merge-1-4-1-2Jntua ece 3rd & 4th year (r15) syllabus (1) split-merge-1-4-1-2
Jntua ece 3rd & 4th year (r15) syllabus (1) split-merge-1-4-1-2
 
Ilovepdf merged
Ilovepdf mergedIlovepdf merged
Ilovepdf merged
 
Dc lab manual
Dc lab manualDc lab manual
Dc lab manual
 
Adc lab
Adc labAdc lab
Adc lab
 
Dcs lesson plan 18 19
Dcs lesson plan 18 19Dcs lesson plan 18 19
Dcs lesson plan 18 19
 
507 block 1_lesson_1
507 block 1_lesson_1507 block 1_lesson_1
507 block 1_lesson_1
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

04 sequential circuits

  • 1. EE201: Digital Circuits and Systems 4 Sequential Circuits page 1 of 11 EE201: Digital Circuits and Systems Section 4 – Sequential Circuits 4.1 Overview of Sequential Circuits: Definition • The circuit whose outputs and next state depend on both the input signals and the present state of the circuit Principle [spot the error!] Memory Elements Combinational Logic Present State Input Signals O S Clock
  • 2. EE201: Digital Circuits and Systems 4 Sequential Circuits page 2 of 11 4.2 Flip-Flops SR Flip-Flop Q Q SET CLR S R JK Flip-Flop J Q Q K SET CLR D Flip-Flop Q Q SET CLR D T Flip-Flop Q Q SET CLR DT S R Q’ 0 0 Q 0 1 0 1 0 1 1 1 X Q Q’ S R 0 0 0 X 0 1 1 0 1 0 0 1 1 1 X 0 J K Q’ 0 0 Q 0 1 0 1 0 1 1 1 !Q Q Q’ J K 0 0 0 X 0 1 1 X 1 0 X 1 1 1 X 0 D Q’ 0 0 1 1 Q Q’ D X 0 0 X 1 1 Q Q’ T 0 0 0 0 1 1 1 0 1 1 1 0 T Q’ 0 Q 1 !Q
  • 3. EE201: Digital Circuits and Systems 4 Sequential Circuits page 3 of 11 4.3 Design of Sequential Circuits Algorithm: • Obtain the description of circuit and create the State Diagram • Determine the State Table • Minimize the number of states • Assign binary codes to each state • Determine the number of flip-flops needed and give a letter symbol to each of them • Choose the type of flip-flops • Starting from State Table, derive the Excitation Table and the Output Table • Derive the minimized circuit output functions and flip-flop input functions • Draw the Logic Diagram
  • 4. EE201: Digital Circuits and Systems 4 Sequential Circuits page 4 of 11 4.4 Example of Design Design a sequential logic circuit whose output Z is 1 except when the input X = 1 for at least four clock periods. Then the output Z is 0. Use J-K flip-flops. • State Diagram [X/Z] A B C D 1/1 1/1 1/1 0/1 0/1 0/1 0/1 1/0 • State Coding Present State Code A 0 0 B 0 1 C 1 0 D 1 1 • Flip Flops We require two JK flip-flops. Let’s name them JKA and JKB
  • 5. EE201: Digital Circuits and Systems 4 Sequential Circuits page 5 of 11 • State Table Next State Output ZPresent State X=0 X=1 X=0 X=1 A A B 1 1 B A C 1 1 C A D 1 1 D A D 1 0 • Excitation Table QA QB X Q’A Q’B JA KA JB KB Z 0 0 0 0 0 0 x 0 x 1 0 0 1 0 1 0 x 1 x 1 0 1 0 0 0 0 x x 1 1 0 1 1 1 0 1 x x 1 1 1 0 0 0 0 x 1 0 x 1 1 0 1 1 1 x 0 1 x 1 1 1 0 0 0 x 1 x 1 1 1 1 1 1 1 x 0 x 0 0 • Minimisations and Equations JA X QA QB 00 01 11 10 0 0 0 x x 1 0 1 x x BA XQJ =
  • 6. EE201: Digital Circuits and Systems 4 Sequential Circuits page 6 of 11 KA X QA QB 00 01 11 10 0 X x 1 1 1 X x 0 0 XKA = JB X QA QB 00 01 11 10 0 0 x x 0 1 1 x x 1 XJB = KB X QA QB 00 01 11 10 0 x 1 1 x 1 x 1 0 x AAB XQQXK =+= Z X QA QB 00 01 11 10 0 0 0 0 0 1 0 0 1 0 BAQXQZ =
  • 7. EE201: Digital Circuits and Systems 4 Sequential Circuits page 7 of 11 4.5 State Reduction Definition of Equivalent States • Two or more states of a sequential circuit are equivalent if for the same values for the inputs, have exactly the same output and determine the sequential circuit transition to the same next state or to equivalent states. Algorithm for State Reduction • If more 2 or more states are equivalent, one of them can be substituted with the other one • The other states that have transitions to one of the removed states have to have their next states changed into the remaining equivalent state Advantages of State Reduction • By reducing the number of states, it is possible that the number of flip-flops and/or amount of combinational circuitry needed to implement the sequential circuit will decrease, reducing the cost of the circuit
  • 8. EE201: Digital Circuits and Systems 4 Sequential Circuits page 8 of 11 Example of State Reduction • Let’s assume that there is the following state table: Next State OutputPresent State X=0 X=1 X=0 X=1 A A B 0 0 B C D 0 0 C A D 0 0 D E F 0 1 E A F 0 1 F G F 0 1 G A F 0 1 • States G and E are equivalent (same next states for the same inputs and same outputs for the same inputs) • State reduction => state G will be replaced by E Next State OutputPresent State X=0 X=1 X=0 X=1 A A B 0 0 B C D 0 0 C A D 0 0 D E F 0 1 E A F 0 1 F E F 0 1
  • 9. EE201: Digital Circuits and Systems 4 Sequential Circuits page 9 of 11 • States D and F are equivalent • State reduction => state F will be replaced by D Next State OutputPresent State X=0 X=1 X=0 X=1 A A B 0 0 B C D 0 0 C A D 0 0 D E D 0 1 E A D 0 1 • By reducing the number of states, the number of flip-flops and amount of combinational circuitry needed to implement this sequential circuit could have decreased, reducing the cost of the circuit. • However in this example the number of flip-flops remains the same.
  • 10. EE201: Digital Circuits and Systems 4 Sequential Circuits page 10 of 11 4.6 State Assignment Definition of State Assignment • The process of assigning a binary code to each state Possibilities for State Assignment • There are many possibilities to assign binary codes to states • The number of possible options increases exponentially with the number of states • The cost of the combinational circuit strongly depends on the state assignment chosen • Although various State Assignment methods have been proposed, there is no assignment procedure that guarantees a minimal cost for the resulting combinational circuit Examples of State Assignment States Assign. 1 Assign. 2 Assign. 3 A 0 0 1 0 0 0 0 0 0 B 0 1 0 0 1 0 1 0 0 C 0 1 1 0 1 1 0 1 0 D 1 0 0 1 0 1 1 0 1 E 1 0 1 1 1 1 0 1 1
  • 11. EE201: Digital Circuits and Systems 4 Sequential Circuits page 11 of 11 4.7 Homework • Having the following state table, design the sequential circuit following state assignment 1, 2 and 3, respectively. Next State OutputPresent State X=0 X=1 X=0 X=1 A A B 0 0 B C D 0 0 C A D 0 0 D E D 0 1 E A D 0 1