Documente Academic
Documente Profesional
Documente Cultură
C D Q
0 x No change
1 0 0 (reset)
1 1 1 (set)
July 14, 2003 Sequential circuit analysis 2
Direct inputs
Most flip-flops also provide direct inputs, or asynchronous inputs, that let
you immediately set or clear the state, regardless of the clock input.
Such inputs are especially useful for setting the initial state of a flip-flop.
Here is a LogicWorks D flip-flop with active-low direct inputs.
S’ R’ C D Q
0 0 x x Avoid
0 1 x x 1 (set) Direct inputs set or reset
1 0 x x 0 (reset) the flip-flop asynchronously
1 1 0 x No change
Set S’R’ = 11 for normal
1 1 1 0 0 (reset)
operation of the flip-flop
1 1 1 1 1 (set)
C J K Qnext
0 x x No change
1 0 0 No change
1 0 1 0 (reset)
1 1 0 1 (set)
1 1 1 Q’current
C T Qnext
0 x No change
1 0 No change
1 1 Q’current
T Q(t+1) Operation
0 Q(t) No change
1 Q’(t) Complement
D Q(t+1) Operation
0 0 Reset Q(t+1) = D
1 1 Set
J K Q(t+1) Operation
0 0 Q(t) No change
0 1 0 Reset Q(t+1) = K’Q(t) + JQ’(t)
1 0 1 Set
1 1 Q’(t) Complement
T Q(t+1) Operation
Q(t+1) = T’Q(t) + TQ’(t)
0 Q(t) No change = T ⊕ Q(t)
1 Q’(t) Complement
1 2 3 4 1 2 3 4
C C
J J
K K
Q Q
1 2 3 4 1 2 3 4
C C
J J
K K
Q Q
1 2 3 4
C
J
D Q(t+1) Operation
0 0 Reset Q(t+1) = D
1 1 Set
J K Q(t+1) Operation
0 0 Q(t) No change
0 1 0 Reset Q(t+1) = K’Q(t) + JQ’(t)
1 0 1 Set
1 1 Q’(t) Complement
T Q(t+1) Operation
0 Q(t) No change Q(t+1) = T ⊕ Q(t)
1 Q’(t) Complement
Memory
Z = Q1Q0X
J1 = X’ Q0
K1 = X + Q 0
J0 = X + Q 1
K0 = X’
J1 = X’ Q0 J0 = X + Q 1
K1 = X + Q 0 K0 = X’
0 0
Present State Inputs Next State
A B X A B 1
0 0 0 0 0 00 01
0 0 1 0 1
0 1 0 0 1
1 1
0 1 1 1 0
1 0 0 1 0 1
1 0 1 1 1 11 10
1 1 0 1 1
1 1 1 0 0
0 0