Professional Documents
Culture Documents
Sequential Circuits: Combinational Circuit Outputs Inputs
Sequential Circuits: Combinational Circuit Outputs Inputs
Clock
a periodic external event (input)
Clock
Comparision b/w combinational & sequential
logic circuits.
combinational sequential
The output variables are at all times The output variables dependent not
dependent on the combination of only on present input variables but
input variables also depend upon the past
information
Memory unit is not required Memory unit is required to store the
past information
Faster in speed , because the delay Slower than the combinational
b/w input & output is due to circuits
propagation delay of logic gates
These are easy to design These circuits are comparatively
harder to design
It does not have a clock signal It may or may not have a clock
signal . Most sequential circuits
have a clock signal
Eg: Adders , subtractors , MUX, Eg: flip-flops ,counters , shift
DEMUX registers
Classification of sequential logic circuits
(depending on timing of their signals)
Synchronous Asynchronous
The change in input signal can The change in input signal can
effect memory element upon effect memory element at any
activation of clock signal instant of time.
10
0
0
1 N2 Q
S
b) S = 0, R = 1: then Q = 0 and Q = 1 1 00
R
N1 Q
1
1
0
0
11
0 N2 Q
S
SR Latch Analysis
c) S = 0, R = 0: then Q = Qprev and Q = Qprev We got Memory!
Qprev = 0 Qprev = 1
0 00 0 11
R R
N1 Q N1 Q
11 00
00 11
11 00
0 N2 Q 0 N2 Q
S S
d) S = 1, R = 1:
then Q = 0 and Q = 0 Invalid state: Q NOT Q
1 00
R
N1 Q
00
00
00
1 N2 Q
S
TRUTH TABLE
INPUTS Present Next state STATE
state
S R Qn Qn+1 Qn+1
0 0 0 0 1 NO
CHANGE
1 1 0
0 1 0 0 1
RESET
1 0 1
1 0 0 1 0
SET
1 1 0
1 1 0 0 0 INDETER
MINATE
1 0 0
S-R Latch with NANDs(ACTIVE LOW):
S
Q
S R Q Q
0 0 1 1 Disallowed
0 1 1 0 Set
1 0 0 1 Reset
Q
R 1 1 0 1 Store
1 0
B) S=1, R=0
RESET
C) S=1, R=1 (NO CHANGE)
0 0 0 1 1 INDETER
MINATE
1 1 1
0 1 0 1 0
SET
1 1 0
1 0 0 0 1
RESET
1 0 1
1 1 0 0 1 NO
CHANGE
1 1 0
S-R Latches
S-R Latch with NANDs(ACTIVE HIGH):
S R S R Q Q STATE
0 0 1 1 Q Q NO
CHANGE
0 1 1 0 0 1 RESET
1 0 0 1 1 0 SET
1 1 0 0 1 1 INDETER
MINATE
S-R Latch with control input
B) S=0, R=1 (RESET)
C) S=1, R=0 (SET)
D) S=1, R=1 (PROHIBITED)
Triggering in flipflops
Level triggering (in latches)
Positive level triggering
Negative level triggering
Flipflops:
Pulse triggering (+ve & -ve)
Edge triggering (+ve & -ve)
D Q D Q
CK CK
D Q
D Q
CK
CK
Until
On
Onthe
this
thisclock
negative
negative
changes
edge
edgefrom
S=R=0:
S=11and
to No
0R=0:
it Change
is NOT
SET asserted.
Mode.
Mode.
Thus
ThusQQsetsholds
to at
1. Thus
0.
NoNoanalysis
Qanalysis
holds
is at
required
is 0.
requireduntil
until
thenext
next
S Q negative edge.
>Clk
R Q
CHARACTERISTIC TABLE
S R Qn+1
SR
S 0 0 Qn
00 01 11 10
Q( t ) 0 1 0
0 0 0 X 1
1 0 1
1 1 0 X 1 1 1 ?
R EXCITATION/APPLICATION TABLE
Q+ = S + R Q 0 0 0 X
0 1 1 0
1 0 0 1
1 1 X 0
D-Latch
C D Q
0 x No change
1 0 0
1 1 1
clock
D
3
1 Q
CP Q
2
4
5
TRUTH TABLE EXCITATION/APPLICATION
TABLE
0 0 0
0 X X Qn no
change
0 1 1
1 0 0
1 0 0 0
RESET 1 1 1
1 1 0
CHARACTERISTIC TABLE
1 1 0 1
SET
D Qn+1
1 1 1
0 0
D
Q 0 1
1 1
0 0 1
1 0 1
Q+ = D
Clocked J-K Flip Flop
TRUTH TABLE
0 X X X Qn Qn no
change
1 0 0 0 0 1 no
change
1 1 1 0
1 0 1 0 0 1
RESET
1 1 0 1
1 1 0 0 1 0
SET
1 1 1 0
1 1 1 0 1 0 TOGGLE
STATE
1 1 0 1
CHARACTERISTIC TABLE
J K Qn+1
0 0 Qn
JK J 0 1 0
00 01 11 10 1 0 1
Q
1 1 Qn
0 0 0 1 1
1 1 0 0 1 EXCITATION/APPLICATION TABLE
K
Qn Qn+1 J K
Q+ = D = JQ + KQ
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
Clocked J-K Flip Flop
Characteristic Table
J-K Latch: Race Condition
J
K
Q
\Q
CLOCK J K Qn Qm Qs
0 0 0 0 NC
0 NC 0
1 1 NC
1 NC 1
0 1 0 0 NC
0 NC 0
1 0 NC
1 NC 0
CLOCK J K Qn Qm Qs
1 0 0 1 NC
0 NC 1
1 1 NC
1 NC 1
1 1 0 1 NC
0 NC 1
1 0 NC
1 NC 0
Timing diagram for master-slave JK FLIPFLOP
Timing diagram for master-slave JK LATCH
Timing diagram for a master-slave SR flip-flop
Timing diagram for a master-slave SR LATCH
Clocked T- Flip Flop
Toggle Flip-Flops
J Q Q
T
K Q Q
clk
Q
TRUTH TABLE
CHARACTERISTIC TABLE
EXCITATION/APPLICATION TABLE
Qn Qn+1 T
T Qn+1
0 0 0
0 Qn
1 Qn 0 1 1
1 0 1
Q(t+1) = TQ(t) + TQ(t)
1 1 0
= T Q(t)
Asynchronous Inputs
J, K are synchronous inputs
o Effects on the output are synchronized with the CLK input.
Asynchronous inputs operate independently of the synchronous
inputs and clock
o Set the FF to 1/0 states at any time.
Asynchronous Inputs
Master-Slave Edge-Triggered Flip-Flop
CLK
QM
Q
Alternative Edge-Triggered Flip-
Flop VDD VDD
Q CLK CLK
D Q
CLK
CLK CLK
Q
GND GND
D
24 Transistors 8 Transistors
Flip-flop timings
1)Setup time: It is the minimum time for which the control levels
need to be maintained constant on the input terminals of the flip-
flop, prior to the arrival of the triggering edge of the clock pulse, in
order to enable the flip-flop to respond reliably.
2)Hold time: It is the minimum time for which the control levels
need to be maintained constant on the input terminals of the flip-
flop, after the arrival of the triggering edge of the clock pulse, in
order to enable the flip-flop to respond reliably.
setup hold
time time
Clk
23/13ns 40/25ns
S=D
R=D
2)SR-FLIPFLOP TO JK-FLIPFLOP:
J K Qn Qn+1 S R
0 0 0 0 0 x
1 1 x 0
0 1 0 0 0 x
1 0 0 1
1 0 0 1 1 0
1 1 x 0
1 1 0 1 1 0
1 0 0 1
R Q Q
K
R = K + Qn
J S Q Q S = J + Qn
clk
3)D flipflop to JK Flip-Flop
J K Qn Qn+1 D
0 0 0 0 0
1 1 1
0 1 0 0 0
1 0 0
1 0 0 1 1
1 1 1
1 1 0 1 1
1 0 0
D = K Qn + J Qn
D flipflop to JK Flip-Flop
Q
D
K
Latch
Q
CLK
4)Toggle Flip-Flop from D-flipflop
T Qn Qn+1 D
0 0 0 0
1 1 1 D = T Q(t)
1 0 1 1
1 0 0