Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Sequential Circuits are those whose output is dependent not only on the
state of present input signals but also on the past output.
Such circuits employ storage (memory) elements, in the feedback path, to
hold the past state of outputs. Thus, the circuit behavior is specified by a
time sequence of inputs and internal states.
Sequential Circuits
Sequential circuit has Combinational circuit (shown below) such that it:-
accepts digital signals from external inputs and from outputs of memory
elements (flip flop).
generates signals for external outputs and for inputs to memory elements,
referred to as Excitation.
In Sequential circuits, synchronization is achieved by an external timing
device called Clock generator.
Sequential Circuits
Storage Element
A Storage Element or a Memory element is a medium in which
one bit of information (0 or 1) can be stored or retained until
necessary, and thereafter its contents can be replaced by a new
value.
The contents of memory elements can be changed by the
outputs of combinational circuits that are connected to its input.
Time delay devices are also used as Storage elements in
sequential circuits as their internal propagation delay is
sufficient to produce the needed effect of memory/storage
element
Flip-flops are also employed as memory storage elements in
sequential circuits.
Sequential Circuits
Types of Sequential Circuits-
Synchronous Seq Circuits Asynchronous Seq Circuits
Synchronous Seq Circuits:
A circuit whose behavior can be defined from the knowledge of its signal at
discrete instants of time is referred to as a synchronous sequential circuit.
In these circuits:-
Synchronization is achieved by a timing device known as a system clock,
which generates a periodic train of clock pulses as shown below.
Outputs are affected only with the application of a clock pulse. The rate of
clock pulses must be slow enough to permit the slowest circuit to respond.
This limits the speed of all circuits.
Not Used
SR Latch (NOR Gate Based)
Detailed Working
Case-1: S=1, R=0, Q=1, Q'=0 (Refer NOR Gate TT: When B=1; Q=0)
Case-2: S=0, R=1, Q=0, Q'=1 (Refer NOR Gate TT: When B=1; Q=0)
When asserted input, S or R is returned to 0, the flip flop retains its SET or
RESET state depending upon which input (S or R) was recently asserted to '1'.
Case-1
Case-2
Case-2
Case-1
Logic Symbol
of SR Flip Flop
(Memory State)
S'R' Latch Using NAND Gate
It has two cross-coupled NAND gates.
'
Reset →
Set →
'
(Memory State)
Comparison of SR & S'R' Flip Flops
Comparing NOR flip flop (SR) and NAND Latch (S'R') - these two flip
flops operate in complement fashion of each other.
To convert a NAND gate based Latch (S'R' Latch) to SR Latch
(behavior similar to NOR gate based), place an inverter at each input of
S'R' Latch (as shown).
CLK input is marked with a small triangle, which denotes that the circuit
responds to an edge or transition at CLK input.
Working of the S-R flip-flop can be expressed in the form of a truth table
assuming that CLK is enabling the inputs to the flip flop:-
Sn and Rn denote the inputs
Qn the output during the bit time 'n'
Qn+1 denotes next state after CLK pulse passes, i.e. at bit time 'n + 1'
No
Change
SR Flip Flop (with Control Input)
(Detailed Working)
Following cases will be discussed in the subsequent slides to demonstrate
how the outputs of SR flip flop change with respect to its inputs:-
(a) When Control signal/CLK is not applied implying that it is LOW.
(b) When Control signal/CLK is applied – following four cases for
different values of S & R inputs are discussed in next few slides:-
(I) Case-1: When S =0, R=0
(II) Case-2: When S =0, R=1
(III) Case-3: When S =1, R=0
(IV) Case-4: When S =1, R=1
No
Change
SR Flip Flop (with Control Input)
(Detailed Working)
Operation:
1
When clock pulse is (0) not applied: the 0
No Change
flip-flop remains in its present state,
irrespective of inputs Sn & Rn, .
When the clock pulse is (1) applied, 0
following 4 cases are discussed:-
Case 1.
When Sn = Rn = 0, the output remains 0 No Change
1
unchanged, i.e., Qn+1 = Qn.
Case 2.
When Sn = 0 and Rn = 1, the output of 0
1
NAND gate 1 becomes 1; Output of NAND 0
1
gate 2 will be 0. A '0' at the input of NAND 1
gate 4 forces the output to be 1, i.e., Q' = 1.
Q' goes to the input of NAND gate 3 to
make both the inputs of NAND gate 3 as '1',
which forces the output of NAND gate 3 to 0
be '0', i.e., Q = 0. 1 1
1 0
SR Flip Flop (with Control Input)
(Detailed Working)
Case 3. 1
For Sn=1 and Rn=0 0
1
Output of NAND gate 2 → 1 and 1
Flip-flop
Flip-flop can maintain a binary state indefinitely (as long as the power
is delivered to the circuit) or until directed by an input signal to change
the state
Differences Between Flip Flops
Major differences between various types of flip-flops are
SR FF converted to JK FF
JK Flip Flop
In JK flip flop, inputs J and K are ANDed with Q' and Q respectively to
obtain the inputs for S and R respectively. Logic Symbol of JK flip flop is
shown below.
Inputs J and K behave like inputs S and R to set and reset the flip-flop
respectively.
JK flip flop makes use of all possible combinations of inputs unlike SR flip
flop in which one state cannot be used. This state is when J = K = 1, the
flip-flop operates in toggle mode.
S’
R’
JK Flip Flop
JK flip-flop implementation with AND gate
input on basic (NOR gate based) SR flip flop
is given below. Qn & Qn' outputs of the flip
flop are fed back (cross connected) as inputs
at two levels. Hence these are also treated
as inputs for generating the detailed truth
table given below.
The truth table of JK FF using basic SR FF
with ANDed inputs is given below:- Truth Table of NOR gate based SR FF
Memory S=JQ'
J
Memory
K R=KQ
Toggles
Toggles
JK Flip Flop
JK flip-flop can be implemented by providing additional input to NAND
gates based SR flip flop.
Qn & Qn' outputs of the flip flop are fed back (cross connected) as inputs at
two levels.
S’
R’
JK Flip Flop
Truth table for JK flip flop is given below:-
S’
No Change
Reset
Set
R’
Toggle State
JK Flip Flop Operation
At 'a', CLK hoes HIGH and J=0, K=1, Q resets and becomes LOW.
At 'c', CLK goes HIGH and J=1 K=1, so Q toggles to HIGH.
At 'e', CLK goes HIGH again, now J=1 & K=0, Q remains HIGH.
At 'i', CLK goes HIGH again and now J=K=1, Q toggles to LOW.
At 'k', CLK hoes HIGH and J=K=1, this makes Q to toggle to HIGH.
I
n
p
u
t
s
O
u
t
p
u
t
JK Flip Flop Operation
Example: Determine the Q output for a
negative-edge-triggered J-K flip-flop for
the input wave forms shown in the Figure.
Assume that tH = 0 and that Q = 0 initially.
FF responds only at T2, T4 , T6 and T8.
When CLK = 0, the master FF becomes disabled and the slave becomes
active. The outputs Q and Q' of slave FF follow the outputs Qm and Q'm
respectively.
The second flip-flop is referred as Slave Flip Flop as it just follows the first
J
T
K
T Flip Flop
If the inputs change at a frequency higher than the clock frequency, the output of
the flip-flop will change multiple times during the time clock is active.
This draw back can be overcome by using either master-slave configuration or
edge-triggered flip-flop.
Edge Detector
Edge Detector, shown below, produces a narrow positive going spike (CLK*) coincident
with the active transition of the CLK input pulse. Pulse-steering circuit “steers” the spike
through to the SET or the RESET input of the latch in accordance with the levels present at S
and R.
Generation of CLK* signal for triggering of FF on positive edge of clock CLK:
– The INVERTER produces a delay of a few nanoseconds so that the transitions of CLK
occur a little bit after those of CLK.
– The AND gate produces an output spike that is HIGH only for the few nanoseconds
when CLK and CLK are both HIGH.
– The result is a narrow pulse at CLK*, which occurs on the positive edge of CLK.
CLK*
Edge Detector
Generation of CLK* signal for triggering of FF on negative edge of clock CLK:
The INVERTER produces a delay of a few nanoseconds so that the transitions of
CLK occur a little bit after those of CLK.
The INVERT-AND (NOR) gate produces an output spike that is HIGH only for the
few nanoseconds when CLK and CLK are both HIGH.
The result is a narrow pulse at CLK*, which occurs on the negative edge of CLK.
CLK*
PGT –Positive Going Trigger NGT –Negative Going Trigger
Characteristic Equations of SR Flip Flop
Characteristic Equation of the S-R flip-flop is obtained from the
characteristic table with the help of the Karnaugh map for Qn+1:-
Qn+1 = S + R'Qn