Lec 17 CLD
Lec 17 CLD
Lecture 17
STORAGE ELEMENTS: FLIP-FLOPS
State of a latch or flip-flop is switched by a change in the
control input; this momentary change is called a trigger
Transition it causes is said to trigger the flip-flop
D latch with pulses in its control input = A flip-flop
Flip-flop is triggered every time pulse goes to logic-1 level
When triggered, any changes in data input will change output
and state of the latch
When Latches are used for the storage elements
A serious difficulty and problem with the latch is that it
responds to a change in the level of a clock pulse
State of the latches may keep changing for as long as the
clock pulse stays at the active level
STORAGE ELEMENTS: FLIP-FLOPS
Changes in the output when the D input changes while the
clock pulse stays at logic 1
Key to the proper operation of a flip-flop is to trigger it
only during a signal transition
Clock pulse goes through
two transitions:
from 0 to 1 and the return
from 1 to 0
Positive transition is
defined as the positive
edge and the negative
transition as the negative edge
STORAGE ELEMENTS: FLIP-FLOPS
Two ways to form a flip-flop:
One way is to employ two latches in a special configuration
that isolates the output of the flip-flop and prevents it
from being affected while the input to the flip-flop is
changing
Another way is to produce a flip-flop that triggers only
during a signal transition (from 0 to 1 or from 1 to 0) of
the synchronizing signal (clock) and is disabled during the
rest of the clock pulse
We will now proceed to show the implementation of both
types of flip-flops
Edge-Triggered D Flip-Flop
A D flip-flop with two D latches and an inverter
First latch is called Master and the second Slave
Circuit samples the D input and changes its output Q only
at the negative edge of controlling clock Clk
Edge-Triggered D Flip-Flop
When Clk = 0, (output of inverter is 1)
Slave latch is enabled
And its output Q is equal to the master output Y
Master latch is disabled
Because Clk = 0
When Clk = 1, (when input pulse changes to the logic-1 level)
Master latch is enabled and data from the external D
input are transferred to the master
Slave latch is disabled as long as the clock remains at the
1 level, because its enable input is equal to 0
Any change in the input changes the master output at Y,
but cannot affect the slave output
Edge-Triggered D Flip-Flop
When the clock pulse returns to 0,
Master is disabled and is isolated from the D input
At the same time, Slave is enabled and the value of Y is
transferred to the output of the flip-flop at Q
Thus, a change in the output of the flip-flop can be
triggered only by and during the transition of the clock
from 1 to 0
Edge-Triggered D Flip-Flop
Behavior of the master–slave flip-flop just described
dictates that
(1) the output may change only once
(2) a change in the output is triggered by the negative edge of
the clock, and
(3) the change may occur only during the clock’s negative level
The value that is produced at the output of the flip-flop is
the value that was stored in the master stage immediately
before the negative edge occurred
Edge-Triggered D Flip-Flop
It is also possible to design the circuit so that the flip-flop
output changes on the positive edge of the clock
This happens in a flip-flop that has an additional inverter
between the Clk terminal and the junction between the
other inverter and input En of the master latch
Such a flip-flop is triggered with a negative pulse, so that
the negative edge of the clock affects the master and the
positive edge affects the slave and the output terminal
Edge-Triggered D Flip-Flop
Another
construction
of an edge-
triggered D
flip-flop uses
three SR
latches
Edge-Triggered D Flip-Flop
Two latches respond to D (data) and Clk (clock) inputs
Third latch provides the outputs for the flip-flop
When Clk = 0, the S and R inputs of the output latch are
maintained at the logic-1 level
This causes the output to remain in its present state