ECE380 Digital Logic: - Master-Slave Flip-Flip - Edge-Triggered Flip-Flop
ECE380 Digital Logic: - Master-Slave Flip-Flip - Edge-Triggered Flip-Flop
Flip-flops
The gated latch circuits presented are level sensitive and can change states more than once during the active period of the clock signal Circuits (storage elements) that can change their state no more than once during a clock period are also useful Two types of circuits with such behavior
Master-slave flip-flip Edge-triggered flip-flop
Electrical & Computer Engineering Dr. D. J. Jackson Lecture 25-2
Master-slave D flip-flop
Consists of 2 gated D latches
The first, master, changes its state while clock=1 The second, slave, changes its state while clock=0
Master D Clock D Q Q Slave m D Q Qs
Q Q
Clk Q
Clk Q
38 transistors
Electrical & Computer Engineering Dr. D. J. Jackson Lecture 25-3
Master-slave D flip-flop
When clock=1, the master tracks the values of the D input signal and the slave does not change When the clock signal changes to 0, the master stage stops following the changes in the D input signal At the same time, the slave stage responds to the value of Qm and changes states accordingly Since Qm does not change when clock=0, the slave stage undergoes at most one change of state during a clock cycle From an output point of view, the circuit changes Qs (its output) at the negative edge of the clock signal
Electrical & Computer Engineering Dr. D. J. Jackson Lecture 25-4
Master-slave D flip-flop
Clock D Qm Q = Qs D clock Q Q
Edge-triggered flip-flop
A circuit, similar in functionality to the master-slave D flip-flop, can be constructed with 6 NAND gates
1 P3 P1 5 Q clock D Q Q
2 Clock 3
P2
Edge-triggered flip-flop
The previous circuit responds on the positive edge of the clock signal A negative-edge triggered D flip-flop can be constructed by replacing the NAND with NOR gates
D clock Q Q clock D Q Q
clk Q D Q Q D Q Q
Q Q
T flip-flop
Another flip-flop type, the T flip-flop, can be derived from the basic D flip-flop presented Feedback connections make the input signal D equal to the value of Q or Q under control of a signal labeled T
D T Clock
Electrical & Computer Engineering
Q Q
Q Q
T flip-flop
The name T derives from the behavior of the circuit, which toggles its state when T=1
This feature makes the T flip-flop a useful element when constructing counter circuits T Q(t+1) 0 Q(t) 1 Q(t)
Clock T Q T clock
Electrical & Computer Engineering
Q Q
JK flip-flop
The JK flip-flop can also be derived from the basic D flip-flop such that
D=JQ+KQ
JK flip-flop
J D Q K Clock Q Q Q
J 0 0 1 1
J K
Time
Electrical & Computer Engineering Dr. D. J. Jackson Lecture 25-14