Chapter 5
Chapter 5
• D Latch
–When En=1, it latches/stores the data
Notes on D Latches
__
S R : NAND gate Latch
Graphic Symbols for Latches
Problems With Latches
EN
Determine the Q output for
the D latch, given the inputs Q
shown.
D
EN
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights
Reserved
Flip Flop
• The state of a latch or a flip flop is switched by a
change in the control input.
• The momentary change in the control input, called a
trigger, causes a transition in the flip flop.
– As long as the control input is enabled, the data in and data out
can be changed.
• Typically the output of a flip flop is used as an input of
the combinational circuit which in turn provides input
back to the flip flop (next slide).
– If a latch is used, we run the risk of unpredictable results
because the latch changes output for as long as the control
input is enabled. If the input changes while the clock pulse
(control input) is still in logic 1 level, the output will change as
per the new input
– Therefore, the output of a latch cannot be applied directly or
through combinational logic to the input of the same or another
latch.
• Flip flop circuits are constructed in such a way as to
make them operate properly when they are part of a
sequential circuit that employs a common clock.
Synchronous Clocked Sequential Circuit
Clock Responses
Clock Responses
Modifying Latches
C 0 0 1 0 0 1 1 0 1
D 0 1 1 0 1 1 0 0 1
Y 0 0 1 1 1 1 0 0 1
Q 0 0 0 1 1 1 1 0 0 1
Edge Transition
1/1/1/0/0/0 0/0/0/1/1/1
1/1/1/1/0/1 x/0/0/0/1/1
0/1/0/0/1/0
1/0/1/1/1/1
x/1/1/1/0/0
0/0/0/1/1/1
1/1/1/0/0/0
Flip Flop Characteristics
• Set-up time and hold time are times required before and
after the clock transition that data must be present to be
reliably clocked into the flip-flop.
D
Hold time tH is the
minimum time for the
CLK
data to remain after the
clock.
Hold time, tH
Flip Flop Characteristic
• Propagation delay time is specified for the rising and falling
outputs. It is measured between the 50% level of the clock to
the 50% level of the output transition.
CLK CLK
Q
50% point on High to
50% point on Low to Low transition of Q
High transition of Q
tPLH tPHL
Other Flip Flops
Q(t + 1) = D
JK Flip Flop
– If J = 0 and K = 1, D = 0, reset to 0
D Q
CLK
CLK
Q’
• A(t + 1) = Ax + Bx
• B(t + 1) = A’x
• y(t) = (A + B)x’
Generic Procedure
Reset
D Flip Flop with Asynchronous Preset
Preset
Propagation Delay
Q
Q
tPHL tPLH
Analysis of Clocked Sequential Circuits
• JA = B
• JB = x’
• KA = Bx’
• KB = A’x + Ax’ = A x
JK Analysis State Table
• JA = B
• JB = x’
• KA = Bx’
• KB = A’x + Ax’ = A x
JK Analysis State Diagram
T Flip Flop Analysis
• TA = Bx
T
B • TB = x
• Y = AB
R
CLK Reset
T Flip Flop Analysis State Table
• TA = Bx
• TB = x
• Y = AB
A(t + 1) = TA A = Bx A
B(t + 1) = TB B = x B
Mealy and Moore Models
1/0
FSMs 88
Example Moore Model
x A
T
y
R
0 0
1
00/0 11/1
T
B
1 1
R
01/0 10/0
1
CLK Reset 0 0
S1 (b)
S2 (c)
S3 (d)
S4 (e)
S5 (f)
S6 (g)
S7 (h)
S1 (b)
S2 (c) S3 – S3
S0 – S2
S3 (d) S0 – S1
S3 – S4
S4 (e) S0 – S2 S1 – S2
S1 – S4 S1 – S3
S0 (a) S1 (b) S2 (c) S3 (d)
Implication Chart Method
S2 = S0
S1 (b) S4 = S1
S2 (c) S3 – S3
S0 – S2
S3 (d) S0 – S1
S3 – S4
S4 (e) S0 – S2 S1 – S2
S1 – S4 S1 – S3