SlideShare a Scribd company logo
1 of 68
COMBINATIONAL
LOGIC CIRCUITS
CHAPTER 3
1
EEE3125
DIGITAL CIRCUITS
CHAPTER 7 FLIP FLOPS
CHAPTER 7 LEARNING
OUTCOMES:
• TO DISTINGUISH AND IDENTIFY LATCHES, SWITCHES AND SIGNAL CLOCK,
TRIGGERING LEVEL AND EDGE TRIGGERING,FLIP-FLOP (RS, JK, D AND T).
• TO DISTINGUISH AND IDENTIFY FLIP-FLOP MASTER SLAVE, SYNCHRONOUS
AND ASYNCHRONOUS INPUT.
• TO IDENTIFY SYMBOL OF THE IEEE AND ANSI, TIMING FLIP-FLOP AND SET AND
RESET FUNCTIONS.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
CHAPTER 7 INTRODUCTION
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
• Block diagram of a general digital system that combines
combinational logic gates with memory devices.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
• The most important memory element is the flip-
flop (FF)—made up of an assembly of logic gates.
The flip-flop is known by other names,
including latch and bistable multivibrator.
CHAPTER 7 INTRODUCTION
NAND GATE LATCH
• THE NAND GATE LATCH OR SIMPLY LATCH IS A BASIC FF.
• INPUTS ARE SET AND CLEAR (RESET).
• INPUTS ARE ACTIVE-LOW—OUTPUT WILL CHANGE WHEN THE
INPUT IS PULSED LOW.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
– When the latch is set: Q = 1 and Q = 0
– When the latch is clear or reset: Q = 0 and Q = 1
NAND GATE LATCH – SETTING THE
LATCH (FF)
• PULSING THE SET INPUT TO THE 0 STATE...
• (A) Q = 0 PRIOR TO SET PULSE.
• (B) Q = 1 PRIOR TO SET PULSE.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
In both cases, Q ends up HIGH.
NAND GATE LATCH – RESETTING THE
LATCH (FF)
• PULSING RESET LOW WHEN...
• (A) Q = 0 PRIOR TO THE RESET PULSE.
• (B) Q = 1 PRIOR TO THE RESET PULSE.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
In each case, Q ends up LOW.
NAND GATE LATCH – ALTERNATE
REPRESENTATIONS
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
NAND latch equivalent representations
and simplified block diagram.
NAND GATE LATCH - SUMMARY
• SUMMARY OF THE NAND LATCH:
• SET = 1, RESET = 1—NORMAL RESTING STATE, OUTPUTS REMAIN IN STATE
THEY WERE IN PRIOR TO INPUT.
• SET = 0, RESET = 1—OUTPUT WILL GO TO Q = 1 AND REMAINS THERE, EVEN
AFTER SET RETURNS HIGH.
• CALLED SETTING THE LATCH.
• SET = 1, RESET = 0—WILL PRODUCE Q = 0 LOW AND REMAINS THERE, EVEN
AFTER RESET RETURNS HIGH.
• CALLED CLEARING OR RESETTING THE LATCH.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
– SET = 0, RESET = 0—Tries to set and clear the latch
at the same time, and produces
• Output is unpredictable, and this input condition
should not be used.
Q = Q = 1.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
REVIEW QUESTIONS:
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
The waveforms below are applied to the inputs of the NAND- latch.
Assume that initially Q=0, and determine the Q waveforms.
SET
RESET
1
1
Q
t1 t2 t3 t4 t5 t6
NOR GATE LATCH
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
• Two cross-coupled NOR gates can be used as a NOR gate latch—similar to
the NAND latch.
– The Q and Q outputs are reversed.
The SET and RESET inputs are active-HIGH.
Output will change when the input is pulsed HIGH.
NOR GATE LATCH - SUMMARY
• SUMMARY OF THE NOR LATCH:
• SET = 0, RESET = 0—NORMAL RESTING STATE, NO EFFECT ON
OUTPUT STATE.
• SET = 1, RESET = 0—WILL ALWAYS SET Q = 1, WHERE IT REMAINS
EVEN AFTER SET RETURNS TO 0.
• SET = 0, RESET = 1—WILL ALWAYS CLEAR Q = 0, WHERE IT REMAINS
EVEN AFTER RESET RETURNS TO 0.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
– SET = 1, RESET = 1—Tries to set and reset the latch
at the same time, and produces
• Output is unpredictable, and this input condition
should not be used.
Q = Q = 0.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Review Questions:
The waveforms below are applied to the inputs of the NOR- latch.
Assume that initially Q=0, and determine the Q waveforms.
SET
RESET
0
0
Q
t1 t2 t3 t4 t5 t6
0
DIGITAL PULSES
SIGNALS THAT SWITCH BETWEEN ACTIVE AND
INACTIVE STATES ARE CALLED PULSE WAVEFORMS.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
A negative pulse has
an active-LOW level.
In digital, there is a signal switches from a normal inactive state to the opposite (active)
state and returns to its inactive state while effect of the recently activated signal.
A pulse that performs
its intended function
when it goes LOW is
called a negative pulse
The transition at the
beginning of the pulse is
called the leading edge
and the transition at the
end of the pulse is called
the trailing edge
DIGITAL PULSES
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
A positive pulse has
an active-HIGH level.
A pulse that performs
its intended function
when it goes HIGH is
called a positive pulse
DIGITAL PULSES
• IN ACTUAL CIRCUITS IT TAKES TIME FOR A PULSE WAVEFORM TO
CHANGE FROM ONE LEVEL TO THE OTHER.
• TRANSITION FROM LOW TO HIGH ON A POSITIVE PULSE IS CALLED
RISE TIME (TR).
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Measured between the 10% and 90% points
on the leading edge of the voltage waveform.
DIGITAL PULSES
• IN ACTUAL CIRCUITS IT TAKES TIME FOR A PULSE WAVEFORM TO
CHANGE FROM ONE LEVEL TO THE OTHER.
• TRANSITION FROM HIGH TO LOW ON A POSITIVE PULSE IS CALLED
FALL TIME (TF).
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Measured between the 90%
and 10% points on the trailing
edge of the voltage waveform.
DIGITAL PULSES
• IN ACTUAL CIRCUITS IT TAKES TIME FOR A PULSE WAVEFORM TO
CHANGE FROM ONE LEVEL TO THE OTHER.
• A PULSE ALSO HAS A DURATION—WIDTH—(TW).
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
The time between the points when
the leading and trailing edges are
at 50% of the HIGH level voltage.
CLOCK SIGNALS AND CLOCKED FLIP-
FLOPS
• DIGITAL SYSTEMS CAN OPERATE EITHER ASYNCHRONOUSLY OR
SYNCHRONOUSLY.
• ASYNCHRONOUS SYSTEM—OUTPUTS CAN CHANGE STATE AT ANY
TIME THE INPUT(S) CHANGE.
• SYNCHRONOUS SYSTEM—OUTPUT CAN CHANGE STATE
ONLY AT A SPECIFIC TIME IN THE CLOCK CYCLE.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
CLOCK SIGNALS AND CLOCKED FLIP-
FLOPS
• THE CLOCK SIGNAL IS A RECTANGULAR PULSE TRAIN OR SQUARE
WAVE.
• POSITIVE GOING TRANSITION (PGT)—CLOCK PULSE GOES FROM 0 TO
1.
• NEGATIVE GOING TRANSITION (NGT)—CLOCK PULSE GOES FROM 1
TO 0.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Transitions are
also called edges.
• CLOCKED FFS CHANGE STATE ON ONE OR THE OTHER CLOCK
TRANSITIONS.
• CLOCK INPUTS ARE LABELED CLK, CK, OR CP.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
A small triangle at the CLK
input indicates that the input
is activated with a PGT.
A bubble and a triangle
indicates that the CLK input
is activated with a NGT.
CLOCK SIGNALS AND CLOCKED FLIP-
FLOPS
• CONTROL INPUTS HAVE AN EFFECT ON THE OUTPUT ONLY AT THE
ACTIVE CLOCK TRANSITION (NGT OR PGT)—ALSO CALLED
SYNCHRONOUS CONTROL INPUTS.
• THE CONTROL INPUTS GET THE OUTPUTS READY TO CHANGE, BUT THE
CHANGE IS NOT TRIGGERED UNTIL THE CLK EDGE.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
CLOCK SIGNALS AND CLOCKED FLIP-
FLOPS
• SETUP TIME (TS) IS THE MINIMUM TIME INTERVAL BEFORE THE
ACTIVE CLK TRANSITION THAT THE CONTROL INPUT MUST BE
KEPT AT THE PROPER LEVEL.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Two timing requirements
must be met if a clocked
FF of to respond reliably
to its control inputs when
the active CLK transition
occurs.
The control inputs must
be stable (unchanging)
for at least a time
interval equal to ts (min)
prior to the clock
transition.
CLOCK SIGNALS AND CLOCKED FLIP-
FLOPS
• HOLD TIME (TH) IS THE TIME FOLLOWING THE ACTIVE TRANSITION OF THE CLK,
DURING WHICH THE CONTROL
INPUT MUST KEPT AT THE PROPER LEVEL.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
The control inputs must be stable
(unchanging) for at least a time interval
equal to th (min) after to the clock
transition.
These time intervals are required to
allow for the propagation delays of the
internal gates that control the
operation of the flip-flop devices.
IC flip-flops will have minimum allowance ts and
tH values in the nanosecond range. Setup times
usually in the range of 5 to 50 ns, hold times
are generally from 0 to 10 ns. These times are
measured between the 50% points on the
transitions.
CLOCK SIGNALS AND CLOCKED FLIP-
FLOPS
CLOCKED S-R FLIP-FLOP
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
• The S and R inputs are synchronous control inputs, which
control the state the FF will go to when the clock pulse
occurs.
– The CLK input is the trigger input that causes the
FF to change states according to the S and R inputs.
• SET-RESET (or SET-CLEAR) FF will change states at
positive- or negative-going clock edges.
CLOCKED S-R FLIP-FLOP
A CLOCKED S-R FLIP-FLOP TRIGGERED BY THE
POSITIVE-GOING EDGE OF THE CLOCK SIGNAL.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
The S and R inputs control the state of the FF in the same manner as
described earlier for the NOR gate latch, but the FF does not respond
to these inputs until the occurrence of the PGT of the clock signal.
CLOCKED S-R FLIP-FLOP
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Waveforms of
the operation of
a clocked S-R
flip-flop triggered
by the positive-
going edge of a
clock pulse.
CLOCKED S-R FLIP-FLOP
A CLOCKED S-R FLIP-FLOP TRIGGERED BY THE
NEGATIVE-GOING EDGE OF THE CLOCK SIGNAL.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Both positive-edge and negative-edge
triggering FFs are used in digital systems.
CLOCKED S-R FLIP-FLOP– INTERNAL
CIRCUITRY
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
• An edge-triggered S-R flip-flop circuit features:
– A basic NAND gate latch formed by
NAND-3 and NAND-4.
– A pulse-steering circuit formed by
NAND-1 and NAND-2.
– An edge-detector circuit.
The edge detector produces a
narrow positive going spike (CLK*)
The pulse-steering circuit “steers”
the spike through to the SET’ and
RESET’.
When S=1 and R=0, the CLK* signal
is inverted and passes through NAND-1
to produce LOW pulse at the SET ‘
input of the latch that sets Q=1
When S=0, R=1, the CLK* signal is
inverted and passes through the
NAND-2 to produce a low pulse at the
RESET ‘ input of the latch that resets
Q=0.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
• Implementation of edge-detector circuits used in edge-triggered flip-
flops:
– (a) PGT; (b) NGT.
The duration of the CLK* pulses is typically 2–5 ns.
CLOCKED S-R FLIP-FLOP– INTERNAL
CIRCUITRY
CLOCKED J-K FLIP-FLOP
• OPERATES LIKE THE S-R FF.
• J IS SET, K IS CLEAR.
• WHEN J AND K ARE BOTH HIGH, OUTPUT IS TOGGLED
TO THE OPPOSITE STATE.
• MAY BE POSITIVE GOING OR NEGATIVE GOING CLOCK
TRIGGER.
• MUCH MORE VERSATILE THAN THE S-R FLIP-FLOP, AS IT
HAS NO AMBIGUOUS STATES.
• HAS THE ABILITY TO DO EVERYTHING THE S-R FF DOES,
PLUS OPERATES IN TOGGLE MODE.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
CLOCKED J-K FLIP-FLOP
CLOCKED J-K FLIP-FLOP THAT RESPONDS
ONLY TO THE POSITIVE EDGE OF THE CLOCK.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Initial Q=1
CLOCKED J-K FLIP-FLOP
CLOCKED J-K FLIP-FLOP THAT RESPONDS
ONLY TO THE NEGATIVE EDGE OF THE CLOCK.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
CLOCKED J-K FLIP-FLOP
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
• The internal circuitry of an edge-triggered J-K
flip-flop contains the same three sections as
the edge-triggered S-R flip-flop.
CLOCKED D FLIP-FLOP
D FLIP-FLOP THAT TRIGGERS ONLY ON
POSITIVE-GOING TRANSITIONS.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
D stands for Data
Has only one synchronous control
input
Q will go the same state that is
present on the D
Q initial=1
CLOCKED D FLIP-FLOP -
IMPLEMENTATION
• AN EDGE-TRIGGERED D FLIP-FLOP IS IMPLEMENTED BY ADDING A
SINGLE INVERTER TO THE EDGE-TRIGGERED J-K FLIP-FLOP.
• THE SAME CAN BE DONE TO CONVERT A S-R FLIP-FLOP
TO A D FLIP-FLOP.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Edge-triggered D flip-flop
implementation from a J-K flip-flop.
CLOCKED D FLIP-FLOP – PARALLEL
DATA TRANSFER
OUTPUTS X, Y, Z ARE TO BE TRANSFERRED
TO FFS Q1, Q2, AND Q3 FOR STORAGE.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Using D flip-flops, levels
present at X, Y & Z will be
transferred to Q1, Q2 & Q3,
upon application of a
TRANSFER pulse to the
common CLK inputs.
Q output is the same as the D
input
CLOCKED D FLIP-FLOP – PARALLEL
DATA TRANSFER
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
This is an example of parallel
data transfer of binary data—
the three bits X, Y & Z are
transferred simultaneously.
OUTPUTS X, Y, Z ARE TO BE TRANSFERRED
TO FFS Q1, Q2, AND Q3 FOR STORAGE.
D LATCH (TRANSPARENT LATCH)
• THE EDGE-TRIGGERED D FLIP-FLOP USES AN EDGE-DETECTOR
CIRCUIT TO ENSURE THE OUTPUT RESPONDS TO THE D INPUT
ONLY ON ACTIVE TRANSITION OF THE CLOCK.
• IF THIS EDGE DETECTOR IS NOT USED, THE RESULTANT CIRCUIT
OPERATES AS A D LATCH.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
D LATCH (TRANSPARENT LATCH)
D LATCH STRUCTURE, FUNCTION TABLE, LOGIC SYMBOL.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
D LATCH (TRANSPARENT LATCH)
• THE CIRCUIT CONTAINS THE NAND LATCH AND THE STEERING
NAND GATES 1 AND 2 WITHOUT THE EDGE-DETECTOR CIRCUIT.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
– Its effect on the Q and Q outputs is not restricted to
occurring only on its transitions
• The common input to the steering gates is called
an enable input (abbreviated EN)—rather than a
clock input.
ASYNCHRONOUS INPUTS
• INPUTS THAT DEPEND ON THE CLOCK ARE SYNCHRONOUS. THE SYNCHRONOUS
INPUT MUST USE A CLOCK SIGNAL TO TRIGGER THE FFS.
• MOST CLOCKED FFS HAVE ONE OR MORE ASYNCHRONOUS INPUTS THAT DO NOT
DEPEND ON THE CLOCK.
• LABELS PRESET & CLEAR ARE USED FOR ASYNCHRONOUS INPUTS.
• THESE ASYNCHRONOUS INPUTS CAN BE USED TO SET THE FF TO THE 1 STATE
OR CLEAR TO 0 STATE AT ANYTIME, REGARDLESS OF THE CONDITIONS AT THE
OTHER INPUTS.
• THE ASYNCHRONOUS INPUTS ARE OVERRIDE INPUTS
• ACTIVE-LOW ASYNCHRONOUS INPUTS WILL HAVE A BAR OVER THE LABELS AND
INVERSION BUBBLES.
• IF THE ASYNCHRONOUS INPUTS ARE NOT USED THEY WILL BE TIED TO THEIR
INACTIVE STATE.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Clocked J-K flip-flop with asynchronous inputs.
At PRE =CLR =1, the asynchronous inputs are inactive
PRE’=0, CLR’=1, the PRE’ is activated, Q=1
PRE’=1, CLR’=0, the CLR’ is activated,Q=0
PRE’=CLR’=0, ambiguous
ASYNCHRONOUS INPUTS
• IC MANUFACTURERS DO NOT ALL AGREE ON THE
NOMENCLATURE FOR ASYNCHRONOUS INPUTS.
• THE MOST COMMON DESIGNATIONS ARE PRE (PRESET) AND
CLR (CLEAR).
• CLEARLY DISTINGUISHED FROM SYNCHRONOUS SET & RESET.
• LABELS SUCH AS S-D (DIRECT SET) AND R-D (DIRECT RESET)
ARE ALSO USED.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
ASYNCHRONOUS INPUTS
EXAMPLE : ASYNCHRONOUS INPUTS
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
A J-K FF that responds to a NGT on its clock
input and has active-LOW asynchronous inputs.
FLIP-FLOP TIMING CONSIDERATIONS -
PARAMETERS
• IMPORTANT TIMING PARAMETERS:
• SETUP AND HOLD TIMES
• PROPAGATION DELAY—TIME FOR A SIGNAL AT THE INPUT TO BE SHOWN AT
THE OUTPUT. (TPLH AND TPHL)
• MAXIMUM CLOCKING FREQUENCY—HIGHEST CLOCK FREQUENCY THAT WILL
GIVE A RELIABLE OUTPUT. (FMAX)
• CLOCK PULSE HIGH AND LOW TIMES—MINIMUM CLOCK-TIME BETWEEN
HIGH/LOW CHANGES.( TW(L); TW(H) )
• ASYNCHRONOUS ACTIVE PULSE WIDTH—TIME THE
CLOCK MUST HIGH BEFORE GOING LOW, AND LOW
BEFORE GOING HIGH.
• CLOCK TRANSITION TIMES—MAXIMUM TIME FOR CLOCK TRANSITIONS,
• LESS THAN 50 NS FOR TTL ; 200 NS FOR CMOS
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
FLIP-FLOP TIMING CONSIDERATIONS -
PARAMETERS
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
FF propagation delays.
Clock Pulse HIGH and LOW and Asynch pulse width.
FLIP-FLOP TIMING CONSIDERATIONS –
ACTUAL IC VALUES
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Timing values for FFs
from manufacturer
data books.
All of the listed values
are minimum values,
except propagation
delays, which are
maximum values.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Review Questions
1. True or False : A j-K flip-flop can be used as an S-R flip-flop, but an S-R flip-
flop cannot be used as a J-K flip-flop.
2. Does a J-K flip-flop have any ambiguous input conditions?
3. What a J-K input condition will always set Q upon occurrence of the active
CLK transition?
4. Describe how a D latch operates differently from an edge-triggered D flip-flop.
5. True of False: A D latch is in its transparent mode when EN=0.
6. True or False: In a D latch, the D input can effect Q only when EN=1.
7. How does the operation of an asynchronous input differ from that of a
synchronous input?
8. Can a D flip-flop respond to its D and CLK inputs while PRE’=1?
FLIP-FLOP APPLICATIONS
• EXAMPLES OF APPLICATIONS:
• COUNTING; STORING BINARY DATA
• TRANSFERRING BINARY DATA BETWEEN LOCATIONS
• MANY FF APPLICATIONS ARE CATEGORIZED SEQUENTIAL.
• OUTPUT FOLLOWS A PREDETERMINED SEQUENCE OF STATES.
• WITH A NEW STATE OCCURRING EACH TIME A CLOCK PULSE OCCURS
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
FLIP-FLOP SYNCHRONIZATION
• MOST SYSTEMS ARE PRIMARILY SYNCHRONOUS IN OPERATION—IN THAT
CHANGES DEPEND ON THE CLOCK.
• ASYNCHRONOUS AND SYNCHRONOUS OPERATIONS ARE
OFTEN COMBINED—FREQUENTLY THROUGH HUMAN INPUT.
• THE RANDOM NATURE OF ASYNCHRONOUS INPUTS CAN
RESULT IN UNPREDICTABLE RESULTS.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
The asynchronous signal A can produce partial pulses at X.
A is used to control the passage of
the clock signal through the AND gate
so that clock pulses appear at output
X only as long as A is HIGH
This type of output is
often not acceptable
FLIP-FLOP SYNCHRONIZATION
AN EDGE-TRIGGERED D
FLIP-FLOP
SYNCHRONIZES THE
ENABLING OF THE AND
GATE TO THE NGTS OF
THE CLOCK.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
When A goes HIGH, Q will
not go HIGH until the next
NGT. This HIGH at Q will
enable the AND gate to pass
subsequent complete clock
pulses to X.
When A returns LOW, Q will
not go LOW until the next
NGT. Thus, the AND gate will
not inhibit the clock pulse.
DETECTING AN INPUT SEQUENCE
• FFS PROVIDE FEATURES PURE COMBINATIONAL LOGIC GATES DO NOT—
IN MANY SITUATIONS, OUTPUT ACTIVATES ONLY WHEN INPUTS
ACTIVATE IN A CERTAIN SEQUENCE
• THIS REQUIRES THE STORAGE CHARACTERISTIC OF FFS.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Clocked D flip-flop used to respond to a particular sequence of inputs.
To work properly, A must go HIGH,
prior to B, by at least an amount
of time equal to FF setup time.
AND gate used to determine when 2 inputs A and B are both HIGH but its o/p will respond
the same regardless of which i/p goes HIGH first.
Suppose we want to generate a HIGH o/p only if A goes HIGH and then B goes HIGH some
time later.
DATA STORAGE AND TRANSFER
• FFS ARE COMMONLY USED FOR STORAGE AND TRANSFER
OF BINARY DATA.
• GROUPS USED FOR STORAGE ARE REGISTERS.
• DATA TRANSFERS TAKE PLACE WHEN DATA IS MOVED BETWEEN
REGISTERS OR FFS.
• SYNCHRONOUS TRANSFERS TAKE PLACE AT CLOCK PGT/NGT.
• ASYNCHRONOUS TRANSFERS ARE CONTROLLED BY PRE & CLR.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
DATA STORAGE AND TRANSFER –
SYNCHRONOUS
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Synchronous data transfer operation by various clocked FFs.
CLK inputs are used to perform the transfer.
DATA STORAGE AND TRANSFER –
ASYNCHRONOUS
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Asynchronous data transfer operation.
PRE and CLR inputs are used to perform the transfer.
Figure shows how an asyn transfer can
be accomplished using PRE and CLR
inputs of any type of FF.
When the Transfer ENA is LOW, no effect in the FF outputs
When the Transfer ENA is HIGH, the output B of FF will set or clear
DATA STORAGE AND TRANSFER –
PARALLEL
TRANSFERRING THE
BITS OF A REGISTER
SIMULTANEOUSLY
IS A PARALLEL
TRANSFER.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
SERIAL DATA TRANSFER – SHIFT
REGISTER
• A SHIFT REGISTER IS A GROUP OF FFS ARRANGED SO THE BINARY
NUMBERS STORED IN THE FFS ARE SHIFTED FROM ONE FF TO THE NEXT,
FOR EVERY CLOCK PULSE.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
J-K flip-flops operated as a four-bit shift register.
SERIAL DATA TRANSFER – SHIFT
REGISTER
INPUT DATA ARE SHIFTED
LEFT TO RIGHT FROM FF
TO FF AS SHIFT PULSES
ARE APPLIED.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
In this shift-register arrangement,
it is necessary to have FFs with
very small hold time requirements.
There are times when the J, K
inputs are changing at about the
same time as the CLK transition.
SERIAL DATA TRANSFER – SHIFT
REGISTER
TWO CONNECTED THREE-BIT SHIFT REGISTERS.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
The contents of the X register will be serially
transferred (shifted) into register Y.
The D flip-flops in each shift register require
fewer connections than J-K flip-flops.
SERIAL DATA TRANSFER – SHIFT
REGISTER
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Two connected three-bit shift registers.
The complete transfer of the three bits
of data requires three shift pulses.
SERIAL DATA TRANSFER – SHIFT
REGISTER
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Two connected three-bit shift registers.
On each pulse NGT, each FF takes on the value
stored in the FF on its left prior to the pulse.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Two connected three-bit shift registers.
On each pulse NGT, each FF takes on the value
stored in the FF on its left prior to the pulse.
SERIAL DATA TRANSFER – SHIFT
REGISTER
SERIAL DATA TRANSFER – SHIFT
REGISTER
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Two connected three-bit shift registers.
On each pulse NGT, each FF takes on the value
stored in the FF on its left prior to the pulse.
SERIAL DATA TRANSFER – SHIFT
REGISTER
THE 101 STORED IN THE X
REGISTER HAS NOW BEEN
SHIFTED INTO THE Y
REGISTER.
THE X REGISTER HAS LOST
ITS ORIGINAL DATA, AND IS
AT 000.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
Two connected three-bit shift registers.
The 1 initially in X2 is in Y2.
The 0 initially in X1 is in Y1.
The 1 initially in X0 is in Y0.
After three pulses:
SERIAL DATA TRANSFER VS. PARALLEL
• FFS IN CAN JUST AS EASILY BE CONNECTED SO THAT INFORMATION
SHIFTS FROM RIGHT TO LEFT.
• NO GENERAL ADVANTAGE OF ONE DIRECTION OVER ANOTHER.
• OFTEN DICTATED BY THE NATURE OF THE
APPLICATION.
• PARALLEL TRANSFER REQUIRES MORE INTERCONNECTIONS BETWEEN
SENDING & RECEIVING REGISTERS THAN SERIAL.
• MORE CRITICAL WHEN A GREATER NUMBER OF BITS OF ARE BEING
TRANSFERRED.
• OFTEN, A COMBINATION OF TYPES IS USED
• TAKING ADVANTAGE OF PARALLEL TRANSFER SPEED AND SERIAL TRANSFER
THE ECONOMY AND SIMPLICITY OF SERIAL TRANSFER.
Digital Systems: Principles and
Applications, 11/e
Ronald J. Tocci, Neal S. Widmer,
Gregory L. Moss
NOTES

More Related Content

What's hot

What's hot (20)

SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]
SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]
SEQUENTIAL CIRCUITS [FLIP FLOPS AND LATCHES]
 
Counters
Counters Counters
Counters
 
D flip Flop
D flip FlopD flip Flop
D flip Flop
 
Lugar de las raices
Lugar de las raicesLugar de las raices
Lugar de las raices
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
 
D latch
D latchD latch
D latch
 
Flip Flop
Flip FlopFlip Flop
Flip Flop
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
sequential circuits
sequential circuitssequential circuits
sequential circuits
 
Transfer function and mathematical modeling
Transfer  function  and  mathematical  modelingTransfer  function  and  mathematical  modeling
Transfer function and mathematical modeling
 
Modern control engineering 5th ed solution manual (2010)
Modern control engineering 5th ed solution manual (2010)Modern control engineering 5th ed solution manual (2010)
Modern control engineering 5th ed solution manual (2010)
 
Flipflop
FlipflopFlipflop
Flipflop
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
flip flop Presentation
flip flop  Presentationflip flop  Presentation
flip flop Presentation
 
2 port network
2 port network2 port network
2 port network
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flop
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
ciruitos digitales
ciruitos digitalesciruitos digitales
ciruitos digitales
 
Amplificadores operacionais
Amplificadores operacionaisAmplificadores operacionais
Amplificadores operacionais
 

Similar to NOTES

Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
UtsavDas21
 
Timing notes 2006
Timing notes 2006Timing notes 2006
Timing notes 2006
pavan kumar
 
Computer Organization1CS1400Feng JiangBoolean al.docx
Computer Organization1CS1400Feng JiangBoolean al.docxComputer Organization1CS1400Feng JiangBoolean al.docx
Computer Organization1CS1400Feng JiangBoolean al.docx
ladonnacamplin
 

Similar to NOTES (20)

Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Introduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptxIntroduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptx
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
 
Cse(b) g1 flipflop
Cse(b) g1 flipflopCse(b) g1 flipflop
Cse(b) g1 flipflop
 
Coa presentation2
Coa presentation2Coa presentation2
Coa presentation2
 
Chapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital LogicChapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital Logic
 
Timing notes 2006
Timing notes 2006Timing notes 2006
Timing notes 2006
 
Digital Computer System Introduction - New
Digital Computer System Introduction - NewDigital Computer System Introduction - New
Digital Computer System Introduction - New
 
Computer Organization1CS1400Feng JiangBoolean al.docx
Computer Organization1CS1400Feng JiangBoolean al.docxComputer Organization1CS1400Feng JiangBoolean al.docx
Computer Organization1CS1400Feng JiangBoolean al.docx
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
SEQUENTIAL CIRCUITS [Flip-flops and Latches]
SEQUENTIAL CIRCUITS [Flip-flops and Latches]SEQUENTIAL CIRCUITS [Flip-flops and Latches]
SEQUENTIAL CIRCUITS [Flip-flops and Latches]
 
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
SEQUENTIAL LOGIC CIRCUITS (FLIP FLOPS AND LATCHES)
 
9flipflopsupdated-191016140658.pptx
9flipflopsupdated-191016140658.pptx9flipflopsupdated-191016140658.pptx
9flipflopsupdated-191016140658.pptx
 
Latch and Flipflop.pptx
Latch and Flipflop.pptxLatch and Flipflop.pptx
Latch and Flipflop.pptx
 
7Counters_registers.ppt
7Counters_registers.ppt7Counters_registers.ppt
7Counters_registers.ppt
 
PPT 2nd unit course file.ppt
PPT 2nd unit course file.pptPPT 2nd unit course file.ppt
PPT 2nd unit course file.ppt
 
Chapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital LogicChapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital Logic
 
Unit IV version I.ppt
Unit IV version I.pptUnit IV version I.ppt
Unit IV version I.ppt
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
latchesflip-flop DLD
latchesflip-flop DLDlatchesflip-flop DLD
latchesflip-flop DLD
 

Recently uploaded

Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
drjose256
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
Madan Karki
 

Recently uploaded (20)

How to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdfHow to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdf
 
BORESCOPE INSPECTION for engins CFM56.pdf
BORESCOPE INSPECTION for engins CFM56.pdfBORESCOPE INSPECTION for engins CFM56.pdf
BORESCOPE INSPECTION for engins CFM56.pdf
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
Module-III Varried Flow.pptx GVF Definition, Water Surface Profile Dynamic Eq...
 
Quiz application system project report..pdf
Quiz application system project report..pdfQuiz application system project report..pdf
Quiz application system project report..pdf
 
Introduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AIIntroduction to Artificial Intelligence and History of AI
Introduction to Artificial Intelligence and History of AI
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Introduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoIntroduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of Arduino
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 
Low rpm Generator for efficient energy harnessing from a two stage wind turbine
Low rpm Generator for efficient energy harnessing from a two stage wind turbineLow rpm Generator for efficient energy harnessing from a two stage wind turbine
Low rpm Generator for efficient energy harnessing from a two stage wind turbine
 
Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.
 

NOTES

  • 2. CHAPTER 7 LEARNING OUTCOMES: • TO DISTINGUISH AND IDENTIFY LATCHES, SWITCHES AND SIGNAL CLOCK, TRIGGERING LEVEL AND EDGE TRIGGERING,FLIP-FLOP (RS, JK, D AND T). • TO DISTINGUISH AND IDENTIFY FLIP-FLOP MASTER SLAVE, SYNCHRONOUS AND ASYNCHRONOUS INPUT. • TO IDENTIFY SYMBOL OF THE IEEE AND ANSI, TIMING FLIP-FLOP AND SET AND RESET FUNCTIONS. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 3. CHAPTER 7 INTRODUCTION Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss • Block diagram of a general digital system that combines combinational logic gates with memory devices.
  • 4. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss • The most important memory element is the flip- flop (FF)—made up of an assembly of logic gates. The flip-flop is known by other names, including latch and bistable multivibrator. CHAPTER 7 INTRODUCTION
  • 5. NAND GATE LATCH • THE NAND GATE LATCH OR SIMPLY LATCH IS A BASIC FF. • INPUTS ARE SET AND CLEAR (RESET). • INPUTS ARE ACTIVE-LOW—OUTPUT WILL CHANGE WHEN THE INPUT IS PULSED LOW. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss – When the latch is set: Q = 1 and Q = 0 – When the latch is clear or reset: Q = 0 and Q = 1
  • 6. NAND GATE LATCH – SETTING THE LATCH (FF) • PULSING THE SET INPUT TO THE 0 STATE... • (A) Q = 0 PRIOR TO SET PULSE. • (B) Q = 1 PRIOR TO SET PULSE. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss In both cases, Q ends up HIGH.
  • 7. NAND GATE LATCH – RESETTING THE LATCH (FF) • PULSING RESET LOW WHEN... • (A) Q = 0 PRIOR TO THE RESET PULSE. • (B) Q = 1 PRIOR TO THE RESET PULSE. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss In each case, Q ends up LOW.
  • 8. NAND GATE LATCH – ALTERNATE REPRESENTATIONS Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss NAND latch equivalent representations and simplified block diagram.
  • 9. NAND GATE LATCH - SUMMARY • SUMMARY OF THE NAND LATCH: • SET = 1, RESET = 1—NORMAL RESTING STATE, OUTPUTS REMAIN IN STATE THEY WERE IN PRIOR TO INPUT. • SET = 0, RESET = 1—OUTPUT WILL GO TO Q = 1 AND REMAINS THERE, EVEN AFTER SET RETURNS HIGH. • CALLED SETTING THE LATCH. • SET = 1, RESET = 0—WILL PRODUCE Q = 0 LOW AND REMAINS THERE, EVEN AFTER RESET RETURNS HIGH. • CALLED CLEARING OR RESETTING THE LATCH. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss – SET = 0, RESET = 0—Tries to set and clear the latch at the same time, and produces • Output is unpredictable, and this input condition should not be used. Q = Q = 1.
  • 10. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 11. REVIEW QUESTIONS: Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss The waveforms below are applied to the inputs of the NAND- latch. Assume that initially Q=0, and determine the Q waveforms. SET RESET 1 1 Q t1 t2 t3 t4 t5 t6
  • 12. NOR GATE LATCH Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss • Two cross-coupled NOR gates can be used as a NOR gate latch—similar to the NAND latch. – The Q and Q outputs are reversed. The SET and RESET inputs are active-HIGH. Output will change when the input is pulsed HIGH.
  • 13. NOR GATE LATCH - SUMMARY • SUMMARY OF THE NOR LATCH: • SET = 0, RESET = 0—NORMAL RESTING STATE, NO EFFECT ON OUTPUT STATE. • SET = 1, RESET = 0—WILL ALWAYS SET Q = 1, WHERE IT REMAINS EVEN AFTER SET RETURNS TO 0. • SET = 0, RESET = 1—WILL ALWAYS CLEAR Q = 0, WHERE IT REMAINS EVEN AFTER RESET RETURNS TO 0. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss – SET = 1, RESET = 1—Tries to set and reset the latch at the same time, and produces • Output is unpredictable, and this input condition should not be used. Q = Q = 0.
  • 14. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Review Questions: The waveforms below are applied to the inputs of the NOR- latch. Assume that initially Q=0, and determine the Q waveforms. SET RESET 0 0 Q t1 t2 t3 t4 t5 t6 0
  • 15. DIGITAL PULSES SIGNALS THAT SWITCH BETWEEN ACTIVE AND INACTIVE STATES ARE CALLED PULSE WAVEFORMS. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss A negative pulse has an active-LOW level. In digital, there is a signal switches from a normal inactive state to the opposite (active) state and returns to its inactive state while effect of the recently activated signal. A pulse that performs its intended function when it goes LOW is called a negative pulse The transition at the beginning of the pulse is called the leading edge and the transition at the end of the pulse is called the trailing edge
  • 16. DIGITAL PULSES Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss A positive pulse has an active-HIGH level. A pulse that performs its intended function when it goes HIGH is called a positive pulse
  • 17. DIGITAL PULSES • IN ACTUAL CIRCUITS IT TAKES TIME FOR A PULSE WAVEFORM TO CHANGE FROM ONE LEVEL TO THE OTHER. • TRANSITION FROM LOW TO HIGH ON A POSITIVE PULSE IS CALLED RISE TIME (TR). Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Measured between the 10% and 90% points on the leading edge of the voltage waveform.
  • 18. DIGITAL PULSES • IN ACTUAL CIRCUITS IT TAKES TIME FOR A PULSE WAVEFORM TO CHANGE FROM ONE LEVEL TO THE OTHER. • TRANSITION FROM HIGH TO LOW ON A POSITIVE PULSE IS CALLED FALL TIME (TF). Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Measured between the 90% and 10% points on the trailing edge of the voltage waveform.
  • 19. DIGITAL PULSES • IN ACTUAL CIRCUITS IT TAKES TIME FOR A PULSE WAVEFORM TO CHANGE FROM ONE LEVEL TO THE OTHER. • A PULSE ALSO HAS A DURATION—WIDTH—(TW). Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss The time between the points when the leading and trailing edges are at 50% of the HIGH level voltage.
  • 20. CLOCK SIGNALS AND CLOCKED FLIP- FLOPS • DIGITAL SYSTEMS CAN OPERATE EITHER ASYNCHRONOUSLY OR SYNCHRONOUSLY. • ASYNCHRONOUS SYSTEM—OUTPUTS CAN CHANGE STATE AT ANY TIME THE INPUT(S) CHANGE. • SYNCHRONOUS SYSTEM—OUTPUT CAN CHANGE STATE ONLY AT A SPECIFIC TIME IN THE CLOCK CYCLE. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 21. CLOCK SIGNALS AND CLOCKED FLIP- FLOPS • THE CLOCK SIGNAL IS A RECTANGULAR PULSE TRAIN OR SQUARE WAVE. • POSITIVE GOING TRANSITION (PGT)—CLOCK PULSE GOES FROM 0 TO 1. • NEGATIVE GOING TRANSITION (NGT)—CLOCK PULSE GOES FROM 1 TO 0. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Transitions are also called edges.
  • 22. • CLOCKED FFS CHANGE STATE ON ONE OR THE OTHER CLOCK TRANSITIONS. • CLOCK INPUTS ARE LABELED CLK, CK, OR CP. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss A small triangle at the CLK input indicates that the input is activated with a PGT. A bubble and a triangle indicates that the CLK input is activated with a NGT. CLOCK SIGNALS AND CLOCKED FLIP- FLOPS
  • 23. • CONTROL INPUTS HAVE AN EFFECT ON THE OUTPUT ONLY AT THE ACTIVE CLOCK TRANSITION (NGT OR PGT)—ALSO CALLED SYNCHRONOUS CONTROL INPUTS. • THE CONTROL INPUTS GET THE OUTPUTS READY TO CHANGE, BUT THE CHANGE IS NOT TRIGGERED UNTIL THE CLK EDGE. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss CLOCK SIGNALS AND CLOCKED FLIP- FLOPS
  • 24. • SETUP TIME (TS) IS THE MINIMUM TIME INTERVAL BEFORE THE ACTIVE CLK TRANSITION THAT THE CONTROL INPUT MUST BE KEPT AT THE PROPER LEVEL. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Two timing requirements must be met if a clocked FF of to respond reliably to its control inputs when the active CLK transition occurs. The control inputs must be stable (unchanging) for at least a time interval equal to ts (min) prior to the clock transition. CLOCK SIGNALS AND CLOCKED FLIP- FLOPS
  • 25. • HOLD TIME (TH) IS THE TIME FOLLOWING THE ACTIVE TRANSITION OF THE CLK, DURING WHICH THE CONTROL INPUT MUST KEPT AT THE PROPER LEVEL. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss The control inputs must be stable (unchanging) for at least a time interval equal to th (min) after to the clock transition. These time intervals are required to allow for the propagation delays of the internal gates that control the operation of the flip-flop devices. IC flip-flops will have minimum allowance ts and tH values in the nanosecond range. Setup times usually in the range of 5 to 50 ns, hold times are generally from 0 to 10 ns. These times are measured between the 50% points on the transitions. CLOCK SIGNALS AND CLOCKED FLIP- FLOPS
  • 26. CLOCKED S-R FLIP-FLOP Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss • The S and R inputs are synchronous control inputs, which control the state the FF will go to when the clock pulse occurs. – The CLK input is the trigger input that causes the FF to change states according to the S and R inputs. • SET-RESET (or SET-CLEAR) FF will change states at positive- or negative-going clock edges.
  • 27. CLOCKED S-R FLIP-FLOP A CLOCKED S-R FLIP-FLOP TRIGGERED BY THE POSITIVE-GOING EDGE OF THE CLOCK SIGNAL. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss The S and R inputs control the state of the FF in the same manner as described earlier for the NOR gate latch, but the FF does not respond to these inputs until the occurrence of the PGT of the clock signal.
  • 28. CLOCKED S-R FLIP-FLOP Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Waveforms of the operation of a clocked S-R flip-flop triggered by the positive- going edge of a clock pulse.
  • 29. CLOCKED S-R FLIP-FLOP A CLOCKED S-R FLIP-FLOP TRIGGERED BY THE NEGATIVE-GOING EDGE OF THE CLOCK SIGNAL. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Both positive-edge and negative-edge triggering FFs are used in digital systems.
  • 30. CLOCKED S-R FLIP-FLOP– INTERNAL CIRCUITRY Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss • An edge-triggered S-R flip-flop circuit features: – A basic NAND gate latch formed by NAND-3 and NAND-4. – A pulse-steering circuit formed by NAND-1 and NAND-2. – An edge-detector circuit. The edge detector produces a narrow positive going spike (CLK*) The pulse-steering circuit “steers” the spike through to the SET’ and RESET’. When S=1 and R=0, the CLK* signal is inverted and passes through NAND-1 to produce LOW pulse at the SET ‘ input of the latch that sets Q=1 When S=0, R=1, the CLK* signal is inverted and passes through the NAND-2 to produce a low pulse at the RESET ‘ input of the latch that resets Q=0.
  • 31. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss • Implementation of edge-detector circuits used in edge-triggered flip- flops: – (a) PGT; (b) NGT. The duration of the CLK* pulses is typically 2–5 ns. CLOCKED S-R FLIP-FLOP– INTERNAL CIRCUITRY
  • 32. CLOCKED J-K FLIP-FLOP • OPERATES LIKE THE S-R FF. • J IS SET, K IS CLEAR. • WHEN J AND K ARE BOTH HIGH, OUTPUT IS TOGGLED TO THE OPPOSITE STATE. • MAY BE POSITIVE GOING OR NEGATIVE GOING CLOCK TRIGGER. • MUCH MORE VERSATILE THAN THE S-R FLIP-FLOP, AS IT HAS NO AMBIGUOUS STATES. • HAS THE ABILITY TO DO EVERYTHING THE S-R FF DOES, PLUS OPERATES IN TOGGLE MODE. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 33. CLOCKED J-K FLIP-FLOP CLOCKED J-K FLIP-FLOP THAT RESPONDS ONLY TO THE POSITIVE EDGE OF THE CLOCK. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Initial Q=1
  • 34. CLOCKED J-K FLIP-FLOP CLOCKED J-K FLIP-FLOP THAT RESPONDS ONLY TO THE NEGATIVE EDGE OF THE CLOCK. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 35. CLOCKED J-K FLIP-FLOP Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss • The internal circuitry of an edge-triggered J-K flip-flop contains the same three sections as the edge-triggered S-R flip-flop.
  • 36. CLOCKED D FLIP-FLOP D FLIP-FLOP THAT TRIGGERS ONLY ON POSITIVE-GOING TRANSITIONS. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss D stands for Data Has only one synchronous control input Q will go the same state that is present on the D Q initial=1
  • 37. CLOCKED D FLIP-FLOP - IMPLEMENTATION • AN EDGE-TRIGGERED D FLIP-FLOP IS IMPLEMENTED BY ADDING A SINGLE INVERTER TO THE EDGE-TRIGGERED J-K FLIP-FLOP. • THE SAME CAN BE DONE TO CONVERT A S-R FLIP-FLOP TO A D FLIP-FLOP. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Edge-triggered D flip-flop implementation from a J-K flip-flop.
  • 38. CLOCKED D FLIP-FLOP – PARALLEL DATA TRANSFER OUTPUTS X, Y, Z ARE TO BE TRANSFERRED TO FFS Q1, Q2, AND Q3 FOR STORAGE. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Using D flip-flops, levels present at X, Y & Z will be transferred to Q1, Q2 & Q3, upon application of a TRANSFER pulse to the common CLK inputs. Q output is the same as the D input
  • 39. CLOCKED D FLIP-FLOP – PARALLEL DATA TRANSFER Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss This is an example of parallel data transfer of binary data— the three bits X, Y & Z are transferred simultaneously. OUTPUTS X, Y, Z ARE TO BE TRANSFERRED TO FFS Q1, Q2, AND Q3 FOR STORAGE.
  • 40. D LATCH (TRANSPARENT LATCH) • THE EDGE-TRIGGERED D FLIP-FLOP USES AN EDGE-DETECTOR CIRCUIT TO ENSURE THE OUTPUT RESPONDS TO THE D INPUT ONLY ON ACTIVE TRANSITION OF THE CLOCK. • IF THIS EDGE DETECTOR IS NOT USED, THE RESULTANT CIRCUIT OPERATES AS A D LATCH. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 41. D LATCH (TRANSPARENT LATCH) D LATCH STRUCTURE, FUNCTION TABLE, LOGIC SYMBOL. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 42. D LATCH (TRANSPARENT LATCH) • THE CIRCUIT CONTAINS THE NAND LATCH AND THE STEERING NAND GATES 1 AND 2 WITHOUT THE EDGE-DETECTOR CIRCUIT. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss – Its effect on the Q and Q outputs is not restricted to occurring only on its transitions • The common input to the steering gates is called an enable input (abbreviated EN)—rather than a clock input.
  • 43. ASYNCHRONOUS INPUTS • INPUTS THAT DEPEND ON THE CLOCK ARE SYNCHRONOUS. THE SYNCHRONOUS INPUT MUST USE A CLOCK SIGNAL TO TRIGGER THE FFS. • MOST CLOCKED FFS HAVE ONE OR MORE ASYNCHRONOUS INPUTS THAT DO NOT DEPEND ON THE CLOCK. • LABELS PRESET & CLEAR ARE USED FOR ASYNCHRONOUS INPUTS. • THESE ASYNCHRONOUS INPUTS CAN BE USED TO SET THE FF TO THE 1 STATE OR CLEAR TO 0 STATE AT ANYTIME, REGARDLESS OF THE CONDITIONS AT THE OTHER INPUTS. • THE ASYNCHRONOUS INPUTS ARE OVERRIDE INPUTS • ACTIVE-LOW ASYNCHRONOUS INPUTS WILL HAVE A BAR OVER THE LABELS AND INVERSION BUBBLES. • IF THE ASYNCHRONOUS INPUTS ARE NOT USED THEY WILL BE TIED TO THEIR INACTIVE STATE. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 44. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Clocked J-K flip-flop with asynchronous inputs. At PRE =CLR =1, the asynchronous inputs are inactive PRE’=0, CLR’=1, the PRE’ is activated, Q=1 PRE’=1, CLR’=0, the CLR’ is activated,Q=0 PRE’=CLR’=0, ambiguous ASYNCHRONOUS INPUTS
  • 45. • IC MANUFACTURERS DO NOT ALL AGREE ON THE NOMENCLATURE FOR ASYNCHRONOUS INPUTS. • THE MOST COMMON DESIGNATIONS ARE PRE (PRESET) AND CLR (CLEAR). • CLEARLY DISTINGUISHED FROM SYNCHRONOUS SET & RESET. • LABELS SUCH AS S-D (DIRECT SET) AND R-D (DIRECT RESET) ARE ALSO USED. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss ASYNCHRONOUS INPUTS
  • 46. EXAMPLE : ASYNCHRONOUS INPUTS Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss A J-K FF that responds to a NGT on its clock input and has active-LOW asynchronous inputs.
  • 47. FLIP-FLOP TIMING CONSIDERATIONS - PARAMETERS • IMPORTANT TIMING PARAMETERS: • SETUP AND HOLD TIMES • PROPAGATION DELAY—TIME FOR A SIGNAL AT THE INPUT TO BE SHOWN AT THE OUTPUT. (TPLH AND TPHL) • MAXIMUM CLOCKING FREQUENCY—HIGHEST CLOCK FREQUENCY THAT WILL GIVE A RELIABLE OUTPUT. (FMAX) • CLOCK PULSE HIGH AND LOW TIMES—MINIMUM CLOCK-TIME BETWEEN HIGH/LOW CHANGES.( TW(L); TW(H) ) • ASYNCHRONOUS ACTIVE PULSE WIDTH—TIME THE CLOCK MUST HIGH BEFORE GOING LOW, AND LOW BEFORE GOING HIGH. • CLOCK TRANSITION TIMES—MAXIMUM TIME FOR CLOCK TRANSITIONS, • LESS THAN 50 NS FOR TTL ; 200 NS FOR CMOS Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 48. FLIP-FLOP TIMING CONSIDERATIONS - PARAMETERS Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss FF propagation delays. Clock Pulse HIGH and LOW and Asynch pulse width.
  • 49. FLIP-FLOP TIMING CONSIDERATIONS – ACTUAL IC VALUES Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Timing values for FFs from manufacturer data books. All of the listed values are minimum values, except propagation delays, which are maximum values.
  • 50. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Review Questions 1. True or False : A j-K flip-flop can be used as an S-R flip-flop, but an S-R flip- flop cannot be used as a J-K flip-flop. 2. Does a J-K flip-flop have any ambiguous input conditions? 3. What a J-K input condition will always set Q upon occurrence of the active CLK transition? 4. Describe how a D latch operates differently from an edge-triggered D flip-flop. 5. True of False: A D latch is in its transparent mode when EN=0. 6. True or False: In a D latch, the D input can effect Q only when EN=1. 7. How does the operation of an asynchronous input differ from that of a synchronous input? 8. Can a D flip-flop respond to its D and CLK inputs while PRE’=1?
  • 51. FLIP-FLOP APPLICATIONS • EXAMPLES OF APPLICATIONS: • COUNTING; STORING BINARY DATA • TRANSFERRING BINARY DATA BETWEEN LOCATIONS • MANY FF APPLICATIONS ARE CATEGORIZED SEQUENTIAL. • OUTPUT FOLLOWS A PREDETERMINED SEQUENCE OF STATES. • WITH A NEW STATE OCCURRING EACH TIME A CLOCK PULSE OCCURS Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 52. FLIP-FLOP SYNCHRONIZATION • MOST SYSTEMS ARE PRIMARILY SYNCHRONOUS IN OPERATION—IN THAT CHANGES DEPEND ON THE CLOCK. • ASYNCHRONOUS AND SYNCHRONOUS OPERATIONS ARE OFTEN COMBINED—FREQUENTLY THROUGH HUMAN INPUT. • THE RANDOM NATURE OF ASYNCHRONOUS INPUTS CAN RESULT IN UNPREDICTABLE RESULTS. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss The asynchronous signal A can produce partial pulses at X. A is used to control the passage of the clock signal through the AND gate so that clock pulses appear at output X only as long as A is HIGH This type of output is often not acceptable
  • 53. FLIP-FLOP SYNCHRONIZATION AN EDGE-TRIGGERED D FLIP-FLOP SYNCHRONIZES THE ENABLING OF THE AND GATE TO THE NGTS OF THE CLOCK. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss When A goes HIGH, Q will not go HIGH until the next NGT. This HIGH at Q will enable the AND gate to pass subsequent complete clock pulses to X. When A returns LOW, Q will not go LOW until the next NGT. Thus, the AND gate will not inhibit the clock pulse.
  • 54. DETECTING AN INPUT SEQUENCE • FFS PROVIDE FEATURES PURE COMBINATIONAL LOGIC GATES DO NOT— IN MANY SITUATIONS, OUTPUT ACTIVATES ONLY WHEN INPUTS ACTIVATE IN A CERTAIN SEQUENCE • THIS REQUIRES THE STORAGE CHARACTERISTIC OF FFS. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Clocked D flip-flop used to respond to a particular sequence of inputs. To work properly, A must go HIGH, prior to B, by at least an amount of time equal to FF setup time. AND gate used to determine when 2 inputs A and B are both HIGH but its o/p will respond the same regardless of which i/p goes HIGH first. Suppose we want to generate a HIGH o/p only if A goes HIGH and then B goes HIGH some time later.
  • 55. DATA STORAGE AND TRANSFER • FFS ARE COMMONLY USED FOR STORAGE AND TRANSFER OF BINARY DATA. • GROUPS USED FOR STORAGE ARE REGISTERS. • DATA TRANSFERS TAKE PLACE WHEN DATA IS MOVED BETWEEN REGISTERS OR FFS. • SYNCHRONOUS TRANSFERS TAKE PLACE AT CLOCK PGT/NGT. • ASYNCHRONOUS TRANSFERS ARE CONTROLLED BY PRE & CLR. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 56. DATA STORAGE AND TRANSFER – SYNCHRONOUS Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Synchronous data transfer operation by various clocked FFs. CLK inputs are used to perform the transfer.
  • 57. DATA STORAGE AND TRANSFER – ASYNCHRONOUS Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Asynchronous data transfer operation. PRE and CLR inputs are used to perform the transfer. Figure shows how an asyn transfer can be accomplished using PRE and CLR inputs of any type of FF. When the Transfer ENA is LOW, no effect in the FF outputs When the Transfer ENA is HIGH, the output B of FF will set or clear
  • 58. DATA STORAGE AND TRANSFER – PARALLEL TRANSFERRING THE BITS OF A REGISTER SIMULTANEOUSLY IS A PARALLEL TRANSFER. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss
  • 59. SERIAL DATA TRANSFER – SHIFT REGISTER • A SHIFT REGISTER IS A GROUP OF FFS ARRANGED SO THE BINARY NUMBERS STORED IN THE FFS ARE SHIFTED FROM ONE FF TO THE NEXT, FOR EVERY CLOCK PULSE. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss J-K flip-flops operated as a four-bit shift register.
  • 60. SERIAL DATA TRANSFER – SHIFT REGISTER INPUT DATA ARE SHIFTED LEFT TO RIGHT FROM FF TO FF AS SHIFT PULSES ARE APPLIED. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss In this shift-register arrangement, it is necessary to have FFs with very small hold time requirements. There are times when the J, K inputs are changing at about the same time as the CLK transition.
  • 61. SERIAL DATA TRANSFER – SHIFT REGISTER TWO CONNECTED THREE-BIT SHIFT REGISTERS. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss The contents of the X register will be serially transferred (shifted) into register Y. The D flip-flops in each shift register require fewer connections than J-K flip-flops.
  • 62. SERIAL DATA TRANSFER – SHIFT REGISTER Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Two connected three-bit shift registers. The complete transfer of the three bits of data requires three shift pulses.
  • 63. SERIAL DATA TRANSFER – SHIFT REGISTER Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Two connected three-bit shift registers. On each pulse NGT, each FF takes on the value stored in the FF on its left prior to the pulse.
  • 64. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Two connected three-bit shift registers. On each pulse NGT, each FF takes on the value stored in the FF on its left prior to the pulse. SERIAL DATA TRANSFER – SHIFT REGISTER
  • 65. SERIAL DATA TRANSFER – SHIFT REGISTER Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Two connected three-bit shift registers. On each pulse NGT, each FF takes on the value stored in the FF on its left prior to the pulse.
  • 66. SERIAL DATA TRANSFER – SHIFT REGISTER THE 101 STORED IN THE X REGISTER HAS NOW BEEN SHIFTED INTO THE Y REGISTER. THE X REGISTER HAS LOST ITS ORIGINAL DATA, AND IS AT 000. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Two connected three-bit shift registers. The 1 initially in X2 is in Y2. The 0 initially in X1 is in Y1. The 1 initially in X0 is in Y0. After three pulses:
  • 67. SERIAL DATA TRANSFER VS. PARALLEL • FFS IN CAN JUST AS EASILY BE CONNECTED SO THAT INFORMATION SHIFTS FROM RIGHT TO LEFT. • NO GENERAL ADVANTAGE OF ONE DIRECTION OVER ANOTHER. • OFTEN DICTATED BY THE NATURE OF THE APPLICATION. • PARALLEL TRANSFER REQUIRES MORE INTERCONNECTIONS BETWEEN SENDING & RECEIVING REGISTERS THAN SERIAL. • MORE CRITICAL WHEN A GREATER NUMBER OF BITS OF ARE BEING TRANSFERRED. • OFTEN, A COMBINATION OF TYPES IS USED • TAKING ADVANTAGE OF PARALLEL TRANSFER SPEED AND SERIAL TRANSFER THE ECONOMY AND SIMPLICITY OF SERIAL TRANSFER. Digital Systems: Principles and Applications, 11/e Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss