Lecture 6
Lecture 6
Circuits
A Design Perspective
Jan M. Rabaey
Anantha Chandrakasan
Borivoje Nikolic
Designing Sequential
Logic Circuits
November 2002
© Digital Integrated Circuits2nd
Sequential Circuits
Sequential Logic
Inputs Outputs
COMBINATIONAL
LOGIC
Current State
Next state
Registers
Q D
CLK
2 storage mechanisms
• positive feedback
• charge-based
D Q D Q
Clk Clk
Clk Clk
D D
Q Q
In D Q Out In D Q Out
G G
CLK CLK
clk clk
In In
Out Out
N P
Logic
Latch Latch
Logic
CLK
t Register
tsu t hold D Q
D DATA CLK
STABLE t
tc 2 q
Q DATA
STABLE t
tD 2 Q
D Q D Q
Clk Clk
tC 2 Q tC 2 Q
Register Latch
FF’s
LOGIC Also:
tcdreg + tcdlogic > thold
tp,comb
tcd: contamination delay =
minimum delay
tclk-Q + tp,comb + tsetup = T
Vi2 5 Vo1
C C
B B
Vi1 5 Vo2 Vi1 5 Vo2
d d
Gain should be larger than 1 in the transition region
Only A and B are stable, C is meta-stable
© Digital Integrated Circuits2nd
Sequential Circuits
Mux-Based Latches (now you see why
comb feedback is prohibited!!)
Negative latch Positive latch
(transparent when CLK= 0) (transparent when CLK= 1)
Q 0 Q
1
D 0 D 1
CLK CLK
Q D D
CLK
CLK
D
CLK
Forcing the state
Converting into a MUX (can implement as NMOS-only)
CLK
CLK
CLK
QM
CLK
QM
CLK
CLK
F=a+bc+d
0 Q D
1 QM
1
QM
D 0 Q
CLK
CLK
I2 T2 I3 I5 T4 I6 Q
QM
D I1 T1 I4 T3
CLK
2.5
CLK
1.5
Volts
D
tc 2 q(lh) tc 2 q(hl)
Q
0.5
2 0.5
0 0.5 1 1.5 2 2.5
time, nsec
2.0 QM 2.0 I2 2 T 2
1.5 1.5 Q
CLK CLK
Volts
Volts
D D
1.0 1.0
I2 2 T 2 QM
0.5 0.5
0.0 0.0
2 0.5 2 0.5
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
time (nsec) time (nsec)
(a) T setup 5 0.21 nsec (b) T setup 5 0.20 nsec
CLK CLK
D T1 I1 T2 I3 Q
I2 I4
CLK CLK
S R Q Q
S
Q
S Q 0 0 Q Q
1 0 1 0
R Q
0 1 0 1
Q
R 1 1 0 0
Forbidden State
Cross-coupled NANDs
S
Q
Q
R
CLK
CLK
D Q
Q
CLK
CLK
D
CLK
M2 M6 A C2MOS register
with CLK-CLK
CLK M4 CLK M8
X
clocking is
D Q insensitive to
CL1 CL2
CLK M3 CLK M7 overlap as
compared to TXR-
M1 M5 switch FF, as long
as the rise and
fall times of the
Master Stage
clock edges are
sufficiently small.
© Digital Integrated Circuits2nd
Sequential Circuits
Other Latches/Registers: TSPC
VDD VDD VDD VDD
Out
Master-Slave Pulse-Triggered
Latches Latch
L1 L2 L
Data Data
D Q D Q D Q
In
DELAY
Out
td td