Chapter6-1 Part I 12-10-2003
Chapter6-1 Part I 12-10-2003
Chapter6-1 Part I 12-10-2003
Designing
Combinational
Logic Circuits
•Static CMOS
•Pass Transistor Logic
V1.0 4/25/03, V2.0 5/4/03
V3.0 5/15/03, V4.0 12/10/03
1
EE141
Combinational Circuits
Revision Chronicle
5/2: Add some NAND8 figures (to compare NAND8
circuits) from old Weste textbook to this slide.
5/4:
Add 4 Pass-Transistor Logic Slides from Weste
textbook
Split Chapter 6 into two parts: Part I focuses on
Static and Pass Transistor Logic. Part II focuses
on Dynamic Logic
5/15: Add the Transmission Gate slides (x5)
from Steve Kang’s textbook
12/10: Major modifications on Logic Efforts
2
EE141
Combinational Circuits
Combinational vs. Sequential Logic
In Out
Combinational Combinational
In Logic Out Logic
Circuit Circuit
State
Combinational Sequential
3
EE141
Combinational Circuits
Static CMOS Circuits
•At every point in time (except during the switching
transients) each gate output is connected to either
VDD or Vss via a low-resistive path (PUN, PDN)
In1
PMOS only
In2 PUN
… (good for transfer 1)
InN
F(In1,In2,…InN)
In1
In2 PDN
…
NMOS only
InN
(good for transfer 0)
5
EE141
Combinational Circuits
Threshold Drops in NMOS and PMOS
-- Check Candidates for PUN and PDN
VDD VDD
PUN
S D
G VDD G
6
EE141
Combinational Circuits
Complementary CMOS Logic Style
7
EE141
Combinational Circuits
NMOS Transistors
in Series/Parallel Connection
Transistors can be thought as a switch controlled by its gate signal
NMOS switch closes when switch control input is high
A B
X Y Y = X if A and B
X B Y = X if A OR B
Y
A B
X Y Y = X if A AND B = A + B
X B Y = X if A OR B = AB
Y
(DeMorgan’s Law)
PDN : G = A ⋅ B ⇒ Connect to GND
PUN : F = A ⋅ B = A + B ⇒ Connnet to VDD
G ( In1, In2, In3, …) ≡ F ( In1, In2, In3, …)
10
EE141
Combinational Circuits
Example2: NOR2 Gate
VDD
B
A
C
D
F = D + A ⋅ (B + C)
A
D
B C
12
EE141
Combinational Circuits
Constructing a Complex Gate
VDD VDD
C
F SN4 A SN2
F SN1
SN2 B
A A
D D SN3
B C B C D SN1
F
13
EE141
Combinational Circuits
Static CMOS Properties
Full rail-to-rail swing: High noise margins
Logic levels not dependent upon the relative device
sizes: Ratioless
Always a path to Vdd or GND in steady state: Low
output impedance
Extremely high input resistance; nearly zero steady-
state input current (input to CMOS gate)
No steady-state direct path between power and ground:
No static power dissipation
Propagation delay function of output load capacitance
and resistance of transistors
14
EE141
Combinational Circuits
Static Properties of CMOS Gates
VGS 2 = VA − VDS1
VGS 2 = VA − VDS1 Vt of M2 > Vt of M1 VTn 2 = VTn 0 + γ ( 2φ f +V int − 2φ f )
VGS1 = VB (Body Effect)
VTn1 = VTn 0
15
EE141
Combinational Circuits
Switch Delay Model
A Req
A
NAND2
16
EE141
Combinational Circuits
Switch Delay Model
A Req
A
Rp
Rp Rp
B
A B Rp
A Rp Cint
Rn CL A
B Rn CL
A Rn Rn CL
Rn
Cint
A B
A
INV NOR2
NAND2 17
EE141
Combinational Circuits
Input Pattern Effects on Delay
Delay is dependent on the pattern
of input (Assume Rp = 2 Rn for
same size of transistors)
Rp Rp
Low-to-high transition:
A B
Both inputs go low
Rn
– Delay is 0.69 (Rp/2) CL
CL
One input goes low
B
– Delay is 0.69 (Rp) CL
Rn High-to-low transition:
Cint
A Both inputs go high (required
for NAND)
– Delay is 0.69 (2Rn)CL
18
EE141
Combinational Circuits
Transistor Sizing for Symmetric Rise/Fall Time
Assumes Rp = 2Rn at same W/L
RP RP RP
Rp Rp RP = RN Rp + = = RN
2 4 4 2
2 A B 2 4 B
Rn Rp Cint
CL 4
2 A
A
Rn Rn Rn CL
2 Cint
1
B A B 1
1.5
1 A= 0→1, B=1 50
A=1, B=1→0
0.5 A=B=1→0 35
0 A=1, B=1→0 76
0 100 200 300 400 A= 1→0, B=1 57
-0.5
time [ps]
A=1, B=1→0 (for both Cint and CL) NMOS = 0.5µm/0.25 µm
PMOS = 0.75µm/0.25 µm
A=1, B=0→1 (Consider Body effect) CL = 100 fF 20
EE141
Combinational Circuits
Transistor Sizing a Complex
CMOS Gate
B 8
RP RP RP RN
A 4 + = =
8 8 4 2
C 8
D 4 RP / 4 = RN / 2
OUT = D + A • (B + C)
A 2 RN / 2
D 1
B 2C 2 RN / 2 (wide, only one for critical case)
21
EE141
Combinational Circuits
Fan-In Considerations
4-input
NAND Gate
22
EE141
Combinational Circuits
The Elmore Delay (1st-order approximation)
R44 = R1 + R3 + R4
R4 A CL tpHL = 0.69(R1C1+(R1+R2)C2
R3 B C3 + (R1+R2+R3)C3
R2 C + (R1+R2+R3+R4)CL
C2
R1 D C1
=0.69 Reqn(C1+2C2+3C3+4CL)
= O(N^2)
Source 5VÆ 0V
750
tp (psec)
tpHL tp
500
250 tpLH (L Æ H)
0
Linear Increase in
2 4 6 8 10 12 14 16 Intrinsic Capacitance,
fan-in
Assume Only one
PMOS is ON for critical
case
25
EE141
Combinational Circuits
(tpHL, tpLH) as a Function of Fan-Out
27
EE141
Combinational Circuits
Fast Complex Gates: Design Technique 1
Transistor sizing
Increase Intrinsic parasitic cap and create CL of the
preceding stage
Progressive sizing
Distributed RC line:
InN MN CL
•M1 > M2 > M3 > … > MN
(the FET closest to the
In3 M3 C3 output is the smallest)
28
EE141
Combinational Circuits
Fast Complex Gates: Design Technique 1
29
EE141
Combinational Circuits
Fast Complex Gates: Design Technique 2
Input reordering: Put late arrival signal near the
output node.
30
EE141
Combinational Circuits
Fast Complex Gates: Design Technique 3
Logic Restructuring (A)
F =NAND8 Gate
(C) (B)
In general, C > B > A in speed 31
EE141
Combinational Circuits
Design Technique 3: Logic Restructuring
Tradeoff between Area and Speed
(and Power?), CL = 100 fF
(A) (B) 33
EE141
Combinational Circuits
Optimizing Performance in Combinational
Networks
Out
In
1 2 N CL
CIN
N
fi
Delay = t p 0 ∑ 1 + (in units of tp0)
i =1 γ
For given N: Ci +1 / Ci = Ci / Ci −1
To find N: Ci +1 / Ci ≈ 4 Æ Effective Fanout (Cap. Stage Ratio)
35
EE141
Combinational Circuits
Review of Delay Model
Delay = t p = 0.69 Req (Cint + Cext ) ( Eq. 5.27)
= 0.69 Req Cint (1 + Cext / Cint ) = t p 0 (1 + Cext / Cint )
t p 0 : Intrinsic Delay or Unloaded Delay (with Cext = 0 )
Req : Equivalent resistance of the gate
Cext fC g f
t p = t p 0 (1 + ) = t p 0 (1 + ) = t p 0 (1 + ) ( Eq.5.30)
SCiref γC g γ
A 2 A 2 B 2 B 4
F
F
A 4
A 2
A 1 F
A 1 B 1
B 2
40
EE141
Combinational Circuits
Estimated Intrinsic Delay Factor
41
EE141
Combinational Circuits
Logical Effort for Complex Gate
Cext C g⋅ f
t p = t p 0 (1 + ) = t p 0 (1 + ext ) = t p 0 p +
Cint γC g γ
= t p 0 ( p + g ⋅ f ) (Assume γ = 1)
Gate delay:
d=h+p
Effort delay Intrinsic delay
2
=
p
3;
4/
5 1
=
p=
:g
Normalized Delay
1;
ND
4 =
g
NA ter:
er
t
pu
3 v
In
in
Effort
2-
Delay
2
1
Intrinsic
Delay
1 2 3 4 5
Fanout f
44
EE141
Combinational Circuits
Logical Effort of Gates (II)
t pNAND
Normalized delay (d) g = 4/3 t pINV
p=2
d = (4/3)f+2
g=1
p=1
d = f+1
F(Fan-in)
1 2 3 4 5 6 7
Fan-out (f)
45
EE141
Combinational Circuits
Add Branching Effort
On-path
Off-path
46
EE141
Combinational Circuits
Multi-stage Logic Networks
N
gi ⋅ fi N
Delay = t p = t p 0 ∑ pi + = t p 0 ∑ ( pi + g i ⋅ f i )
i =1 γ i =1
(assume γ = 1)
fi N ∏f i
48
EE141
Combinational Circuits
Optimal Number of Stages
For a given loading capacitance and and given input
capacitance of the first gate
Î Find optimal number of stages and optimal sizing
D = N ( H 1/ N ) + P ≈ NH 1/ N + Npinv
∂D
∂N
[ ( )]
= H 1/ N 1 − ln H 1/ N + pinv = 0
Cin = C g1 = s1 × g1 × Cref
b1 × s2 × g 2 × Cref f1 s2 × g 2 × Cref
f1 = ⇒ =
s1 × g1 × Cref b1 s1 × g1 × Cref
s1 × g1 i −1 f j
si = ( )∏ ( ) Î Sizing for each stage
gi j =1 b j
50
EE141
Combinational Circuits
Example 6.6: Optimize Path (I)
F=Cout/Cin
Cin s1 s3 s4
s2
Cout F= 5
g1 = 1 g2 = 5/3 g3 = 5/3 g4 = 1
5 5 25
Effective fanout, F = 5, G = 1× × × 1 =
3 3 9
H = GF=125/9 = 13.9, B =1
h = 1.93 (optimal stage effort) = 4 H
hˆ = fˆ ⋅ gˆ = 1.93 ⇒
f1 = 1.93 / g1 = 1.93, f 2 = 1.93 / g 2 = 1.16,
f 3 = 1.93 / g 3 = 1.16, f 4 = 1.93 / g 4 = 1.93.
51
EE141
Combinational Circuits
Example 6.6: Optimize Path (II)
F = 5 = Cout/Cin
Cin s1 s3 s4
s2
Cout
g1 = 1 g2 = 5/3 g3 = 5/3 g4 = 1
f 1= 1.93 f2 = 1.16 f3 = 1.16 f4 = 1.93
S1 =1 S2 =? S3=? S4 = ?
b2 s3 g 3 f 2 s2 g 2 1.16 × 1.15 × (5 / 3)
f 2 = 1.16 = ⇒ s3 = = = 1.33
s2 g 2 b2 g 3 1× (5 / 3)
b3 s4 g 4 f 3 s3 g 3 1.16 × 1.33 × (5 / 3)
f 3 = 1.16 = ⇒ s4 = = = 2.57
s3 g 3 b3 g 4 1× 1
52
EE141
Combinational Circuits
Method of Logical Effort
53
EE141
Combinational Circuits
Summary of Logic Effort
“Logic Effort,” by
Sutherland,
Sproull
Harris, 1999
54
EE141
Combinational Circuits
Pass-Transistor
Logic
55
EE141
Combinational Circuits
Pass-Transistor Logic
Vdd
B
Switch Out A
Out
Inputs
Network B
B
Vss
•N Transistors
•Considered as Static CMOS circuits: output
changes only when inputs change
56
EE141
Combinational Circuits
Pass Transistor Logic Basics
Logic Function:
F = ∑ PiVi
i
Pi = Control Signals
V i = Pass Signals ∈ {0 ,1 , X i , − X i , Z }
Z : High Impedance
B
Example: AND Gate
A
B
A, B: A is Input signal, B F = AB + 0B = AB
is the Control Signal
0
57
EE141
Combinational Circuits
Example: Design of XNOR2
(b) Pass-network
Karnaugh map
F = − A ⋅ (− B) + A ⋅ ( B)
58
EE141
Combinational Circuits
Example: Implementation of XNOR2
•Implement:
60
EE141
Combinational Circuits
Disadvantage of NMOS-Only Logic
3.0
In
In
1.5µ m/0.25 µm Out
2.0
Voltage [V]
VD D x x
Out
0.5 µ m/0.25µ m
0.5µ m/0.25 µm 1.0
0.0
0 0.5 1 1.5 2
Time [ns]
Suffer from
•Vt degradation (Vx = Vdd- Vt(x))
•Body effect (Vsb ≠ 0 , Vx has value and threshold voltage
Vt(x) is bigger than Vt(0))
61
EE141
Combinational Circuits
NMOS-only Switch
C = 2.5V C = 2.5 V
M2
A = 2.5 V A = 2.5 V B
Mn
B
CL M1
3.0
•Ratio problem among (Mr
and Mn)
2.0
W/Lr =1.75/0.25
Voltage [V]
W/L r =1.50/0.25
•Can be analyzed using
open circuit Æ Like an
1.0
Inverter circuit composed of
W/Lr =1.0/0.25 W/L r =1.25/0.25 Mr and Mn
0.0
0 100 200 300 400 500
Time [ps] •Adding upper limit on the
size of Restorer Transistor
(Mr)
64
EE141
Combinational Circuits
Solution 2: Complementary/Differential
Pass Transistor Logic (CPL/DPL)
65
EE141
Combinational Circuits
DCVSL (p.267)
VDD VDD
1 -> 0 M1 M2 0 -> 1
Out Out
A
A PDN1 PDN2
B
B
VSS VSS
66
EE141
Combinational Circuits
NAND4 Gate Using CPL
67
EE141
Combinational Circuits
Swing-restored Pass-transistor Logic
A B A B
C
C
C = 2.5 V
A = 2.5 V
B
CL
C=0V
70
EE141
Combinational Circuits
Analysis of TG (Transmission Gate)
G VDS ,n = VDD − Vout
NMOS:
VGS ,n = VDD − Vout
S D
(Initial =0V) PMOS: VDS , p = Vout − VDD
D S
VGS , p = −VDD
G
I D = I DS ,n + I SD , p
VDD − Vout
Req ,n =
I DS ,n
VDD − Vout
Req , p =
I SD , p
Req ,TG = Req ,n || Req , p
71
EE141
Combinational Circuits
Analysis of TG (I)
72
EE141
Combinational Circuits
Analysis of TG (II)
73
EE141
Combinational Circuits
Resistance of Transmission Gate
74
EE141
Combinational Circuits
Application1: Inverting 2-to-1 Multiplexer
VDD
S
A
M2 S S
VDD
S F
M1
B F
GND
F = ( S ⋅ A + S ⋅ B) A S S B
75
EE141
Combinational Circuits
Application2: 6-T(ransistor) XOR Gate
Truth Table F = A⊕ B
B
B A F
0 0 A 0 M2
B
0 1 A 1 A
A
1 0 A 1 F
M1 M3/M4
1 1 A 0 B
B
B=0: Pass A Signal
6T includes
B=1: Inverting A Signal
the inverter of B
76
EE141
Combinational Circuits
Application3: Transmission Gate Full Adder
(to be discussed in Chapter 11)
P = A⊕ B P
VDD
P = A⊕ B
VDD Ci
A S = P ⊕ Ci = A ⊕ B ⊕ Ci
P S Sum Generation
A A P Ci
A P VDD
B B
VDD A
P
P Co Carry Generation
Ci Ci Ci COut = P ⋅ Ci + P ⋅ A
A
Setup P
C C C C C
0 0 0 0
(a)
C C C C C
(b)
m
(c)
78
EE141
Combinational Circuits
Delay of Transmission gate Network
79
EE141
Combinational Circuits
Delay Optimization
Buffer can be
80
EE141
Combinational Circuits
Summary
Fan-in and Fan-out of gates play an important
role in CMOS circuit speed.
Concept of Logic Efforts can generalize the
invert chain design to complex gate chain
design.
Pass Transistor Logic leads low-power, low-
footprint designs, but it should be used with
special care.
81
EE141
Combinational Circuits