DSM Twocol 53 60
DSM Twocol 53 60
Sequential Circuits
53
54 Chapter 8. Sequential Circuits
This is the quiescent condition for the SR One way to eliminate the undesirable con-
latch dition of the indeterminate state in the SR
latch is to ensure that inputs S and R are
never equal to 1 at the same time This is
done in the D latch The D input goes di-
rectly to the S input, and its complement is
applied to the R input As long as the enable
input is at 0, the cross-coupled SR latch has
both inputs at the 1 level and the circuit
cannot change state regardless of the value
When the enable input goes to 1, infor- of D The D input is sampled when En = 1.
mation from the S or R input is allowed If D = 1, the Q output goes to 1, placing
to affect the latch The set state is reached the circuit in the set state If D = 0, output
with S = 1, R = 0, and En = 1 (active-high Q goes to 0, placing the circuit in the reset
enabled) and reset is reached with S = 0, state
R = 1, and En = 1 In either case, when The D latch receives that designation
En returns to 0, the circuit remains in its from its ability to hold data in its inter-
previous stable state Further, when En = 1 nal storage It is suited for use as a tempo-
and both the S and R inputs are equal to rary storage for binary information between
0, the state of the circuit does not change a unit and its environment The binary in-
An indeterminate condition occurs when formation present at the data input of the
all three inputs are equal to 1 This condi- D latch is transferred to the Q output when
tion places 0’s on both inputs of the basic the enable input is asserted The output fol-
SR latch, which puts it in the undefined lows changes in the data input as long as
state When the enable input goes back to 0, the enable input is asserted This situation
one cannot conclusively determine the next provides a path from input D to the out-
state, because it depends on whether the put, and for this reason, the circuit is often
S or R input goes to 0 first This indetermi- called a transparent latch
nate condition makes this circuit difficult to
manage, and it is seldom used in practice
Nevertheless, the SR latch is an important
circuit in conjunction with other modifica-
tions
abling signal will be a value of 0 (active low) through two transitions: from 0 to 1 and the
or 1 (active high) return from 1 to 0 The positive transition
(0-¿1) is defined as the positive edge and the
8.1.5 Problem with latches negative transition (1-¿0) as the negative
edge
A sequential circuit has a feedback path
from the outputs of the flip-flops to the
input of the combinational circuit Con-
sequently, the inputs of the latches are
derived in part from the outputs of the
same and other latches The state transi-
tions of the latches start as soon as the en-
able/data pulse changes to the logic-1 level
The new state of a latch appears at the out-
put while the pulse is still active This out-
put is connected to the inputs of the latches
through the combinational circuit If the in-
puts applied to the latches change again
while the enable pulse is still at the logic-1 We can implement flip flops using two
level, the latches will respond to new values latches The first latch is called the master
and a new output state may occur The re- and the second the slave The circuit sam-
sult is an unpredictable situation, since the ples the D input and changes its output Q
state of the latches may keep changing for as only at the negative edge of the synchro-
long as the enable pulse stays at the active nizing or controlling clock (designated as
level Because of this unreliable operation, Clk) When the Clk = 0, the slave latch
the output of a latch cannot be applied di- is enabled, and its output Q is equal to
rectly or through combinational logic to the the master output Y When the input pulse
input of the same or another latch when all changes, the data from the external D input
the latches are triggered by a enable signal are transferred to the master
D = JQ′ + KQ
When J = 1 and K = 0, D = Q’ + Q = 1,
so the next clock edge sets the output to 1
When J = 0 and K = 1, D = 0, so the next
clock edge resets the output to 0 When both
J = K = 1 and D = Q’, the next clock edge
8.2.1 JK Flip Flop
complements the output When both J = K
= 0 and D = Q, the clock edge leaves the
output unchanged Because of their versa-
tility, JK flip-flops are called universal flip-
flops
D = T ′ Q + T Q′
8.4 Analysis