Chap 8
Chap 8
Chap 8
The output of a sequential circuit is function of present as well as history of inputs i.e. sequence
of inputs; hence has the name sequential . On the other hand, the output of a combinational
circuit is function of present combination of inputs.
This means that the sequential logic will involve some type of storage elements which
help it remember the previous inputs available. The most common memory element used is the
flip-flop, which is made up of an assembly of logic gates. Even though a logic gate, by itself, has
no storage capability, several can be connected together in ways that permit information to be
stored.
The most basic FF circuit can be constructed either from two NAND gates or two NOR gates.
The NAND gate version is called a NAND gate latch or simply a latch.
An active-low input S-R latch is formed with two cross-coupled NAND gates. Notice that the
output of each gate is connected to an input of the opposite gate. This produces a regenerative
feedback that is the characteristic of all latches and flip-flops.
The operation of the S-R flip-flop can be summarized as follows:
1. SET=RESET= 1 is the normal resting condition of the flip-flop. It has no effect on the
output state of the flip-flop. Both Q and Q outputs remain in the logic state they were
in prior to this input condition.
2. SET = 0 and RESET = 1 sets the flip-flop. Q and Q respectively go to the ‘1’ and ‘0’
state.
3. SET =1 and RESET =0 resets or clears the flip-flop. Q and Q respectively go to the
‘0’ and ‘1’ state.
1
4. SET = RESET = 0 is forbidden as such a condition tries to set (that is, Q = 1 ) and
reset (that is, Q = 1) the flip-flop at the same time. To be more precise, SET and
RESET inputs in the R-S flip-flop cannot be active at the same time.
2
The gated D latch:
A gated D latch has only one input in
addition to EN. This input is called the D
(data) input. When the D input is HIGH
and the EN input is HIGH, the latch will
set. When the D input is LOW, and EN is
HIGH, the latch will reset. Stated another
way, the output Q follows the input D
when EN is HIGH.
Clocked Latch:
A clock is a free-running signal with a fixed cycle time (clock period). Clocks are used in digital
circuits to give synchronization between different circuits. In the clocked latches the outputs
change states as per the inputs only on the occurrence of a clock pulse. The clocked flip-flop
could be a level-triggered one or an edge-triggered one.
4
Pulse Triggered R-S Flip Flop
5
J-K Flip-Flop
A J-K flip-flop behaves in the same fashion as an R-S flip-flop except for one of the entries in
the function table. In the case of an R-S flip-flop, the input combination S = R = 1 is prohibited.
In the case of a J-K flip-flop with active HIGH inputs, the output of the flip-flop toggles, that is,
it goes to the other state, for J = K = 1 . The output toggles. Thus, a J-K flip-flop overcomes the
problem of a forbidden input combination of the R-S flip-flop. This is achieved by a minor
addition in the R-S flip flop circuit. Notice in the figure that the Q output is connected back to
the input of gate G2. and the Q output is connected back to the input of gate G1.
6
7
MASTER SLAVE J-K FLIP FLOP:
A master–slave flip-flop is constructed with two J-K flip-flops. The first flip-flop is called the
master flip-flop and the second is called the slave. The clock to the slave flip-flop is the
complement of the clock to the master flip-flop. When the clock pulse is present, the master flip-
flop is enabled while the slave flip-flop is disabled. As a result, the master flip-flop can change
state while the slave flip-flop cannot. When the clock goes LOW, the master flip-flop gets
disabled while the slave flip-flop is enabled. Therefore, the slave J-K flip-flop changes state as
per the logic states at its J and K inputs. The contents of the master flip-flop are therefore
transferred to the slave flip-flop, and the master flip-flop, being disabled, can acquire new inputs
without affecting the output. As would be clear from the description above, a master–slave flip-
flop is a pulse-triggered flip-flop and not an edge-triggered one.