Sequential Circuits - Module 2
Sequential Circuits - Module 2
Storage Elements: 1)
Latches:
Latches are digital circuits that serve as basic building blocks in the
construction of sequential logic circuits.
They are bi-stable, meaning they have two stable states and can be
used to store binary information. Latches are often used for
temporary storage of data within a digital system.
There are several types of latches, with the most common being the
1) SR latch (Set-Reset latch), 2) D latch (Data latch),3) JK latch.
Storage elements that operate with signal levels (rather than signal
transitions) are referred to as latches; those controlled by a clock
transition are flip-flops. Latches are said to be level sensitive
devices; flip-flops are edge-sensitive devices. The two types of storage
elements are related because latches are the basic circuits from
which all flip- flops are constructed.
The SR latch has two inputs, S (Set) and R (Reset).It has two outputs,
Q and ~Q (complement of Q).
When S is asserted, Q is set to 1, and when R is asserted, Q is reset
to 0.The SR latch is sensitive to the input conditions, and having both
S and R asserted simultaneously can lead to unpredictable behavior.
It consists of the basic SR latch and two additional NAND gates. The control input En
acts as an enable signal for the other two inputs. The outputs of the NAND gates stay
at the logic-1 level as long as the enable signal remains at 0. This is the quiescent
condition for the SR latch. When the enable input goes to 1, information from the S or
R input is allowed to affect the latch. The set state is reached with S = 1, R = 0, and
En = 1 active-high enabled). To change to the reset state, the inputs must be S = 0, R
= 1, and En = 1. In either case, when En returns to 0, the circuit remains in its
current state. The control input disables the circuit by applying 0 to En, so that the
state of the output does not change regardless of the values of S and R. Moreover,
when En = 1 and both the S and R inputs are equal to 0, the state of the circuit does
not change. These conditions are listed in the function table accompanying the
diagram.
D latch (transparent latch)
A D latch can store a bit value, either 1 or 0. When its Enable pin is HIGH, the value
on the D pin will be stored on the Q output.
The D Latch is a logic circuit most frequently used for storing data in digital systems.
It is based on the S-R latch, but it have an or state
problem.
One way to eliminate the undesirable condition 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, shown in Fig. 5.6. This latch has only two inputs: D
(data) and En (enable). The D input goes directly 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 of D. The D input is sampled when En = 1.
If D = 1, the Q output goes to 1, placing the circuit in the set state. If D = 0,
output Q goes to 0, placing the circuit in the reset state.
The graphic symbols for the various latches are shown in Fig. 5.7. A latch is
designated by a rectangular block with inputs on the left and outputs on the
right. One output designates the normal output, and the other (with the bubble
designation) designates the complement output
They are bi-stable multivibrators, like latches, but they are edge-
triggered and use a clock signal to control the timing of state changes.
Clk D S R Q
0 1
Assume(previous output)
0 0 1 1 0 1
No Change
0 1 1 1 No Change
1 1 0 1 1 0
0 0 1 1 No change
1 0 1 0 0 1
JK FLIPFLOP
When both J = K = 1 and D = Q, the next clock edge complements the output.
When both J = K = 0 and D = Q, the clock edge leaves the output unchanged.
T Flip-flop
T = 0 (J = K = 0), a clock edge does not change the output. When T = 1 (J = K = 1), a
clock edge complements the output. The complementing flip-flop is useful for
designing binary counters.
D=T^Q
Characteristic tablesA characteristic table defines the logical properties of a flip-flop by
describing its operation in tabular form. They define the next state (i.e., the state that results
from a clock transition) as a function of the inputs and the present state
Q(t) denotes the state of the flip-flop immediately before the clock edge, and
Q(t + 1) denotes the state that results from the clock transition.
Characteristic equation
It is the Boolean expression in terms of its input and output which determines
the next state of the flipflop.
T FF
DFF
JKFF
SR flip-flop JK Flip-flop
D flip-flop T Flip-flop
------------------------**************************************************--------------