Professional Documents
Culture Documents
Sequential Circuits: Latches and Flip-Flops Latches and Flip Flops
Sequential Circuits: Latches and Flip-Flops Latches and Flip Flops
Z. Jerry Shi
Computer Science and Engineering
University of Connecticut
Sequential circuits
Output depends on current input and past history of inputs
How can you tell an input is current or in the past?
Bistable element
The simplest sequential circuit
Two states
One state variable, say, Q
HIGH
LOW
LOW
HIGH
Bistable element
The simplest sequential circuit
Two states
One state variable, say, Q
LOW
HIGH
HIGH
LOW
Analog analysis
Assume pure CMOS thresholds, 5 V rail
Theoretical threshold center is 2.5 V
Analog analysis
Assume pure CMOS thresholds, 5V rail
Theoretical threshold center is 2.5
25V
2.5 V
25V
2.5
2.5 V
25V
2.5
Analog analysis
Assume pure CMOS thresholds, 5V rail
Theoretical threshold center is 2.5 V
2
4
2.5
4.8
2.51
5
8
51VV
20.0
2.0
2 00
0
2.5
5V
V
2.5
4.8 V
5.0
V
2.0
2.5 V
0.0
V
Metastable state
Metastability
Metastability is inherent in any bistable circuit
Control bistable
How to control it?
Control inputs S and R
S-R latch
Metastability is possible
if S and R are negated
simultaneously.
D latch
D-latch operation
When C = 1, Q = D.
When C = 0, Q does not change.
CLK
CLK_L
Latch 1
Status
QM
Latch 2
Status
Disabled
Dprev@
Enabled
QM=Dprev@
Dprev@
Enabled
~D
Dprev@
Disabled
D
Disabled
D@
Dprev@
Dprev@
Enabled
QM = D @
Scan flip-flop
How is this circuit
different from the
previous one?
TE = 0 normal operation
TE = 1 test operation
All off the
h flip-flops
fli fl
are hooked
h k d together
h in
i a daisy
d i chain
h i from
f
external test input TI.
Load upp (scan
(
in)) a test pattern,
p
do one normal operation,
p
shift
out (scan out) result on TO.
T flip-flops
S-R latch
S_L-R_L latch
S-R latch with enable
D latch
Edge-triggered
Edge
triggered D flip
flip-flop
flop
Edge-triggered D flip-flop with enable
Edge-triggered D flip-flop with preset and clear
S
Scan
fli
flip-flop
fl
Edge-triggered J-K flip-flop
Master/slave S-R flip-flop
Master/slave J-K flip-flop
T flip-flop
T flip
flip-flop
flop with enable