Professional Documents
Culture Documents
The slides included herein were taken from the materials accompanying Fundamentals of Logic Design, 6th Edition, by Roth and Kinney, and were used with permission from Cengage Learning.
Flip-Flops
(continued)
Spring 2011
SR Flip-Flop
Clock (Ck) --- denoted by the small arrowhead Set (S) and Reset (R) S = 1 sets the flip-flop (Q+ = 1) R = 1 resets the flip-flop (Q+ = 0)
Similar to an SR Latch
Like the D Flip-Flop, the Q output of an SR Flip-Flop only changes in response to an active clock edge.
Spring 2011
SR Flip-Flop
S 0 0 0 0 1 1 1 1 R 0 0 1 1 0 0 1 1 Q 0 1 0 1 0 1 0 1 Q+ 0 1 0 0 1 1 not allowed
} } }
Q+ = Q
store
Q+ = 0
reset
Q+ = 1
set
SR Flip-Flop (master-slave)
SR Latches
Spring 2011
Spring 2011
JK Flip-Flop
Clock (Ck) --- denoted by the small arrowhead J and K J corresponds to S: K corresponds to R: J = 1 Q+ = 1 K = 1 Q+ = 0
Spring 2011
JK Flip-Flop
} } } }
Spring 2011
Q+ = Q
store
Q+ = 0
reset
Q+ = 1
set
+
Q = Q'
toggle
JK Flip-Flop (master-slave)
SR Latches
Spring 2011
Spring 2011
10
T Flip-Flop
Clock (Ck) --- denoted by the small arrowhead Toggle (T) when T = 0, the state does not change (Q+ = Q) when T = 1, the state changes following an active clock edge (Q+ = Q')
Spring 2011
T Flip-Flop
Spring 2011
13
Building a T Flip-Flop
Spring 2011
14
Spring 2011
15
Spring 2011
16
Spring 2011
17
Registers
Spring 2011
18
Registers
Several D flip-flops may be grouped together with a common clock to form a register. Because each flip-flop can store one bit of information, a register with n D flip-flops can store n bits of information. A load signal can be ANDed with the clock to enable and disable loading the registers. A better approach is to use registers with clock enables if they are available.
Spring 2011
19
Register: 4 bits
Spring 2011
20
Data transfer between registers is a common operation in computer (i.e. digital) systems. Multiple registers can be interconnected using tri-state buffers. Data can be transferred between two registers by enabling the proper tri-state buffer.
Spring 2011
21
Spring 2011
22
Spring 2011
23
Spring 2011
24
Shift Register
A shift register is a register in which binary data can be stored and shifted either left or right. The data is shifted according to the applied shift signal; often there is a left shift signal and a right shift signal. A shift register must be constructed using flip-flops (i.e. edgetriggered devices); it cannot be constructed using latches or gated-latches (i.e. level-sensitive devices).
Spring 2011
25
Spring 2011
26
Spring 2011
27
Spring 2011
28
Spring 2011
29
Spring 2011
30
Spring 2011
31
In computer circuits, it is frequently desirable to store one number in a register (called an accumulator) and add a second number to it, leaving the result stored in the register.
Spring 2011
32
Spring 2011
33
Spring 2011
34
Spring 2011
35
Questions?
Spring 2011
36