Академический Документы
Профессиональный Документы
Культура Документы
Flip-Flop Review
Set
R-S Flip-Flop
Reset
Reset
Current Outputs
New Outputs
S
R
Q
Q
Q
Q
1
1
1 or 0
0 or 1
Same
Same
0
1
0
1
1
0
0
1
1
0
Same
Same
1
0
1
0
0
1
1
0
0
1
Same
Same
0*
0*
1 or 0
0 or 1
1*
1*
* This is a race condition and not stable. The S-R input 0-0 is forbidden.
Clock+
Reset+
Simplest
p
clocked ff.
Clock input in addition to the set and reset inputs.
When clock is low (0), neither set or reset input affect the circuit.
Set or reset input must be high (1) to set or reset the ff when the clock
goes true (0 1).
Both set and reset true or 1 together is forbidden as in the nonclocked case; simultaneous set and reset true causes a race condition
when clock is high.
Clock+
Reset+
Inputs
S
X
0
1
1
0
0
1*
R
X
0
0
0
1
1
1*
Current Outputs
Q
Q
1 or 0
0 or 1
1 or 0
0 or 1
0
1
1
0
1
0
0
1
1 or 0
0 or 1
New Outputs
Q
Q
Same
Same
Same
Same
1
0
Same
Same
0
1
Same
Same
1*
1*
* This is a race condition and not stable, as for the non-clocked RS FF.
The D Flip-Flop
D
(S+)
Clock+
D
R
(R+)
Clocked D Flip-Flop
(S+)
Clock+
D
Inputs
R
(R+)
Clocked D Flip-Flop
Current Outputs
New Outputs
Clock
1 or 0
1 or 0
Same
Same
Same
Same
Same
Same
Timing Diagrams
1
Clock
Time
Exercise 1
The incomplete timing diagram below shows the clock input as the basis
for the diagram and a D FF input, but not the output. In this case, the
clock does not run continuously, but on a sporadic basis. Based on the
discussion so far, plot the timing of the Q output of the D FF (assume the
D FF starts out in the reset condition). Note that you do not need to see
the ff diagram itself to do the plot.
Q
D
1
Clock
Time
Clock+
Q
Master
Slave
Clock+
Q
Master
Slave
Slave FF (Q)
M t FF (Q)
Master
D
1
Clock
D Flip-Flop Symbols
OR
Q
Clock
J-K Master-Slave Flip Flop
J
K
Clock
Inputs
Outputs
AND Outputs
OR Outputs
New Outputs
Same
Same
Same
Same
Same
Same
Same
Same
K
Q
Clock
T Master-Slave Flip-Flop
Clock
Input
T
Outputs
AND
Outputs
OR Outputs
New Outputs
Same
Same
Same
Same
Clock (at
frequency f)
f/2
f/4
All T FFs
shown are masterslave.
T FF #3
T FF #2
T FF #1
1
Clock
Timing (Continued)
1
Clock
f/8
f/2
f/4
Pulse Out
C
Clock
ffrequency = f
Timing (Continued)
1
Clock
2
f/2
3
f/4
f/8
Pulse Out
T FF #3
T FF #2
T FF #1
1
0
Clock
Timing (Concluded)
1
Clock
2
f/2
3
f/4
f/8
P l Out
Pulse
O t
Pulse
T FF #3
T FF #2
T FF #1
Clock
1
0
With the signals plotted, we look for the time when the output of
clock and the three Qs are high.
We then diagram Pulse Out based on the AND of the 4 signals.
T FF Frequency Divider
T FF as a frequency divider, with decoded state.
1
Clock
2
f/2
3
f/4
f/8
Pulse Out
T FF #3
T FF #2
T FF #1
Clock
1
0
Flip-Flop Circuits
Clock ((at
frequency f)
f/4
f/8
Count
MSB
LSB
T FF Counter
1
f/2
f/4
Count
MSB
f/8
Clock (at
frequency f)
T FF #3
000
001
LSB
010
011
100
101
110
111 MSB
T FF #2
LSB
T FF #1
Clock
1
0
Flip-Flop Circuits
000
001
010
011
100
101
110
111 MSB
T FF #2
LSB
T FF #1
Clock
Exercise 2
Least
Significant
Digit
Bit y
Clock
Bit x
Most
Significant
Digit
Reset
Exercise 2, Concluded
1
Clock
Reset
i
Bit y
Bit x
LSB
MSB
x
0
0
1
1
y*
0
1
0
1
* Digits shown in
order of significance.
Homework
Write down the two or three most important
things you
o learned today
toda and add to your
o r list
list.
Write down two or three things you did not
clearly understand.
understand After finishing the
assigned reading, if you still have questions, see
mee during
du g ooffice
ce hours.
ou s.
Read Tokheim, 9.5-9.8 and 10.1-10.2.
Complete homework #5.