SlideShare a Scribd company logo
Sequential Circuits 1
DIGITAL LOGIC DESIGN
by
Dr. Fenghui Yao
Tennessee State University
Department of Computer Science
Nashville, TN
Sequential Circuits 2
Note
Note
 Most of the figures are from your
Most of the figures are from your
course book
course book
Sequential Circuits 3
Sequential Circuits
Sequential Circuits
 Combinational
Combinational
 The outputs depend only on the current input values
The outputs depend only on the current input values
 It uses only logic gates
It uses only logic gates
 Sequential
Sequential
 The outputs depend on the current and past input
The outputs depend on the current and past input
values
values
 It uses logic gates and storage elements
It uses logic gates and storage elements
 Example
Example
 Vending machine
Vending machine
 They are referred as finite state machines since they
They are referred as finite state machines since they
have a finite number of states
have a finite number of states
Sequential Circuits 4
Block Diagram
Block Diagram
 Memory elements can store binary
Memory elements can store binary
information
information
 This information at any given time determines the
This information at any given time determines the
state of the circuit at that time
state of the circuit at that time
Sequential Circuits 5
Sequential Circuit Types
Sequential Circuit Types
 Synchronous
Synchronous
 The circuit behavior is determined by the signals
The circuit behavior is determined by the signals
at discrete instants of time
at discrete instants of time
 The memory elements are affected only at
The memory elements are affected only at
discrete instants of time
discrete instants of time
 A clock is used for synchronization
A clock is used for synchronization
 Memory elements are affected only with the arrival
Memory elements are affected only with the arrival
of a clock pulse
of a clock pulse
 If memory elements use clock pulses in their
If memory elements use clock pulses in their
inputs, the circuit is called
inputs, the circuit is called
 Clocked sequential circuit
Clocked sequential circuit
Sequential Circuits 6
Sequential Circuit Types
Sequential Circuit Types
 ASynchronous
ASynchronous
 The circuit behavior is determined by the signals
The circuit behavior is determined by the signals
at any instant of time
at any instant of time
 It is also affected by the order the inputs change
It is also affected by the order the inputs change
Sequential Circuits 7
Clock
Clock
 It emits a series of pulses with a
It emits a series of pulses with a
precise pulse width and precise interval
precise pulse width and precise interval
between consecutive pulses
between consecutive pulses
 Timing interval between the
Timing interval between the
corresponding edges of two
corresponding edges of two
consecutive pulses is known as the
consecutive pulses is known as the
clock cycle time, or period
clock cycle time, or period
Sequential Circuits 8
Flip-Flops
Flip-Flops
 They are memory elements
They are memory elements
 They can store binary information
They can store binary information
Sequential Circuits 9
Flip-Flops
Flip-Flops
 Can keep a binary state until an input
Can keep a binary state until an input
signal to switch the state is received
signal to switch the state is received
 There are different types of flip-flops
There are different types of flip-flops
depending on the number of inputs and
depending on the number of inputs and
how the inputs affect the binary state
how the inputs affect the binary state
Sequential Circuits 10
Latches
Latches
 The most basic flip-flops
The most basic flip-flops
 They operate with signal levels
They operate with signal levels
 The flip-flops are constructed from
The flip-flops are constructed from
latches
latches
 They are not useful for
They are not useful for synchronous
synchronous
sequential circuits
sequential circuits
 They are useful for
They are useful for asynchronous
asynchronous
sequential circuits
sequential circuits
Sequential Circuits 11
SR Latch with NOR
SR Latch with NOR
Sequential Circuits 12
SR Latch with NOR
SR Latch with NOR
1
R
1,
S
avoid
,
conditions
normal
In
0
set to
are
Q'
and
Q
undefined,
1
R
1,
S
state
reset
1
'
,
0
state
set
0
'
,
1













Q
Q
Q
Q
reset
R
set
S
Sequential Circuits 13
SR Latch with NAND
SR Latch with NAND
Sequential Circuits 14
SR Latch with NAND
SR Latch with NAND
0
R
0,
S
avoid
,
conditions
normal
In
1
set to
are
Q'
and
Q
undefined,
0
R
0,
S
state
reset
0
'
,
1
state
set
1
'
,
0













Q
Q
Q
Q
reset
R
set
S
Sequential Circuits 15
SR Latch with Control Input
SR Latch with Control Input
Sequential Circuits 16
D Latch
D Latch
Sequential Circuits 17
Symbols for Latches
Symbols for Latches
Sequential Circuits 18
Note
Note
 The control input changes the state of a
The control input changes the state of a
latch or flip-flop
latch or flip-flop
 The momentary change is called a
The momentary change is called a
trigger
trigger
 Example: D Latch
Example: D Latch
 It is triggered every time the pulse goes to the
It is triggered every time the pulse goes to the
logic level 1
logic level 1
 As long as the pulse remains at the logic level 1,
As long as the pulse remains at the logic level 1,
the change in the data (D) directly affects the
the change in the data (D) directly affects the
output (Q)
output (Q)
 THIS MAY BE A BIG PROBLEM since the state of
THIS MAY BE A BIG PROBLEM since the state of
the latch may keep changing depending on the
the latch may keep changing depending on the
input (may be coming from a combinational logic
input (may be coming from a combinational logic
network)
network)
Sequential Circuits 19
How to Solve?
How to Solve?
 Trigger the flip-flop only during a signal
Trigger the flip-flop only during a signal
transition
transition
Sequential Circuits 20
Edge-Triggered D Flip-Flop
Edge-Triggered D Flip-Flop
Sequential Circuits 21
Characteristics of D Flip-
Characteristics of D Flip-
Flop
Flop
D
t
Q 
 )
1
(
Sequential Circuits 22
Edge-Triggered J-K Flip-Flop
Edge-Triggered J-K Flip-Flop
Q
K
JQ
t
Q '
'
)
1
( 


How???????
Sequential Circuits 23
Excitation Table
Excitation Table
Sequential Circuits 24
Edge-Triggered T Flip-Flop
Edge-Triggered T Flip-Flop
Q
T
TQ
Q
T
t
Q '
'
)
1
( 




)
(
'
1
)
(
0
)
1
(
t
Q
t
Q
t
Q
T 
Sequential Circuits 25
Excitation Table
Excitation Table
Sequential Circuits 26
Direct Inputs
Direct Inputs
 You can use asynchronous inputs to
You can use asynchronous inputs to
put a flip-flop to a specific state
put a flip-flop to a specific state
regardless of the clock
regardless of the clock
 You can clear the content of a flip-flop
You can clear the content of a flip-flop
 The content is changed to zero (0)
The content is changed to zero (0)
 This is called clear or direct reset
This is called clear or direct reset
 This is particularly useful when the power is off
This is particularly useful when the power is off
 The state of the flip-flop is set to unknown
The state of the flip-flop is set to unknown
Sequential Circuits 27
D Flip-Flop with
D Flip-Flop with
Asynchronous Reset
Asynchronous Reset
Sequential Circuits 28
State Equations
State Equations
 
'
)
(
'
)
1
(
)
1
(
)
(
'
)
(
)
(
)
(
)
(
)
(
'
)
1
(
)
(
)
(
)
(
)
(
)
1
(
x
B
A
y
x
A
t
B
Bx
Ax
t
A
t
x
t
B
t
A
t
y
t
x
t
A
t
B
t
x
t
B
t
x
t
A
t
A














A state equation shows
the next state as a
function of the current
state and inputs
Sequential Circuits 29
State Table
State Table
Sequential Circuits 30
State Diagram
State Diagram
Sequential Circuits 31
Analysis with D Flip-Flops
Analysis with D Flip-Flops
y
x
A
t
A
y
x
A
DA







)
1
(
Sequential Circuits 32
State Reduction
State Reduction
 Reduce the number of states but keep
Reduce the number of states but keep
the input-output requirements
the input-output requirements
 Reducing the number of states may
Reducing the number of states may
reduce the number of flip-flops
reduce the number of flip-flops
 If there are
If there are n
n flip-flops, there are 2^
flip-flops, there are 2^n
n states
states
 If you have two circuits that produce
If you have two circuits that produce
the same output sequence for any
the same output sequence for any
given input sequence, the two circuits
given input sequence, the two circuits
are equivalent
are equivalent
 They may replace each other
They may replace each other
Sequential Circuits 33
State Reduction Example
State Reduction Example
Find the states for which the
next states and outputs are
the same
Sequential Circuits 34
Example (Cont.)
Example (Cont.)
In the next
state, g is
replaced with e
In the next
state, f is
replaced with d
Sequential Circuits 35
Example (Cont.)
Example (Cont.)
Sequential Circuits 36
State Assignment
State Assignment
 You need to assign binary values for
You need to assign binary values for
each state so that they can be
each state so that they can be
implemented
implemented
 You need to use enough number of bits
You need to use enough number of bits
to cover all the states
to cover all the states
Sequential Circuits 37
State Assignments
State Assignments
Sequential Circuits 38
Design Procedure
Design Procedure
 Derive a state diagram
Derive a state diagram
 Reduce the number of states
Reduce the number of states
 Assign binary values to the states
Assign binary values to the states
 Obtain binary coded state table
Obtain binary coded state table
 Choose the type of flip-flop to be used
Choose the type of flip-flop to be used
 Derive simplified flip-flop input
Derive simplified flip-flop input
equations and output equations
equations and output equations
 Draw the logic diagram
Draw the logic diagram
Sequential Circuits 39
Example
Example
 Design a circuit (with D flip-flops) that
Design a circuit (with D flip-flops) that
detects three or more consecutive 1’s in a
detects three or more consecutive 1’s in a
string of bits coming through an input line
string of bits coming through an input line
Sequential Circuits 40
Example (Cont.)
Example (Cont.)
 
 
 










7
,
6
)
,
,
(
7
,
5
,
1
)
,
,
(
)
1
(
7
,
5
,
3
)
,
,
(
)
1
(
x
B
A
y
x
B
A
D
t
B
x
B
A
D
t
A
B
A
Sequential Circuits 41
Example (Cont.)
Example (Cont.)
Sequential Circuits 42
Example (Cont.)
Example (Cont.)
Sequential Circuits 43
Example
Example
 Design a circuit (with JK flip-flops) that
Design a circuit (with JK flip-flops) that
detects three or more consecutive 1’s in a
detects three or more consecutive 1’s in a
string of bits coming through an input line
string of bits coming through an input line
Sequential Circuits 44
Example (Cont.)
Example (Cont.)
Sequential Circuits 45
Example (Cont.)
Example (Cont.)
Sequential Circuits 46
Example (Cont.)
Example (Cont.)
Sequential Circuits 47
Study Problems
Study Problems
 Course Book Chapter – 5 Problems
Course Book Chapter – 5 Problems
 5 – 3
5 – 3
 5 – 5
5 – 5
 5 – 6
5 – 6
 5 – 7
5 – 7
 5 – 10
5 – 10
 5 – 12
5 – 12
 5 – 13
5 – 13
 5 – 19
5 – 19
Sequential Circuits 48
Questions
Questions

More Related Content

Similar to Chapter5_Digital logic design_digital electronics (20)

PPTX
Unit III Sequential Logic Design and circuits flipflops latches types counte...
JeevaSadhasivam
 
PDF
Digital Electronics – Unit IV.pdf
Kannan Kanagaraj
 
PDF
Digital Electronics – Unit III.pdf
Kannan Kanagaraj
 
PPTX
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
UtsavDas21
 
PPTX
Latches and flip flops
mubashir farooq
 
PPTX
DLD Combinational vs Sequential Circuits
InfoPedia3
 
PPTX
Digital Fundamental Material for the student
jainyshah20
 
PPTX
Flipflop & Latches, RS Flipflop, NOR and NAND Gate Circuits
backiyalakshmi14
 
PPT
Sequential_DigitalLogicSecCSeqCkts__.ppt
NayanjyotSingh
 
PPTX
DE-UNIT-IV ASYNCHRONOUS SEQUENTIAL CIRCUITS
Sridhar191373
 
PDF
Digital Electronics-Design of SYNCHRONOUS SEQUENTIAL CIRCUITS
C.Helen Sulochana
 
PPTX
Unit 4 sequential circuits
AmrutaMehata
 
PPTX
Unit I_CDA-1 computer design and applications.
brijeshgolani77
 
PPTX
Lecture 5 Synchronous Sequential Logic
James Evangelos
 
PPTX
DIGITAL ELECTRONICS: UNIT-III SYNCHRONOUS SEQUENTIAL CIRCUITS
Sridhar191373
 
PDF
498947837-chapter6.pdf sequential logic circuit latch flip flop
dhfsgf6
 
PPTX
Latches and flip flop
Shuaib Hotak
 
PPTX
UNIT - III.pptx
amudhak10
 
PPTX
UNIT-IV.pptx
amudhak10
 
Unit III Sequential Logic Design and circuits flipflops latches types counte...
JeevaSadhasivam
 
Digital Electronics – Unit IV.pdf
Kannan Kanagaraj
 
Digital Electronics – Unit III.pdf
Kannan Kanagaraj
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
UtsavDas21
 
Latches and flip flops
mubashir farooq
 
DLD Combinational vs Sequential Circuits
InfoPedia3
 
Digital Fundamental Material for the student
jainyshah20
 
Flipflop & Latches, RS Flipflop, NOR and NAND Gate Circuits
backiyalakshmi14
 
Sequential_DigitalLogicSecCSeqCkts__.ppt
NayanjyotSingh
 
DE-UNIT-IV ASYNCHRONOUS SEQUENTIAL CIRCUITS
Sridhar191373
 
Digital Electronics-Design of SYNCHRONOUS SEQUENTIAL CIRCUITS
C.Helen Sulochana
 
Unit 4 sequential circuits
AmrutaMehata
 
Unit I_CDA-1 computer design and applications.
brijeshgolani77
 
Lecture 5 Synchronous Sequential Logic
James Evangelos
 
DIGITAL ELECTRONICS: UNIT-III SYNCHRONOUS SEQUENTIAL CIRCUITS
Sridhar191373
 
498947837-chapter6.pdf sequential logic circuit latch flip flop
dhfsgf6
 
Latches and flip flop
Shuaib Hotak
 
UNIT - III.pptx
amudhak10
 
UNIT-IV.pptx
amudhak10
 

More from Subha421414 (12)

PPTX
EC6402-COMMUNICATION-THEORY-INTRODUCTION.pptx
Subha421414
 
PPTX
CS3491_AIML_Unit1_Problem solving_minmax pruning
Subha421414
 
PPTX
Evolution of medical information retrieval.pptx
Subha421414
 
PPT
medical-imaging-shale-olagbegi-informatics.ppt
Subha421414
 
PPT
Chapter 5 - Biomass and biofuels bioenergy
Subha421414
 
PPTX
UNIT 3 - Neural networks feed forward n/w
Subha421414
 
PPT
chapter4-digital-modulation-part1 (1).ppt
Subha421414
 
PPTX
Automation in Clinical laboratories: Automation in hematology.pptx
Subha421414
 
PPT
Optical Detectors -Principle & Types.ppt
Subha421414
 
PPTX
Challenges for Standardization Cloud Computing and Big Data IOT
Subha421414
 
PPTX
Principles of renewable energy resources
Subha421414
 
PPT
slide_7.5.ppt
Subha421414
 
EC6402-COMMUNICATION-THEORY-INTRODUCTION.pptx
Subha421414
 
CS3491_AIML_Unit1_Problem solving_minmax pruning
Subha421414
 
Evolution of medical information retrieval.pptx
Subha421414
 
medical-imaging-shale-olagbegi-informatics.ppt
Subha421414
 
Chapter 5 - Biomass and biofuels bioenergy
Subha421414
 
UNIT 3 - Neural networks feed forward n/w
Subha421414
 
chapter4-digital-modulation-part1 (1).ppt
Subha421414
 
Automation in Clinical laboratories: Automation in hematology.pptx
Subha421414
 
Optical Detectors -Principle & Types.ppt
Subha421414
 
Challenges for Standardization Cloud Computing and Big Data IOT
Subha421414
 
Principles of renewable energy resources
Subha421414
 
slide_7.5.ppt
Subha421414
 
Ad

Recently uploaded (20)

PDF
Zilliz Cloud Demo for performance and scale
Zilliz
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
PPTX
GitOps_Without_K8s_Training simple one without k8s
DanialHabibi2
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Zilliz Cloud Demo for performance and scale
Zilliz
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
Thermal runway and thermal stability.pptx
godow93766
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
GitOps_Without_K8s_Training simple one without k8s
DanialHabibi2
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
MRRS Strength and Durability of Concrete
CivilMythili
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Ad

Chapter5_Digital logic design_digital electronics

  • 1. Sequential Circuits 1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN
  • 2. Sequential Circuits 2 Note Note  Most of the figures are from your Most of the figures are from your course book course book
  • 3. Sequential Circuits 3 Sequential Circuits Sequential Circuits  Combinational Combinational  The outputs depend only on the current input values The outputs depend only on the current input values  It uses only logic gates It uses only logic gates  Sequential Sequential  The outputs depend on the current and past input The outputs depend on the current and past input values values  It uses logic gates and storage elements It uses logic gates and storage elements  Example Example  Vending machine Vending machine  They are referred as finite state machines since they They are referred as finite state machines since they have a finite number of states have a finite number of states
  • 4. Sequential Circuits 4 Block Diagram Block Diagram  Memory elements can store binary Memory elements can store binary information information  This information at any given time determines the This information at any given time determines the state of the circuit at that time state of the circuit at that time
  • 5. Sequential Circuits 5 Sequential Circuit Types Sequential Circuit Types  Synchronous Synchronous  The circuit behavior is determined by the signals The circuit behavior is determined by the signals at discrete instants of time at discrete instants of time  The memory elements are affected only at The memory elements are affected only at discrete instants of time discrete instants of time  A clock is used for synchronization A clock is used for synchronization  Memory elements are affected only with the arrival Memory elements are affected only with the arrival of a clock pulse of a clock pulse  If memory elements use clock pulses in their If memory elements use clock pulses in their inputs, the circuit is called inputs, the circuit is called  Clocked sequential circuit Clocked sequential circuit
  • 6. Sequential Circuits 6 Sequential Circuit Types Sequential Circuit Types  ASynchronous ASynchronous  The circuit behavior is determined by the signals The circuit behavior is determined by the signals at any instant of time at any instant of time  It is also affected by the order the inputs change It is also affected by the order the inputs change
  • 7. Sequential Circuits 7 Clock Clock  It emits a series of pulses with a It emits a series of pulses with a precise pulse width and precise interval precise pulse width and precise interval between consecutive pulses between consecutive pulses  Timing interval between the Timing interval between the corresponding edges of two corresponding edges of two consecutive pulses is known as the consecutive pulses is known as the clock cycle time, or period clock cycle time, or period
  • 8. Sequential Circuits 8 Flip-Flops Flip-Flops  They are memory elements They are memory elements  They can store binary information They can store binary information
  • 9. Sequential Circuits 9 Flip-Flops Flip-Flops  Can keep a binary state until an input Can keep a binary state until an input signal to switch the state is received signal to switch the state is received  There are different types of flip-flops There are different types of flip-flops depending on the number of inputs and depending on the number of inputs and how the inputs affect the binary state how the inputs affect the binary state
  • 10. Sequential Circuits 10 Latches Latches  The most basic flip-flops The most basic flip-flops  They operate with signal levels They operate with signal levels  The flip-flops are constructed from The flip-flops are constructed from latches latches  They are not useful for They are not useful for synchronous synchronous sequential circuits sequential circuits  They are useful for They are useful for asynchronous asynchronous sequential circuits sequential circuits
  • 11. Sequential Circuits 11 SR Latch with NOR SR Latch with NOR
  • 12. Sequential Circuits 12 SR Latch with NOR SR Latch with NOR 1 R 1, S avoid , conditions normal In 0 set to are Q' and Q undefined, 1 R 1, S state reset 1 ' , 0 state set 0 ' , 1              Q Q Q Q reset R set S
  • 13. Sequential Circuits 13 SR Latch with NAND SR Latch with NAND
  • 14. Sequential Circuits 14 SR Latch with NAND SR Latch with NAND 0 R 0, S avoid , conditions normal In 1 set to are Q' and Q undefined, 0 R 0, S state reset 0 ' , 1 state set 1 ' , 0              Q Q Q Q reset R set S
  • 15. Sequential Circuits 15 SR Latch with Control Input SR Latch with Control Input
  • 16. Sequential Circuits 16 D Latch D Latch
  • 17. Sequential Circuits 17 Symbols for Latches Symbols for Latches
  • 18. Sequential Circuits 18 Note Note  The control input changes the state of a The control input changes the state of a latch or flip-flop latch or flip-flop  The momentary change is called a The momentary change is called a trigger trigger  Example: D Latch Example: D Latch  It is triggered every time the pulse goes to the It is triggered every time the pulse goes to the logic level 1 logic level 1  As long as the pulse remains at the logic level 1, As long as the pulse remains at the logic level 1, the change in the data (D) directly affects the the change in the data (D) directly affects the output (Q) output (Q)  THIS MAY BE A BIG PROBLEM since the state of THIS MAY BE A BIG PROBLEM since the state of the latch may keep changing depending on the the latch may keep changing depending on the input (may be coming from a combinational logic input (may be coming from a combinational logic network) network)
  • 19. Sequential Circuits 19 How to Solve? How to Solve?  Trigger the flip-flop only during a signal Trigger the flip-flop only during a signal transition transition
  • 20. Sequential Circuits 20 Edge-Triggered D Flip-Flop Edge-Triggered D Flip-Flop
  • 21. Sequential Circuits 21 Characteristics of D Flip- Characteristics of D Flip- Flop Flop D t Q   ) 1 (
  • 22. Sequential Circuits 22 Edge-Triggered J-K Flip-Flop Edge-Triggered J-K Flip-Flop Q K JQ t Q ' ' ) 1 (    How???????
  • 23. Sequential Circuits 23 Excitation Table Excitation Table
  • 24. Sequential Circuits 24 Edge-Triggered T Flip-Flop Edge-Triggered T Flip-Flop Q T TQ Q T t Q ' ' ) 1 (      ) ( ' 1 ) ( 0 ) 1 ( t Q t Q t Q T 
  • 25. Sequential Circuits 25 Excitation Table Excitation Table
  • 26. Sequential Circuits 26 Direct Inputs Direct Inputs  You can use asynchronous inputs to You can use asynchronous inputs to put a flip-flop to a specific state put a flip-flop to a specific state regardless of the clock regardless of the clock  You can clear the content of a flip-flop You can clear the content of a flip-flop  The content is changed to zero (0) The content is changed to zero (0)  This is called clear or direct reset This is called clear or direct reset  This is particularly useful when the power is off This is particularly useful when the power is off  The state of the flip-flop is set to unknown The state of the flip-flop is set to unknown
  • 27. Sequential Circuits 27 D Flip-Flop with D Flip-Flop with Asynchronous Reset Asynchronous Reset
  • 28. Sequential Circuits 28 State Equations State Equations   ' ) ( ' ) 1 ( ) 1 ( ) ( ' ) ( ) ( ) ( ) ( ) ( ' ) 1 ( ) ( ) ( ) ( ) ( ) 1 ( x B A y x A t B Bx Ax t A t x t B t A t y t x t A t B t x t B t x t A t A               A state equation shows the next state as a function of the current state and inputs
  • 29. Sequential Circuits 29 State Table State Table
  • 30. Sequential Circuits 30 State Diagram State Diagram
  • 31. Sequential Circuits 31 Analysis with D Flip-Flops Analysis with D Flip-Flops y x A t A y x A DA        ) 1 (
  • 32. Sequential Circuits 32 State Reduction State Reduction  Reduce the number of states but keep Reduce the number of states but keep the input-output requirements the input-output requirements  Reducing the number of states may Reducing the number of states may reduce the number of flip-flops reduce the number of flip-flops  If there are If there are n n flip-flops, there are 2^ flip-flops, there are 2^n n states states  If you have two circuits that produce If you have two circuits that produce the same output sequence for any the same output sequence for any given input sequence, the two circuits given input sequence, the two circuits are equivalent are equivalent  They may replace each other They may replace each other
  • 33. Sequential Circuits 33 State Reduction Example State Reduction Example Find the states for which the next states and outputs are the same
  • 34. Sequential Circuits 34 Example (Cont.) Example (Cont.) In the next state, g is replaced with e In the next state, f is replaced with d
  • 35. Sequential Circuits 35 Example (Cont.) Example (Cont.)
  • 36. Sequential Circuits 36 State Assignment State Assignment  You need to assign binary values for You need to assign binary values for each state so that they can be each state so that they can be implemented implemented  You need to use enough number of bits You need to use enough number of bits to cover all the states to cover all the states
  • 37. Sequential Circuits 37 State Assignments State Assignments
  • 38. Sequential Circuits 38 Design Procedure Design Procedure  Derive a state diagram Derive a state diagram  Reduce the number of states Reduce the number of states  Assign binary values to the states Assign binary values to the states  Obtain binary coded state table Obtain binary coded state table  Choose the type of flip-flop to be used Choose the type of flip-flop to be used  Derive simplified flip-flop input Derive simplified flip-flop input equations and output equations equations and output equations  Draw the logic diagram Draw the logic diagram
  • 39. Sequential Circuits 39 Example Example  Design a circuit (with D flip-flops) that Design a circuit (with D flip-flops) that detects three or more consecutive 1’s in a detects three or more consecutive 1’s in a string of bits coming through an input line string of bits coming through an input line
  • 40. Sequential Circuits 40 Example (Cont.) Example (Cont.)                 7 , 6 ) , , ( 7 , 5 , 1 ) , , ( ) 1 ( 7 , 5 , 3 ) , , ( ) 1 ( x B A y x B A D t B x B A D t A B A
  • 41. Sequential Circuits 41 Example (Cont.) Example (Cont.)
  • 42. Sequential Circuits 42 Example (Cont.) Example (Cont.)
  • 43. Sequential Circuits 43 Example Example  Design a circuit (with JK flip-flops) that Design a circuit (with JK flip-flops) that detects three or more consecutive 1’s in a detects three or more consecutive 1’s in a string of bits coming through an input line string of bits coming through an input line
  • 44. Sequential Circuits 44 Example (Cont.) Example (Cont.)
  • 45. Sequential Circuits 45 Example (Cont.) Example (Cont.)
  • 46. Sequential Circuits 46 Example (Cont.) Example (Cont.)
  • 47. Sequential Circuits 47 Study Problems Study Problems  Course Book Chapter – 5 Problems Course Book Chapter – 5 Problems  5 – 3 5 – 3  5 – 5 5 – 5  5 – 6 5 – 6  5 – 7 5 – 7  5 – 10 5 – 10  5 – 12 5 – 12  5 – 13 5 – 13  5 – 19 5 – 19

Editor's Notes

  • #1: ^*#{}#*^ SHOW merlin, merlin.acs, 83, 80 PLAY Confused PLAY RestPose PLAY Explain SAY Welcome to the second lecture of the CS 311. SAY Dr. Ali Sekmen will be teaching this class for this semester. SAY He will have power point presentations for each lecture. Please feel free to ask any questions you have during the lectures. 2) SHOW genie, genie.acs, 10, 30 2) PLAY Greet 2) PLAY RestPose 2) SAY The details of the course are described in the handouts which were distributed at the beginning of the lecture. SAY This course will provide you with a deep understanding of Java programming language. SAY You will be developing both Java Applications and Java Applets. 3) SHOW peedy, peedy.acs, 10, 70 3) PLAY Greet 3) PLAY RestPose 3)SAY You will also develop some practical applications in graphics, multimedia, database connectivity, networking, and Internet. 4)SHOW robby, robby.acs, 80, 30 4)PLAY Greet 4) PLAY RestPose 2)SAY The prerequisite for this course is a grade of C or better in CS 212. 2) SAY Those who do not meet the prerequisite should withdraw this course. 4) SAY Java is much easier than C and C++ yet more powerful for Internet based developments. 3)HIDE 4)HIDE SLIDE 2=MOVE 17,17