Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
LARRY MASSENGALE
Digital Systems Design, Volume III: Latch–Flip-Flop Circuits and
Characteristics of Digital Circuits
10 9 8 7 6 5 4 3 2 1
KEYWORDS
List of Figures ix
List of Tables xv
Acknowledgments xvii
Figure 1.1. Active low latch logic diagrams and state table 2
Figure 1.2. SET state of the active low latch 3
Figure 1.3. CLEAR state of the active low latch 4
Figure 1.4. RETAIN state of the active low latch 5
Figure 1.5. INVALID state of the active low latch 5
Figure 1.6. Active low latch used to determine waveform 6
Figure 1.7. Active low latch waveform 6
Figure 1.8. Active high latch logic diagrams and state table 7
Figure 1.9. SET state of the active high latch 8
Figure 1.10. CLEAR state of the active high latch 9
Figure 1.11. RETAIN state of the active high latch 10
Figure 1.12. INVALID state of the active high latch 10
Figure 1.13. Active high latch used to determine waveform 11
Figure 1.14. Active high latch waveform 11
Figure 1.15. Active low latch logic diagrams and state table 12
Figure 1.16. SET state of the active low gated S-C latch 13
Figure 1.17. CLEAR state of the active low gated S-C latch 14
Figure 1.18. RETAIN state of the active low gated S-C latch 15
Figure 1.19. INVALID state of the active low gated S-C latch 15
Figure 1.20. RETAIN state of the active low gated S-C latch 16
Figure 1.21. RETAIN state of the active low gated S-C latch 16
Figure 1.22. Active low gated S-C latch used to determine waveform 17
Figure 1.23. Active low gated S-C latch waveform 17
Figure 1.24. Active low gated D latch logic diagrams and state table 18
Figure 1.25. SET state of the active low gated D latch 20
Figure 1.26. CLEAR state of the active low gated D latch 21
Figure 1.27. NO CHANGE (NC) state of the active
low gated D latch (D = 0) 21
Figure 1.28. NO CHANGE (NC) state of the active low
gated D latch (D = 1) 22
Figure 1.29. Active low gated D latch used to determine waveform 22
x • List of Figures
Figure 1.61. Similarity of S-C latch and JK flip flop truth tables 42
Figure 1.62. Toggling (racing) of JK flip flop (first cycle of toggling) 42
Figure 1.63. Toggling (racing) of JK flip flop
(second cycle of toggling) 43
Figure 1.64. Toggling (racing) of JK flip flop
(third cycle of toggling) 43
Figure 1.65. Waveform of JK flip flop toggling (racing) 44
Figure 1.66. JK MS flip flop logic diagrams and state table 45
Figure 1.67. JK MS flip flop clock cycles 46
Figure 1.68. JK MS latches first-half clock cycle, CLK= 1,
J = 1, and K = 0 47
Figure 1.69. JK MS latches second-half clock cycle, CLK′ = 1,
QM = 1, and QM′ = 0 47
Figure 1.70. Toggling (racing) of JK flip flop
(first cycle of toggling) 73
Figure 1.71. Toggling (racing) of JK flip flop
(second cycle of toggling) 74
Figure 1.72. Toggling (racing) of JK flip flop
(third cycle of toggling) 74
Figure 1.73. Waveform of JK flip flop toggling (racing) 75
Figure 1.74. JK MS latches first half-clock cycle, CLK = 1,
J = 1, and K = 0 77
Figure 1.75. JK MS latches second-half clock cycle, Clk′ = 1,
QM = 1, and QM′ = 0 78
Figure 2.1. Initial conditions of series RC circuit charging 81
Figure 2.2. Percentage of charge versus time constant 82
Figure 2.3. Charging capacitor voltage versus time constant 82
Figure 2.4. Charging capacitor current versus time constant 83
Figure 2.5. Percentage graph of voltage and current of charging
capacitor 84
Figure 2.6. Initial conditions of series RC circuit discharging 85
Figure 2.7. Discharging capacitor voltage versus time constant 85
Figure 2.8. Discharging capacitor current versus time constant 86
Figure 2.9. Percentage graph of voltage and current of discharging
capacitor 86
Figure 2.10. CMOS invertor 93
Figure 2.11. CMOS invertor switch model 94
Figure 2.12. Typical CMOS inverter transfer characteristics graph 95
Figure 2.13. Five operational regions of input–output transfer
characteristics curve 95
Figure 2.14. CMOS inverter input and output noise margin
characteristics 99
xii • List of Figures
1.1. INTRODUCTION
The active low latch has two inputs, identified as SET′ and CLR′, hence
active low latch. The latch outputs are Q and Q′. Figure 1.1 shows how one
NAND gate output feeds back to the other NAND gate input with oppo-
site polarity, the state of each input combination, the logic symbol for the
active low latch, and the active low latch waveform.
2 • DIGITAL SYSTEMS DESIGN, VOLUME III
U1
SET’ 2
1
3
OR2
U4
2
1
3
CLR’
OR2
Figure 1.1. Active low latch logic diagrams and state table
Latch and Flip Flop Circuits • 3
t0 t1 t2 t3 t4 t5
S’ Q
Set’
Clr’
Q’
C’ Q’
Q
d. Logic Symbol
Figure 1.1. Active low latch logic diagrams and state table (Continued )
Gate latch SET′ and CLR′ level will be explained next. As shown
in Figures 1.2to1.5, the completed aforementioned active low latch state
table is analyzed. We began with SET′ = 0 and CLR′ = 1, as shown in
Figure 1.2, where the output of logic gate G1 is a logic high or 1. This logic
1 is feedback from the output of gate G1 to the top input of logic gate G2.
This input logic 1 along with the CLR′ logic 1 will produce a logic low or
logic 0 output to logic gate G2. When the SET′ = 0 and CLR′ = 1 inputs
exist, this condition places the active low latch in a SET state as shown in
the state table in Figure 1.2.
U1
0
SET’ 2
1
3
G1 Q=0
OR2
U2
2
1
G2 1
1 3 Q’= 0
CLR’
OR2
Next we show SET′ = 1 and CLR′ = 0 in Figure 1.3, where the output
of logic gate G1 is a logic low or logic 0. This logic 0 is feedback from the
output of gate G1 to the top input of logic gate G2. This input logic 0 along
with the CLR′ logic 0 will produce a logic high or logic 1 output to logic
gate G2. When the SET′ = 1 and CLR′ = 0 inputs exist, this condition
places the active low latch in a CLEAR state as shown in the state table in
Figure 1.3.
U1
0
SET’ 2
1 0
G1 Q=0
3
OR2
U2
0 2
1 1
0 3 G2 Q’ = 1
CLR’
OR2
U1
1
SET’ 2
1
1
3
G1 Q=1
OR2
U2
2
1 0
G2 1
1 3 Q’ = 0
CLR’
OR2
U1
0
SET’ 2
1
1
3
G1 Q=1
1
OR2
U2
2
1 1
G2 1
0 3 Q’ = 1
CLR’
OR2
Given Table 1.1 and Figure 1.6 we construct the waveform for the
active low latch.
U1
SET’ 2
1
3
G1 Q
OR2
U2
2
1
G2 1
3 Q’
CLR’
OR2
Using the SET′ and CLR′ inputs we can determine the Q and Q′ out-
puts for time increment from the aforementioned information in this sec-
tion. Once we know the outputs for each time increment we can construct
the waveform shown in Figure 1.7.
The active high latch has two inputs, identified as SET and CLR, hence
active high latch. The latch outputs are Q′ and Q. Figure 1.8 shows how
one NOR gate output feeds back to the other NOR gate input with oppo-
site polarity, the state of each input combination, the logic symbol for the
active high latch, and the active high latch waveform.
U3 U5
SET 2
1 SET 2
1
3 Q’ 3 Q’
NOR2 AND2
U4
U6
2
1 2
3 Q 1
Q
CLR 3
CLR
NOR2 AND2
a. NOR Gate Latch and Inverted Diagram b. AND Gate Latch Diagram
Figure 1.8. Active high latch logic diagrams and state table
8 • DIGITAL SYSTEMS DESIGN, VOLUME III
t0 t1 t2 t3 t4 t5
S Q
Set
Clr
Q
C Q’
Q’
d. Logic Symbol
Figure 1.8. Active high latch logic diagrams and state table (Continued )
Gate SET and CLR input levels will be explained next. As shown in
Figures 1.9 to 1.12, the completed aforementioned active high latch state
table is analyzed. We began with SET = 1 and CLR = 0, as shown in
Figure 1.9, where the output of logic gate G1 is a logic low or 0. This logic
0 is feedback from the output of gate G1 to the top input of logic gate G2.
This input logic 0 along with the CLR logic 0 will produce a logic high or
logic 1 output to logic gate G2. When the SET = 1 and CLR = 0 inputs
exist, this condition places the active high latch in a SET state as shown in
the state table in Figure 1.9.
U3
1
SET 2
1
0
3 Q’= 0
1
NOR2
U4
0 2 1
1
0 3 Q=1
CLR
NOR2
Next we show SET = 0 and CLR = 1 in Figure 1.10, where the output
of logic gate G1 is a logic high or logic 1. This logic 1 is feedback from
the output of gate G1 to the top input of logic gate G2. This input logic 1
along with the CLR logic 1 will produce a logic low or logic 0 output of
logic gate G2. When the SET = 0 and CLR = 1 inputs exist, this condition
places the active high latch in a CLEAR state as shown in the state table
in Figure 1.10.
U3
0
SET 2
1
1
3 Q’= 1
0
NOR2
U4
1 2 0
1
1 3 Q=0
CLR
NOR2
U3
0
SET 2
1 1
3 Q’= 1
0
NOR2
U4
2
1 0
1
0 3 Q=0
CLR
NOR2
U3
1
SET 2
1
0
3 Q’= 0
0
NOR2
U4
2
0 0
1
1 3 Q=0
CLR
NOR2
Given Table 1.3 and Figure 1.13 we construct the waveform for the
active high latch.
U1
SET 2
1
3
G1 Q
OR2
U2
2
1
3
G2 Q’
CLR
OR2
Using the SET and CLR inputs we can determine the Q and Q′ out-
puts for time increment from the aforementioned information in this sec-
tion. Once we know the outputs for each time increment we can construct
the waveform shown in Figure 1.14.
The active low gated S-C latch has three inputs, identified as SET, G, and
CLR. The latch outputs are Q and Q′. Figure 1.15 shows the gated SET and
CLR inputs, how one inverted OR gate output feeds back to the other OR gate
input with opposite polarity, the state of each input combination, the logic
symbol for the active low S-C latch, and the active low S-C latch waveform.
U1
U3
2
SET 1 2
3
3
1 Q
NAND2
OR2
U4
U2
2
2 1
1 3
Q’
3
CLR
OR2
NAND2
t0 t1 t2 t3 t4 t5 t6 t7 t8
S Q
G
S
G
C
C Q’
Q
Logic Diagram
d. Gated S-C Latch Waveform
Figure 1.15. Active low latch logic diagrams and state table (Continued )
SET and CLR input levels will be explained next. As shown in Figures
1.16 to 1.20, the completed aforementioned active low gated S-C latch state
table is analyzed. We began with SET = 1, CLR = 0, and gated input = 1, as
shown in Figure 1.16, where the output of NAND Gate G1 is a logic low or
logic 0 and the output of NAND Gate G2 is a logic high or logic 1. Gate G1 out-
put is applied to one of the inputs of Gate G3 and the Gate G2 output is applied
to one of the inputs of Gate G4. As with NAND gate inputs, the inverted OR
gate requires all inputs must be highs for the inverted OR gate to have a logic
low output. Since one of the inputs is low, we know that the output of Gate G3
must be a logic high or logic 1 output. We can trace the logic high at Q back to
the top input of Gate G4. The other Gate G4 input is also high, providing a low
output of Gate G4. We can also trace this low back to the other input of Gate
G3, where we now know both inputs to Gate G3 are low. So Q = 1 and Q′ = 0.
The S-C latch circuit provides for two steering gates for synchronization, which
are added to the active low latch circuit, forming the active low gated S-C latch.
U1
U3
1 2
SET 0
G1 1 2
1
3
3 G3
1 Q=1
0
NAND2
OR2
G 1
U4
U2
1 2
2 1 G4 1
1 3
Q’ = 0
0 G2 0
3
CLR
OR2
NAND2
Figure 1.16. SET state of the active low gated S-C latch
14 • DIGITAL SYSTEMS DESIGN, VOLUME III
U1
U3
0 2
SET 1
G1 1 2
0
3
3 G3
1 Q=0
1
NAND2
OR2
G 1
U4
U2
0 2
2 0 G4 1
1 3
Q’ = 1
1 G2 1
3
CLR
OR2
NAND2
Figure 1.17. CLEAR state of the active low gated S-C latch
U1
U3
0 2 1
SET 1 2
G1 0
3
3 G3
1 Q=0
1
NAND2
OR2
G 1
U4
U2
0 2
2 1 G4 1
1 3
Q’ = 1
0 G2 1
3
CLR
OR2
NAND2
Figure 1.18. RETAIN state of the active low gated S-C latch
U1
U3
1 2
SET 0
G1 1 2
1
3
3 G3
1 Q=1
1
NAND2
OR2
G 1
U4
U2
1 2
2 0 G4 1
1 3
Q’ = 1
1 G2 1
3
CLR
OR2
NAND2
Figure 1.19. INVALID state of the active low gated S-C latch
the output of Gate G4 must be a logic high or logic 1 output. We can trace
the logic high at Q′ back to the bottom input of Gate G3. The other Gate
G3 input is also high, confirming a low output of Gate G3. So Q = 0 and
Q′ = 1. Additionally, we could have assumed Gate G4 inputs as both high
inputs, providing a low output to Gate G4. If this was the case, then Q = 1
and Q′ = 0. This agrees with the active low gated S-C latch truth table
provided earlier.
U1
U3
0 2
SET 1
G1 1 2
0
3
3 G3
1 Q=0
1
NAND2
OR2
G 0
U4
U2
0 2
2 1 G4 1
1 3
Q’ = 1
0 G2 1
3
CLR
OR2
NAND2
Figure 1.20. RETAIN state of the active low gated S-C latch
U1
U3
1 2 1
SET 1 2
G1 0
3
3 G3
1 Q=0
1
NAND2
OR2
G 0
U4
U2
0 2
2 1 G4 1
1 3
Q’ = 1
1 G2 1
3
CLR
OR2
NAND2
Figure 1.21. RETAIN state of the active low gated S-C latch
Latch and Flip Flop Circuits • 17
Given Table 1.5 and Figure 1.22 we construct the waveform for the
active low gated S-C latch.
U1
U3
2
SET 1 2
G1
3
3 G3
1 Q
NAND2
OR2
U4
U2
2
2 1
1 3 G4 Q’
3 G2
CLR
OR2
NAND2
Figure 1.22. Active low gated S-C latch used to determine waveform
Using the SET, CLR, and gated inputs we can determine the Q and
Q′ outputs for time increment from the aforementioned information in
this section. Once we know the output for each time increment we can
construct the waveform shown in Figure 1.23.
Table 1.6. State table for time increments of active low gated S-C latch
waveform
The active low gated D latch has two inputs, identified as D and G; how-
ever, input D is inverted at the bottom steering gate. The latch outputs are
Q and Q′. Figure 1.24 shows the gated D and G inputs, how one inverted
OR gate output feeds back to the other OR gate input with opposite polar-
ity, the state of each input combination, the logic symbol for the active low
D latch, and the active low D latch waveform.
U1
U3
D 2
1 2
3 1
Q
3
NAND2
OR2
U4
U2
U5 2
2 1 Q’
1 3
2 1 3
OR2
NAND2
NOT
Figure 1.24. Active low gated D latch logic diagrams and state table
Latch and Flip Flop Circuits • 19
D Q
G Q’
b. Gated D Latch State
Table c. Gated D Latch
Logic Diagram
t0 t1 t2 t3 t4 t5
Q’
Figure 1.24. Active low gated D latch logic diagrams and state table (Continued )
The previous latch circuits all have a critical defect in their design: the
invalid state. The gated D latch is an improvement over the latches we have
discussed so far. The gated D latch eliminates the SET and CLEAR inputs
and provides one input for the D input. The ideal latch allows for a SET,
CLEAR, and RETAIN state. The gated D latch also eliminates the Invalid
state and provides for synchronization of the circuit. It is known as the
data-type latch or delay-type latch and usually is a gated circuit. This latch
ensures that no equal combinations of data inputs are applied to the steer-
ing gates. The D input allows for only complementary inputs to the steer-
ing gates: one input applied to Gate G1 and an inverted D input applied to
Gate G2. When the gated G = 1, the latch will be in either the SET or the
CLEAR state. When the gated G = 0, the latch’s state at the enable pulse
transition is stored. This state is known as NO CHANGE (NC). When the
latch is enabled, the Q output will follow the D input logic level.
20 • DIGITAL SYSTEMS DESIGN, VOLUME III
U1
U3
D 1 2 0
1 2
3
G1 1
1
G3 Q=1
1 3
0
NAND2
OR2
U4
U2
U5 1 2
1 2 1 Q’ = 0
1 G4
1 3 0
2 1 3 G2
INV
0
OR2
NAND2
NOT
U1
U3
0 2
D 1
1 2
3
G1 1
0
G3 Q=0
1 3
1
NAND2
OR2
U4
U2
U5 0 2
1 2 1 Q’ = 1
0 G4
1 3 1
2 1 3 G2
INV
1
OR2
NAND2
NOT
U1
U3
0 2
D 1
1 2
3
G1 1
0
G3 Q=0
0 3
1
NAND2
OR2
U4
U2
U5 0 2
0 2 1 Q’ = 1
1 G4
1 3 1
2 1 3 G2
INV
1
OR2
NAND2
NOT
Figure 1.27. NO CHANGE (NC) state of the active low gated D latch (D = 0)
22 • DIGITAL SYSTEMS DESIGN, VOLUME III
U1
U3
1 2
D 1
1 2
3
G1 1
1
G3 Q=1
0 3
0
NAND2
OR2
U4
U2
U5 1 2
0 2 1 Q’ = 0
1 G4
1 3 0
2 1 3 G2
INV
0
OR2
NAND2
NOT
Figure 1.28. NO CHANGE (NC) state of the active low gated D latch (D = 1)
Given Table 1.7 and Figure 1.29 we construct the waveform for the
active low gated D latch.
U1
U3
D 2
1 2
3
G1 1
G3 Q
3
NAND2
OR2
U4
U2
U5 2
2 1 Q’
1 3
G4
2 1 3 G2
INV
OR2
NAND2
NOT
Using the D and G inputs we can determine the Q and Q′ outputs for
time increment from the aforementioned information in this section. Once
we know the output for each time increment we can construct the wave-
form shown in Figure 1.30.
Table 1.8. State table for time increments of active low gated D latch
waveform
The SN74LS75 and SN74LS77 four-bit bistable latches are other circuits
using latches. Both these circuits are similar to the D-type latch. The value
of Q outputs of these bistable latch circuits will be the same as the value
of the D inputs. The Q outputs of the bistable latches store data when
the enable input goes low. In both the SN74LS75 and SN74LS77 four-bit
bistable circuits, when Enable C = 0, the top AND is inhibited and data is
prevented from entering the latch. Additionally, the Enable C is inverted
and enables the bottom AND gate which controls the NOR gate in order
24 • DIGITAL SYSTEMS DESIGN, VOLUME III
to retain the current latch condition. When Enable C = 1 the bottom AND
gate will be inhibited while the top AND gate is enabled to allow the data
input to control the NOR gate, causing Q to follow the D input.
1.6.1. SN74LS75
This four-bit bistable latch has two inputs, identified as D and Enable C.
The latch outputs are Q and Q′. Figure 1.31 shows the gated D and Enable
C inputs, both Q and inverted Q (Q′) outputs, the state of each input com-
bination, and the logic symbol for the SN74LS75 four-bit bistable latch.
U2
Q
2
D 1
3 U4 U5
2
U1 AND2 1 2 1 Q’
U3 3
Enable 2 1 2
C 1 NOR2 NOT
3
NOT
AND2
1Q
1D
1Q’
1C,2C
2Q
2D
2Q’
3Q
3D
3Q’
3C,4C
4Q
4D
4Q’
Figure 1.31. SN74LS75 four-bit bistable latch logic diagrams and state table
U2
1
1
Q
2
D 1
G2
3 U4 U5
1
2
U1 AND2 1 2 1 0
G4 G5 Q’
U3 3
Enable 1 2 1 2
G1 0
C 1 NOR2 NOT
0 G3
3
NOT
AND2
U2
0
0
Q
2
D
G2 1
3 U4 U5
0
2
U1 AND2 1 2 1 1
G4 G5 Q’
U3 3
1 2 1 2 0
G1 1 NOR2 NOT
0 G3
3
NOT
AND2
1
U2
1
0
Q
D 2
G2 1
3 U4 U5
0
2
U1 AND2 1 2 1 0
G4 G5 Q’
U3 3
Enable 0 2 1 2
G1 0
C 1 NOR2 NOT
1 G3
3
NOT
AND2
0
Given Table 1.9 and Figure 1.35 we construct the waveform for the
SN74LS75 four-bit bistable latch.
U2
Q
D 2
G2 1
3 U4 U5
2
U1 AND2 1 2 1 Q’
U3 3 G4 G5
Enable 2 1 2
C G1 1 NOR2 NOT
G3
3
NOT
AND2
Using the D and Enable C inputs we can determine the Q and Q′ out-
puts for time increment from the aforementioned information in this sec-
tion. Once we know the output for each time increment we can construct
the waveform shown in Figure 1.36.
1.6.2. SN74LS77
This four-bit bistable latch has two inputs, identified as D and Enable C.
This latch has only the Q output. Figure 1.38 shows the gated D and En-
able C inputs, the single output Q, the state of each input combination,
and the logic symbol for the SN74LS77 four-bit bistable latch. This circuit
works exactly like the SN74LS75 four-bit bistable latch with the exception
that the SN74LS77 has one Q output alone (no Q′ output).
U7
2
D
1
3 U9
2
U6 AND2 1 Q
U8 3
Enable 2 1 2
C 1 OR2
3
NOT
AND2
Figure 1.38. SN74LS77 four-bit bistable latch logic diagrams and state table
28 • DIGITAL SYSTEMS DESIGN, VOLUME III
1Q
1D
1C,2C
2Q
2D
3Q
3D
3C,4C
4Q
4D
b. SN74LS77 Four-Bit
Bistable Latch State Table c. SN74LS77 Four-Bit Bistable
Latch Logic Diagram
Given Table 1.11 and Figure 1.39 we construct the waveform for the
SN74LS77 four-bit bistable latch.
U7
2
D
1
3 U9
2
U6 AND2 1 Q
U8 3
Enable 2 1 2
C 1 OR2
3
NOT
AND2
Using the D and Enable C inputs we can determine the Q output for
time increment from the aforementioned information in this section. Once
we know the output for each time increment we can construct the wave-
form shown in Figure 1.40.
Latch and Flip Flop Circuits • 29
The positive edge triggered D flip flop has two inputs, identified as D
and CLK; however, input D is inverted at the bottom steering gate. The D
flip flop outputs are Q and Q′. Figure 1.41 shows the gated D and CLK
inputs, how one inverted OR gate output feeds back to the other OR gate
input with opposite polarity, the state of each input combination, the logic
symbol for the positive edge triggered D flip flop, and the positive edge
triggered D flip flop waveform.
30 • DIGITAL SYSTEMS DESIGN, VOLUME III
U1
U3
D 2
1 2
3 1 Q
3
NAND2
OR2
Edge
CLK
Detector
U4
U2
CLK U5 2
2 1
Q’
PGT 1 3
PULSE 2 1 3
OR2
NAND2
NOT
D Q
CLK Q’
t0 t1 t2 t3
CLK
D
Q
Q’
Figure 1.41. Positive edge triggered D flip flop logic diagrams and state table
produces a low input that inhibits the steering gates. Upon occurrence the
NAND gate latch is put into the RETAIN state to store data in the flip flop.
When D = 1 and CLK = ↑ (transitioning to a logic 1) as shown in
Figure 1.42, Gate G1 will be enabled with both high inputs resulting in a
logic low output. Gate G3 will have only one logic high input, resulting in
a high output. We know Q will follow the D input, which is a logic high.
We can trace the Q logic 1 back to the upper input of Gate G5. Gate G5
will have both inputs as logic 1s, resulting in a logic 0 output. The Q′ out-
put can be traced back to the lower input of G4, confirming both inputs of
Gate G4 as logic 0s, resulting in the logic 1 output. So Q = 1 and Q′ = 0.
U1
1 U3
1 2 0
D
1 2
3
G1 1
1
G4 Q=1
1 3
0
NAND2
OR2
1 Edge 1
CLK
Detector
1
U4
U2 1
CLK U5 1 2
0
2 1
1 G5 Q’ = 0
PGT G3
1 3
PULSE 2 G2 1 3
0
OR2
NAND2
NOT
Figure 1.42. SET state for positive edge triggered D flip flop
U1
0 U3
0 2 1
D
1 2
3
G1 1
0
G4 Q=0
1 3
1
NAND2
OR2
1 Edge 1
CLK
Detector
0
U4
U2 0
CLK U5 1 2
1
2 1
0 G5 Q’ = 1
PGT G3
1 3
PULSE 2 G2 1 3
1
OR2
NAND2
NOT
Figure 1.43. CLEAR state for positive edge triggered D flip flop
32 • DIGITAL SYSTEMS DESIGN, VOLUME III
U1
0 U3
0 2 1
D
1 2
3
G1 1
0
G4 Q=0
0 3
1
NAND2
OR2
1 Edge 0
CLK
Detector
0
U4
U2 0
CLK U5 0 2
1
2 1
1 G5 Q’ = 1
PGT G3
1 3
PULSE 2 G2 1 3
1
OR2
NAND2
NOT
Figure 1.44. NO CHANGE state for positive edge triggered D flip flop (D = 0)
0 Edge 0
CLK
Detector
1
U4
U2 1
CLK U5 0 2
0
2 1
1 G5 Q’ = 0
PGT G3
1 3
PULSE 2 G2 1 3
1
OR2
NAND2
NOT
Figure 1.45. NO CHANGE state for positive edge triggered D flip flop (D = 1)
Latch and Flip Flop Circuits • 33
The positive going transition (PGT for a positive edge detector can
be developed from a circuit such as the one shown in Figure 1.46. When
ANDing, the two inputs together will create the positive going transition
pulse. One input is a positive clock pulse input while the other is a negative
clock pulse input. The negative clock be will delayed by 20 to 25ns due to
the invertor on this input. Figure 1.47 shows the waveform for the positive
edge detector.
Given Figure 1.48 we construct the waveform for the D-type flip flop.
Using the CLK and D inputs we can determine the Q and Q′ outputs
for time increment from the aforementioned information in this section.
Once we know the output for each time increment we can construct the
waveform shown in Figure 1.49.
The negative edge triggered D flip flop has two inputs, identified as D
and CLK; however, input D is inverted at the bottom steering gate. The D
flip flop outputs are Q and Q′. Figure 1.50 shows the gated D and CLK
inputs, how one inverted OR gate output feeds back to the other OR gate
input with opposite polarity, the state of each input combination, the logic
symbol for the negative edge triggered D flip flop, and the negative edge
triggered D flip flop waveform.
U1
U3
D 2
1 2
3 1 Q
3
NAND2
OR2
Edge
CLK
Detector
U4
U2
CLK U5 2
2 1
Q’
NGT 1 3
PULSE 2 1 3
OR2
NAND2
NOT
Figure 1.50. Negative edge triggered D flip flop logic diagrams and state table
Latch and Flip Flop Circuits • 35
D Q
CLK Q’
CLK
D
Q
Q’
The edge detector circuit shown in Figure 1.51 produces a short du-
ration positive pulse on the negative going transition (NGT) of the clock
pulse. This pulse enables the steering gates and functions identical to the
D-type latch. When the NAND gates are enabled, the Q output follows
the status of the D input. The date input should not be changed during
the active clock cycle. When the pulse is not available, the edge detector
produces a low input that inhibits the steering gates. When this occurs the
NAND gate latch is put into the RETAIN state to store data in the flip flop.
When D = 1 and CLK = ↓ (transitioning to a logic 1 with a negative
down clock) as shown in Figure 1.51, Gate G1 will be enabled with both
high inputs resulting in a logic low output. Gate G3 will have only one
logic high input, resulting in a high output. We know Q will follow the D
input, which is a logic high. We can trace the Q logic 1 back to the upper
input of Gate G5. Gate G5 will have both inputs as logic 1s, resulting in
a logic 0 output. The Q′ output can be traced back to the lower input of
36 • DIGITAL SYSTEMS DESIGN, VOLUME III
G4, confirming both inputs of Gate G4 as logic 0s, resulting in the logic 1
output. So Q = 1 and Q′ = 0.
U1
1 U3
1 2 0
D
G1 1 2 1
3 G4 1 Q=1
3
0
NAND2
OR2
1 Edge 1
CLK
Detector
1
U4
U2
CLK U5 1 2 0
2 1 1
G5 Q’ = 0
NGT 1 3
2 1 3
G3
PULSE G2
0 OR2
NAND2
NOT
Figure 1.51. SET state for negative edge triggered D flip flop
U1
0 U3
0 2 1
D
G1 1 2 0
3 G4 1 Q=0
3
1 1
NAND2
OR2
1 Edge 1
CLK
Detector
0
U4
U2
CLK U5 1 0 2 1
2 0 1
G5 Q’ = 1
NGT 1 3
2 1 3
G3
PULSE G2
1 OR2
NAND2
NOT
Figure 1.52. CLEAR state for negative edge triggered D flip flop
Q to be a logic low. We can trace the Q logic 0 back to the upper input of
Gate G5. Gate G5 will have only one logic high input, resulting in a logic
1 output. The Q′ output can be traced back to the lower input of Gate G4,
confirming both inputs of Gate G4 as logic 1s, resulting in the logic 0 out-
put. The circuit will be in the No Change state, storing the retained data.
So Q = 0 and Q′ = 1.
U1
0 U3
0 2 1
D
G1 1 2 0
3 G4 1 Q=0
3
0 1
NAND2
OR2
0 Edge 0
CLK
Detector
0
U4
U2
CLK U5 0 0 2 1
2 1 1
G5 Q’ = 1
NGT 1 3
2 1 3
G3
PULSE G2
1 OR2
NAND2
NOT
Figure 1.53. NO CHANGE state for negative edge triggered D flip flop (D = 0)
U1
1 U3
1 2 1
D
G1 1 2 1
3 G4 1 Q=1
3
0 0
NAND2
OR2
0 Edge 0
CLK
Detector
1
U4
U2
CLK U5 0 1 2 0
2 1 1
G5 Q’ = 0
NGT 1 3
2 1 3
G3
PULSE G2
0 OR2
NAND2
NOT
Figure 1.54. NO CHANGE state for positive edge triggered D flip flop (D = 1)
38 • DIGITAL SYSTEMS DESIGN, VOLUME III
The negative going transition (NGT) for a negative edge detector can
be developed from a circuit such as the one shown in Figure 1.55. When
ANDing the two inputs together will create the negative going transition
pulse. One input is a positive clock pulse input while the other is a negative
clock pulse input. The negative clock be will delayed by 20 to 25ns due to
the invertor on this input. Figure 1.56 shows the waveform for the negative
edge detector.
Given Figure 1. 57 we construct the waveform for the D-type flip flop.
Using the CLK and D inputs we can determine the Q and Q′ outputs
for time increment from the aforementioned information in this section.
Once we know the output for each time increment we can construct the
waveform shown in Figure 1.58.
The positive edge triggered JK flip flop has three inputs, identified as J,
K, and CLK. The JK flip flop outputs are Q and Q′. Figure 1.59 shows the
gated J, K, and CLK inputs and how the top OR gate output feeds back to
the bottom NAND gate while the bottom OR gate output feeds back to the
top NAND gate; additionally, the top OR gate feeds back to the bottom OR
gate with inverse polarity while the bottom OR gate feeds back to the top
OR gate with inverse polarity. The figure also shows the state of each input
combination, the logic symbol for the positive edge triggered JK flip flop,
and the positive edge triggered JK flip flop waveform.
U6
U3
2
J 3 1 2
4 1 Q
3
NAND3
OR2
Edge
CLK
Detector
U4
U7
2
2 1 Q’
K 3 1 3
4
OR2
NAND3
PRE’
J Q
CLK
K Q’
CLR’
CLK
CLR’
PRE’
J
K
Q
Q’
The JK flip flop is the most versatile of the flip flops we have discussed
so far. It takes on one of the same characteristics as the D-type flip flop
in that its output will follow the D input. However, the JK flip flop has
two data inputs instead of one that the D-type flip flop possesses. When
J=K=1 and the clock = 1, an uncontrolled toggling situation would
occur. The toggling rate would be determined by the propagation delay of
the circuit. This situation is also known as race around condition.
We have not discussed time constants, propagation delay, or racing
previously, and these might be helpful in understanding further informa-
tion. We define these terms as follows:
Time constant: It is a time that represents the speed with which a particu-
lar system can respond to change, typically equal to the time taken for a
specified parameter to vary by a factor of 1-1/ e (approximately 0.6321).
Latch and Flip Flop Circuits • 41
The design characteristics of the JK flip flop are similar to those of the
S-C latch as shown in Figure 1.60. In addition, the JK flip flop provides a
feedback network from the output back to the steering gates.
U1
U3
2
SET 1 2
G1
3
3 G3
1 Q
NAND2
OR2
U4
U2
2
2 G4 1
1 3
Q’
3 G2
CLR
OR2
NAND2
U6
U3
2
J 3 1 2
4 1 Q
3
NAND3
OR2
Edge
CLK
Detector
U4
U7
2
2 1 Q’
K 3 1 3
4
OR2
NAND3
We also notice a similarity in the S-C latch truth table versus the JK
flip flop truth table as shown in Figure 1.61.
Figure 1.61. Similarity of S-C latch and JK flip flop truth tables
1
– 0 U6
U3
2
1 3 1 0 2
J G1
4 G3 1 Q=1
1 3 1
0
NAND3
OR2
Edge 1
CLK
Detector
U4
U7
1 2 0
1 2 1
1 G4 Q’ = 0
K 3 1 1 3
4 G2
OR2
– 1
0 NAND3
1
– 0 U6
U3
2
1 3 1 – 1
0 2
J G1
4 G3 1 Q = 1– 0
1 3 0
1
NAND3
OR2
Edge 1
CLK
Detector
U4
U7
0 2 1
1 2 1
1 1
– 0 G4 Q’ = 0
–1
K 3 1 3
4 G2
OR2
– 1
0 NAND3
1
––01 U6
U3
2
1 3 1 –
01–0 2
J G1
4 G3 1 Q = 1– 0– 1
1 3 1
0
NAND3
OR2
Edge 1
CLK
Detector
U4
U7
1 2 0
1 2 1
1 1
––01 G4 Q’ = 0
–1–0
K 3 1 3
4 G2
OR2
–
01–0
NAND3
inputs of Gate G4 are high, Gate G4 will have a low Q output. Both Q and
Q′ outputs are feedback to inputs at Gates G1 and G2 (Figure 1.64).
This toggling (racing) situation will continue until CLK = 0. The de-
lay time is determined by the delay timing of the JK flip flop. So Q = 1,
0, 1, 0, . . . and Q′ = 0, 1, 0, 1, . . . will toggle with its complement un-
til the clock is down-clocked. Figure 1.65 shows the clock, J, K, and Q
waveforms.
• The positive half cycle must be less than the propagation delay of
the flip flop.
• Implement edge triggering of the flip flop.
• Implement master–slave JK flip flop.
The JK master–slave (MS) flip flop has three inputs, identified as J, K, and
CLK. The JK MS flip flop outputs are Q and Q′. Figure 1.66 shows the
gated J, K, and CLK inputs and how the top NAND gate input feeds back
to the bottom output OR gate while the bottom NAND gate input feeds
back to the top output OR gate. It also shows two sets of NAND gate (in-
verted OR gates) latches where the top OR gate feeds back to the bottom
OR gate with inverse polarity while the bottom OR gate feeds back to the
top OR gate with inverse polarity, the state of each input combination, the
logic symbol for the JK MS flip flop, and the JK MS flip flop waveform.
Latch and Flip Flop Circuits • 45
U6
U3 U10
2 U8
J 3 1 2 QM 2 QS
4 1 2 1 Q
3 1 3
3
NAND3
OR2 OR2
NAND2
CLK’
CLK
U9
U4 U11
U7 2
2 1 2
2 1 3 1
Q’
K 3 1 3 3 QS’
4 QM’
NAND2
OR2 OR2
NAND3 U5
2 1
NOT
PRE’
J Q
CLK
K Q’
CLR’
#1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19 #20
CLK
CLR’
PRE’
QM
QS
Figure 1.68 shows the master and slave latches of the JK flip flops.
Additionally, the master portion of the flip flop identifies the positive edge
inputs for the first half of the current clock cycle when CLK = 1, J = 1,
and K = 0. We assumed during the last full clock cycle Q = 1 and Q′ = 0.
The Q and Q′ outputs have been traced back to the master steering gates.
Both G1 and G2 steering gates have high outputs. When J = 1 and K = 0,
Q = 1 and Q′ = 0, so QM = 1 and QM′ = 0. This is confirmed with both
Gate G4 inputs as high, resulting in a low output (QM′ = 0). This low
output can be traced back to the bottom input of Gate G3, confirming that
G3 has a high output. On the negative edge of the current clock cycle the
master portion of the MS JK flip flop will be inactive and the slave portion
will be activated for operation. The QM and QM′ outputs will be inputs to
Gates G5 and G6 of the slave circuit during the negative edge of the clock.
Figure 1.69 shows the inactive master and active slave portions of the
MS JK flip flop. During the second half of the clock cycle, the figure iden-
tifies the negative edge inputs when CLK′ = 1, QM = 1, and QM′ = 0.
Both G1 and G2 steering gates have high outputs. When J = 1 and K = 0,
Q = 1 and Q′ = 0, so QM = 1 and QM′ = 0. The QM and QM′ outputs
will be inputs to Gates G5 and G6 of the slave during the negative edge
of the clock. Both inputs for Gate G5 are high inputs, resulting in a low
output. Since QM′ = 0, the resulting output of Gate G6 is a high. Q will
follow the QM output, so Q = 1. This output can be traced back to the
upper input of Gate G8. Since there are two high inputs to the Gate G8,
the resulting output is low. The low output at Q′ can be traced back to the
bottom input of Gate G7. Two low inputs at Gate G7 will result in a high
output at Q. The Q and Q′ outputs have been traced back to the master
steering gates until CLK =1.
We will show the remaining truth table combinations for the MS JK
flip flop as questions for this section.
Latch and Flip Flop Circuits • 49
3. Given the following table construct the waveform for the active
low latch.
4. Provide the state of active low latch for each time increment.
50 • DIGITAL SYSTEMS DESIGN, VOLUME III
7. Given the following table construct the waveform for the active
high latch.
8. Provide the state of active high latch for each time increment.
9. For the active low gated S-C Latch provide the following informa-
tion:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
Latch and Flip Flop Circuits • 51
10. Provide the diagram and logic levels for inputs and outputs for the
following:
a. Set state of the active low gated S-C latch
b. Clear state of the active low gated S-C latch
c. Remain state of the active low gated S-C latch
d. Invalid state of the active low gated S-C latch
11. Using the following table provide the Q and Q′ outputs for the
active low gated S-C latch.
14. For the active low gated D latch provide the following information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
15. Given the following table construct the waveform for the active low
gated D latch.
52 • DIGITAL SYSTEMS DESIGN, VOLUME III
16. Provide the state of active low gated D latch for each time increment.
17. For the SN74LS75 four-bit bistable latch provide the following
information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
18. Given the following table construct the waveform for the SN74LS75
four-bit bistable latch.
19. Provide the state of the SN74LS75 four-bit bistable latch for each
time increment.
20. What is the difference in the diagrams of the SN74LS75 four-bit bistable
latch and the SN74LS77 four-bit bistable latch? Draw the diagrams.
21. For the positive edge triggered D-type flip flop provide the follow-
ing information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
Latch and Flip Flop Circuits • 53
22. For the negative edge triggered D-type flip flop provide the follow-
ing information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
23. For the positive edge triggered JK flip flop provide the following
information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
24. 24. Provide the definition for the following:
a. Time constant
b. Propagation delay
c. Racing
25. Explain the differences between the S-C latch truth table and the JK
flip flop truth table. Show tables and differences.
26. Explain what happens to the JK flip flop when Clk = 1, J =1, and
K = 1. Show diagrams with logic levels throughout the diagram for
at least the first few transitions.
27. How can the problem in Question 26 be resolved?
28. For the master–slave (MS) JK flip flop provide the following infor-
mation:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
29. Show what happens to logic levels throughout the MS JK flip flop half
clock cycles. Provide explanation along with diagrams with logic levels.
54 • DIGITAL SYSTEMS DESIGN, VOLUME III
t0 t1 t2 t3 t4 t5
Set’
S’ Q
Clr’
Q’
Q
C’ Q’
2. Given the following active low latch table provide a diagram with
logic levels for inputs and outputs:
a:
U1
0
SET’ 2
1
3
G1 Q=1
OR2
U2
2
1
G2 1
1 3 Q’= 0
CLR’
OR2
b:
U1
0
SET’ 2
1 0
G1 Q=0
3
OR2
U2
0 2
1 1
0 3 G2 Q’ = 1
CLR’
OR2
c:
U1
1
SET’ 2
1
1
3
G1 Q=1
OR2
U2
2
1 0
G2 1
1 3 Q’ = 0
CLR’
OR2
d:
U1
0
SET’ 2
1
1
3
G1 Q=1
1
OR2
U2
2
1 1
G2 1
0 3 Q’ = 1
CLR’
OR2
3. Given the following table construct the waveform for the active
low latch:
Latch and Flip Flop Circuits • 57
4. Provide the state of the active low latch for each time increment.
U3 U5
SET 2
1 SET 2
3 Q’ 1
Q’
3
NOR2 AND2
U4
U6
2 2
1
3 Q 1
Q
CLR CLR 3
NOR2 AND2
t0 t1 t2 t3 t4 t5
S Q Set
Clr
C Q’ Q’
c. Logic Symbol
d. Active High Latch Waveform
6. Given the following active high latch table provide a diagram with
logic levels for inputs and outputs.
Latch and Flip Flop Circuits • 59
a:
U3
1
SET 2
1
0
3 Q’= 0
1
NOR2
U4
0 2 1
1
0 3 Q=1
CLR
NOR2
b:
U3
0
SET 2
1
1
3 Q’= 1
0
NOR2
U4
1 2 0
1
1 3 Q=0
CLR
NOR2
c:
U3
0
SET 2
1 1
3 Q’= 1
0
NOR2
U4
2
1 0
1
0 3 Q=0
CLR
NOR2
d:
U3
1
SET 2
1
0
3 Q’= 0
0
NOR2
U4
2
0 0
1
1 3 Q=0
CLR
NOR2
7. Given the following table construct the waveform for the active
high latch.
8. Provide the state of the active high latch for each time increment.
Latch and Flip Flop Circuits • 61
9. For the active low gated S-C latch provide the following informa-
tion:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
U1
U3
2
SET 1 2
3
3
1 Q
NAND2
OR2
U4
U2
2
2 1
1 3
Q’
3
CLR
OR2
NAND2
S Q
C Q’
t0 t1 t2 t3 t4 t5 t6 t7 t8
Q’
10. Provide the diagram and logic levels for inputs and outputs for the
following:
a. Set state of the active low gated S-C latch
U1
U3
1 2
SET 0
G1 1 2
1
3
3 G3
1 Q=1
0
NAND2
OR2
G 1
U4
U2
1 2
2 1 G4 1
1 3
Q’ = 0
0 G2 0
3
CLR
OR2
NAND2
G 1
U4
U2
0 2
2 0 G4 1
1 3
Q’ = 1
1 G2 1
3
CLR
OR2
NAND2
G 1
U4
U2
0 2
2 1 G4 1
1 3
Q’ = 1
0 G2 1
3
CLR
OR2
NAND2
G 1
U4
U2
0 2
2 0 G4 1
1 3
Q’ = 1
1 G2 1
3
CLR
OR2
NAND2
11. Using the following table provide the Q and Q′ outputs for the act-
ive low gated S-C latch.
64 • DIGITAL SYSTEMS DESIGN, VOLUME III
13. Provide the state of the active low gated S-C latch for each time
increment.
14. For the active low gated D latch provide the following information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
Latch and Flip Flop Circuits • 65
U1
U3
D 2
1 2
3 1
Q
3
NAND2
OR2
U4
U2
U5 2
2 1 Q’
1 3
2 1 3
OR2
NAND2
NOT
D Q
G Q’
t0 t1 t2 t3 t4 t5
Q’
15. Given the following table construct the waveform for the active low
gated D latch.
16. Provide the state of the active low gated D latch for each time incre-
ment.
17. For the SN74LS75 four-bit bistable latch provide the following
information:
a. Diagram
b. Truth table
c. Logic symbol
Latch and Flip Flop Circuits • 67
U2
Q
2
D 1
3 U4 U5
2
U1 AND2 1 2 1 Q’
U3 3
Enable 2 1 2
C 1 NOR2 NOT
3
NOT
AND2
1Q
1D
1Q’
1C,2C
2Q
2D
2Q’
3Q
3D
3Q’
3C,4C
4Q
4D
4Q’
18. Given the following table construct the waveform for the SN74LS75
four-bit bistable latch.
19. Provide the state of the SN74LS75 four-bit bistable latch for each
time increment.
2
U1 AND2 1 2 1 Q’
U3 3
Enable 2 1 2
C 1 NOR2 NOT
3
NOT
AND2
2
D
1
3 U9
2
U6 AND2 1 Q
U8 3
Enable 2 1 2
C 1 OR2
3
NOT
AND2
21. For the positive edge triggered D-type flip flop provide the follow-
ing information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
U1
U3
D 2
1 2
3 1 Q
3
NAND2
OR2
Edge
CLK
Detector
U4
U2
CLK U5 2
2 1
Q’
PGT 1 3
PULSE 2 1 3
OR2
NAND2
NOT
D Q
CLK Q’
CLK
D
Q
Q’
22. For the negative edge triggered D-type flip flop provide the follow-
ing information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
U1
U3
D 2
1 2
3 1 Q
3
NAND2
OR2
Edge
CLK
Detector
U4
U2
CLK U5 2
2 1
Q’
NGT 1 3
PULSE 2 1 3
OR2
NAND2
NOT
D Q
CLK Q’
CLK
D
Q
Q’
23. For the positive edge triggered JK flip flop provide the following
information:
a. Diagram
b. Truth table
c. Logic symbol
d. Waveform
U6
U3
2
J 3 1 2
4 1 Q
3
NAND3
OR2
Edge
CLK
Detector
U4
U7
2
2 1 Q’
K 3 1 3
4
OR2
NAND3
PRE’
J Q
CLK
K Q’
CLR’
c. PGT JK Flip
Flop Logic
b. JK Flip Flop State Table
Diagram
72 • DIGITAL SYSTEMS DESIGN, VOLUME III
t0 t1 t2 t3 t4 t5 t6 t7 t8 t9
CLK
CLR’
PRE’
J
K
Q
Q’
25. Explain the differences between the S-C latch truth table and the JK
flip flop truth table. Show tables and differences.
Both tables are the same with the exception of the state when
Clk = 1, J = 1, and K = 1. In the action low S-C latch truth table
this state is not used while in the JK truth table this state is used and
is known as toggle or racing state.
26. Explain what happens to the JK flip flop when Clk = 1, J =1, and
K = 1. Show diagrams with logic levels throughout the diagram for
at least the first few transitions.
1
– 0 U6
U3
2
1 3 1 0 2
J G1
4 G3 1 Q=1
1 3 1
0
NAND3
OR2
Edge 1
CLK
Detector
U4
U7
1 2 0
1 2 1
1 G4 Q’ = 0
K 3 1 1 3
4 G2
OR2
– 1
0 NAND3
upper input of Gate G4. Also, the low output at Q′ can be traced by
the lower input of Gate G3. Gate G1 has all high inputs, with a low
output confirming the output at Gate G3. Gate G2 inputs are not all
high so its output will be high, confirming the output at Gate G4.
1
– 0 U6
U3
2
1 3 1 – 1
0 2
J G1
4 G3 1 Q = 1– 0
1 3 0
1
NAND3
OR2
Edge 1
CLK
Detector
U4
U7
0 2 1
1 2 1
1 1
– 0 G4 Q’ = 0
–1
K 3 1 3
4 G2
OR2
– 1
0 NAND3
1
––01 U6
U3
2
1 3 1 –
01–0 2
J G1
4 G3 1 Q = 1– 0– 1
1 3 1
0
NAND3
OR2
Edge 1
CLK
Detector
U4
U7
1 2 0
1 2 1
1 1
––01 G4 Q’ = 0
–1–0
K 3 1 3
4 G2
OR2
–
01–0
NAND3
76
U3 U10
2 U8
J 3 1 2 QM 2 QS
4 1 2 1 Q
3 1 3
3
NAND3
OR2 OR2
NAND2
CLK’
CLK
U9
U4 U11
U7 2
2 1 2
2 1 3 1
Q’
K 3 1 3 3 QS’
4 QM’
NAND2
OR2 OR2
NAND3 U5
2 1
NOT
PRE’
J Q
CLK
K Q’
CLR’
b. JK Master Flip Flop State Table c. PGT JK Master
Flip Flop Logic
Diagram
#1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19 #20
CLK
CLR’
PRE’
QM
QS
Figure 1.74 shows the master and slave latches of the JK flip flops.
Additionally, the master portion of the flip flop identifies the pos-
itive edge inputs for the first half of the current clock cycle when
CLK = 1, J = 1, and K = 0. We assumed during the last full clock
cycle Q = 1 and Q′ = 0. The Q and Q′ outputs have been traced back
to the master steering gates. Both G1 and G2 steering gates have high
outputs. When J = 1 and K = 0, Q = 1 and Q′ = 0, so QM = 1 and
QM′ = 0. This is confirmed with both Gate G4 inputs as high, result-
ing in a low output (QM′ = 0). This low output can be traced back to
the bottom input of Gate G3, confirming that G3 has a high output.
On the negative edge of the current clock cycle the master portion
of the MS JK flip flop will be inactive and the slave portion will be
activated for operation. The QM and QM′ outputs will be inputs to
Gates G5 and G6 of the slave during the negative edge of the clock.
Figure 1.75 shows the inactive master and active slave portions
of the MS JK flip flop. During the second half of the clock cycle, the
diagram shows the negative edge inputs when Clk′ = 1, QM = 1, and
QM′ = 0. Both G1 and G2 steering gates have high outputs. When
J = 1 and K = 0, Q = 1 and Q′ = 0, so QM = 1 and QM′ = 0. The
QM and QM′ outputs will be inputs to Gate G5 and G6 of the slave
during the negative edge of the clock. Both inputs for Gate G5 are high
inputs, resulting in a low output. Since QM′ = 0 the resulting output of
Gate G6 is a high. Q will follow the QM output so Q = 1. This output
can be traced back to the upper input of Gate G8. Since there are two
high inputs to the Gate G8 the resulting output is low. The low output
at Q′ can be traced back to the bottom input of Gate G7. Two low in-
puts at Gate G7 will result in a high output at Q. The Q and Q′ outputs
have been traced back to the master steering gates until CLK =1.
Index
A Complementary Medal-Oxide
Active high latch—NOR gate Semiconductor (CMOS), 1
latch, 7–12 Current spikes, 112
Active low gated D latch, 18–23
Active low gated S-C latch, 12–18 D
Active low latch—NAND gate D latch, active low gated, 18–23
latch, 1–7 D-type flip flop, 29–34
Alternating current (AC) load, 116 Data sheets, and specifications,
Asynchronous active pulse width, 87–92
128–129 Data storage and transfer
flip flops form registers,
B 129–130
Bidirectional shift register, parallel input parallel output,
135–136 134–136
parallel input serial output,
C 133–134
Capacitive load, 116 serial input parallel
Circuit loads, circuit behavior output, 133
with, 103–107 serial input serial output,
CLEAR state 130–132
active high latch, 9 Decoupling capacitors, 112
active low gated D latch, 21 Digital circuits, characteristics of
active low gated S-C latch, 14 data storage and transfer
for negative edge triggered D flip flip flops form registers,
flop, 36 129–130
for positive edge triggered D flip parallel input parallel output,
flop, 31 134–136
Clock pulse, high and low times, parallel input serial output,
128 133–134
Clock transition times, 129 serial input parallel
CMOS devices output, 133
destruction of, 112–113 serial input serial output,
inverter Thevenin circuit, 106 130–132
174 • Index
FORTHCOMING TITLES
• Rotating Equipment: Maintenance and Troubleshooting by James M. Watterson
• Tribology: A Simple Guide To The Study of Friction by James M. Watterson
• Digital Systems Design, Volume I: Numbering Systems and Logical Operations
by Larry Massengale
• Digital Systems Design, Volume II: Developmental Methods and Combinational
Logic Circuits by Larry Massengale
Momentum Press is one of the leading book publishers in the field of engineering,
mathematics, health, and applied sciences. Momentum Press offers over 30 collections,
including Aerospace, Biomedical, Civil, Environmental, Nanomaterials, Geotechnical,
and many others.
Momentum Press is actively seeking collection editors as well as authors. For more
information about becoming an MP author or collection editor, please visit
http://www.momentumpress.net/contact
The Momentum Press digital library is very affordable, with no obligation to buy in future years.