Professional Documents
Culture Documents
Sequential Circuits
1
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Acknowledgement
Slides taken from
http://bwrc.eecs.berkeley.edu/IcBook/index.htm
which is the web-site of “Digital Integrated Circuit – A Design
Perspective” by Rabaey, Chandrakasan, Nicolic
2
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Outline
Background and naming conventions
Timing constraints and stability issues
MUX based latch and registers
Cross-coupled pair
Implementations
Pseudo-static, C2MOS, TSPC, …
Pipelining
Schmitt Trigger and Multivibrators
3
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Sequential Logic
Inputs Outputs
COMBINATIONAL
LOGIC
Current State
Next state
Registers
Q D
CLK
2 storage mechanisms
• positive feedback
• charge-based
4
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Naming Conventions
Rabaey’s Convention
a latch is level sensitive
a register is edge-triggered
There are many different naming
conventions
For instance, many books call edge-
triggered elements flip-flops
This leads to confusion however
5
IEP on Synthesis of Digital Design 2007 Sequential Circuits
D Q D Q
Clk Clk
Clk Clk
D D
Q Q
6
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Latches
7
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Latch-Based Design
• N latch is transparent • P latch is transparent
when f = 0 when f = 1
f
N P
Logic
Latch Latch
Logic
8
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Timing Definitions
CLK
t Register
tsu thold D Q
D DATA CLK
STABLE t
tc 2 q
Q DATA
STABLE t
9
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Characterizing Timing
tD 2 Q
D Q D Q
Clk Clk
tC 2 Q tC 2 Q
Register Latch
10
IEP on Synthesis of Digital Design 2007 Sequential Circuits
FF’s
LOGIC
tp,comb
Also:
tcdreg + tcdlogic > thold
tclk-Q + tp,comb + tsetup = T
tcd: contamination delay
= minimum delay
11
IEP on Synthesis of Digital Design 2007 Sequential Circuits
V o1 Vi2
1
o 1
o
V V
52
Vi
V i1 V o2
A
V i 2 = V o1
1
Vo
52 C
Vi
B
V i 1 = V o2
12
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Meta-Stability
13
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Q D D
CLK
CLK
D
CLK
Forcing the state
Converting into a MUX (can implement as NMOS-only)
14
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Mux-Based Latches
Negative latch Positive latch
(transparent when CLK= 0) (transparent when CLK= 1)
Q 0 Q
1
D 0 D 1
CLK CLK
Mux-Based Latch
CLK
CLK
CLK
16
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Mux-Based Latch
CLK
QM
CLK
QM
CLK
CLK
Master-Slave (Edge-Triggered)
Register
18
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Master-Slave Register
Multiplexer-based latch pair
I2 T2 I3 I5 T4 I6 Q
QM
D I1 T1 I4 T3
CLK
19
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Clk-Q Delay
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
20
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Setup Time
21
IEP on Synthesis of Digital Design 2007 Sequential Circuits
CLK CLK
D T1 I1 T2 I3 Q
I2 I4
CLK CLK
22
IEP on Synthesis of Digital Design 2007 Sequential Circuits
CLK CLK
(a) Schematic diagram
CLK
CLK
(b) Overlapping clock pairs
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
24
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Cross-Coupled NAND
Added clock
Cross-coupled NANDs VDD
S M2 M4
Q
Q
Q
Q CLK M6 M8 CLK
R M1 M3
S M5 M7 R
Sizing Issues
2.0 3
Q S
1.5
2 W = 0.5 m m
Q (Volts)
W = 0.6 m m
Volts
1.0
W = 0.7 m m
1
0.5 W = 0.8 m m
W = 0.9 m m
W = 1m m
0.0 0
2.0 2.5 3.0 3.5 4.0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
W/L 5 and 6 time (ns)
(a) (b)
Storage Mechanisms
Static Dynamic (charge-based)
CLK
CLK
D Q
Q
CLK
CLK
D
CLK
27
IEP on Synthesis of Digital Design 2007 Sequential Circuits
CLK
D D
CLK
28
IEP on Synthesis of Digital Design 2007 Sequential Circuits
M2 M6
CLK M4 CLK M8
X
D Q
CL1 CL2
CLK M3 CLK M7
M1 M5
Insensitive to Clock-Overlap
VDD VDD VDD VDD
M2 M6 M2 M6
0 M4 0 M8
X X
D Q D Q
1 M3 1 M7
M1 M5 M1 M5
Out
Out
In1 In2
PUN
Q Q
PDN In1
In2
32
IEP on Synthesis of Digital Design 2007 Sequential Circuits
TSPC Register
VDD VDD VDD
CLK Q
M3 M6 M9
Y
Q
D CLK X CLK
M2 M5 M8
CLK
M1 M4 M7
33
Sequential Circuits
Pulse-Triggered Latches
IEP on Synthesis of Digital Design 2007
An Alternative Approach
Ways to design an edge-triggered sequential cell:
Master-Slave Pulse-Triggered
Latches Latch
L1 L2 L
Data Data
D Q D Q D Q
34
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Pulsed Latches
VDD VDD
M3 M6 VDD
CLK
Q
D CLKG CLKG MP CLKG
M2 M5
X
MN
M1 M4
CLK
CLKG
Pulsed Latches
Hybrid Latch – Flip-flop (HLFF), AMD K-6 and K-7 :
CLK P1 P3
x Q
M6
M3
D P2 M5
M2
M4
M1 CLKD
36
IEP on Synthesis of Digital Design 2007 Sequential Circuits
37
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Pipelining
REG
REG
a a
REG
REG
REG
REG
log Out CLK log Out
CLK
REG
REG
CLK CLK
Reference Pipelined
38
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Latch-Based Pipeline
39
IEP on Synthesis of Digital Design 2007 Sequential Circuits
VM– VM+ Vi n
40
IEP on Synthesis of Digital Design 2007 Sequential Circuits
41
IEP on Synthesis of Digital Design 2007 Sequential Circuits
M2 M4
Vin X Vout
M1 M3
2.5 2.5
2.0 2.0
(V)
X1.0 VM2 (V)
x1.0
k=1
V V k=3
k=2
0.5 0.5
k=4
0.0 0.0
0.0 0.5 1.0 1.5 2.0 2.5 0.0 0.5 1.0 1.5 2.0 2.5
Vin (V) Vin (V)
Voltage-transfer characteristics with hysteresis. The effect of varying the ratio of the
PMOS device M4. The width is k* 0.5m m.
43
IEP on Synthesis of Digital Design 2007 Sequential Circuits
M4
M6
M3
In Out
M2
X M5
VDD
M1
44
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Multivibrator Circuits
R
S
Bistable Multivibrator
flip-flop, Schmitt Trigger
T
Monostable Multivibrator
one-shot
Astable Multivibrator
oscillator
45
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Transition-Triggered Monostable
In
DELAY
Out
td td
46
IEP on Synthesis of Digital Design 2007 Sequential Circuits
Ring Oscillator
47
IEP on Synthesis of Digital Design 2007 Sequential Circuits
V o2 V o1 v3
v1
in 1 in 2
v2
v
4
V ctrl
2.0
1.5
1.0
0.5
0.0
2 0.5
0.5 1.5 2.5 3.5
time (ns)
48