Unit 4
Unit 4
2
Synchronous Clocked Sequential Circuit
3
a, Flip-flop always have a clock
Latches doesn’t have a clock signal
signal
Flip-flop can be build from Latches Latches can be build from gates
Latches --SR Latch
The SR latch is a circuit with two cross-coupled NOR gates or
two cross-coupled NAND gates. It has two inputs labeled S
for set and R for reset.
5
SR Latch with NAND Gates
6
SR Latch with Control Input
7
D Latch
1
0
Graphic Symbols for latches
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 designates the complement
output.
1
2
Flip-Flops
1
3
Clock Response in Latch
1
4
Clock Response in Flip-Flop
1
5
S-R Flip Flop
• The SET-RESET flip flop is designed with the help of two NOR gates and
also two NAND gates. These flip flops are also called S-R Latch.
• S-R Flip Flop using NOR Gate The design of such a flip flop includes two
inputs, called the SET [S] and RESET [R].
• There are also two outputs, Q and Q’.
• From the diagram it is evident that the flip flop has mainly four
states. They are S=1, R=0—Q=1, Q’=0 This state is also called the SET
state.
• S=0, R=1—Q=0, Q’=1 This state is known as the RESET state. In both
the states you can see that the outputs are just compliments of each
other and that the value of Q follows the value of S.
• S=0, R=0—Q & Q’ = Remember If both the values of S and R are
switched to 0, then the circuit remembers the value of S and R in
their previous state.
• S=1, R=1—Q=0, Q’=0 [Invalid] This is an invalid state because the
values of both Q and Q’ are 0. They are supposed to be compliments
of each other. Normally, this state must be avoided.
S-R Flip Flop using NAND Gate
• Like the NOR Gate S-R flip flop, this one also has four states. They are S=1,
R=0—Q=0, Q’=1 This state is also called the SET state.
• S=0, R=1—Q=1, Q’=0 This state is known as the RESET state. In both the
states you can see that the outputs are just compliments of each other and
that the value of Q follows the compliment value of S.
• S=0, R=0—Q=1, & Q’ =1 [Invalid] If both the values of S and R are switched
to 0 it is an invalid state because the values of both Q and Q’ are 1. They
are supposed to be compliments of each other. Normally, this state must
be avoided.
• S=1, R=1—Q & Q’= Remember If both the values of S and R are switched to
1, then the circuit remembers the value of S and R in their previous state.
Gated SR Latch
• The basic latch changes its state when the input
signals change
S
Q
Clk
Q
R
S
Q
Clk
Q
R
• This is a much simpler version of the J-K flip flop. Both the J and K inputs
are connected together and thus are also called a single input J-K flip flop.
• When clock pulse is given to the flip flop, the output begins to toggle.
Here also the restriction on the pulse width can be eliminated with a
masterslave or edge-triggered construction.
Flip-Flop Solution
• Formed by
adding inverter
to clock input
• Q changes to the value on D applied at the positive clock edge within timing constraints to be
specified
• Our choice as the standard flip-flop for most sequential circuits
54
Edge-Triggered FF Operation
55
Edge-Triggered FF Operation
56
Edge-Triggered FF Operation
57
Edge-Triggered FF Operation
58
RS FLIP FLOP JK FLIP FLOP
Truth Table Excitation Table Truth Table Excitation Table
S R Qn+1 Qn Qn+1 S R J K Qn+1 Qn Qn+1 J K
0 0 Qn 0 0 0 X 0 0 Qn 0 0 0 X
0 1 0 0 1 1 0 0 1 0 0 1 1 X
1 0 1 1 0 0 1 1 0 1 1 0 X 1
1 1 X 1 1 X 0 1 1 Qn’ 1 1 X 0
D FLIP FLOP
D Qn Qn+1 Qn Qn+1 D
0 0 0 0 0 0
0 1 0 0 1 1
1 0 1 1 0 0
1 1 1 1 1 1
T FLIP FLOP
Truth Table Excitation Table
T Qn Qn+1 Qn Qn+1 T
0 0 0 0 0 0
0 1 1 0 1 1
1 0 1 1 0 1
1 1 0 1 1 0
• A sequential circuit has one input and one output. The
state diagram is shown in figure. Design the sequential
circuit with a) D-FF b) T-FF c) RS-FF d) JK-FF
• a) T-FF
• A sequential circuit has one input and one
output. The state diagram is shown in figure.
Design the sequential circuit with a) D-FF b) T-FF
c) RS-FF d) JK-FF
• a) RS-FF
• A sequential circuit has one input and one
output. The state diagram is shown in figure.
Design the sequential circuit with a) D-FF b) T-
FF c) RS-FF d) JK-FF
• a) JK-FF
• The unused states are taken as don’t cares
ANALYSIS PROBLEMS
• Construct the transition table, state table, state diagram for
the Moore sequential circuit given
• Construct the transition table, state table, state diagram for the sequential
circuit given
Comparisons
Definitions:
State Table:
The relationship that exists among the inputs, outputs, present states and next states can be
specified by either the state table or the state diagram
Transition Table:
Transition table is table of states and transition, useful to analyze an asynchronous circuit from
the circuit diagram
Flow Table:
In a flow table the states are named by letter symbols