Beruflich Dokumente
Kultur Dokumente
ECE 344
Fall 2018
Topic 2
CMOS Inverter
Sameh A. Ibrahim
Ain Shams University
ICL
(Courtesy of H. F. Ragai, Ain Shams University,
J. M. Rabaey, UC Berkeley, A. Chandrakasan, MIT
& B. NiKolic, UC Berkeley )
Outline
CMOS Inverter
2
The Ideal Inverter
Transfer Function
Gain = 0
Switching waveforms
Gain = ∞
Gain = 0
CMOS Inverter
3
Noise in Digital Circuits
CMOS Inverter
4
The Real Inverter Transfer Function
VOH
NML
❑ VM = gate threshold voltage (mid-swing)
❑ Noise margins = NML and NMH
Regenerative
NMH
VSS = 0 V =
VDD =
VSS = 0 V =
CMOS Inverter
6
The CMOS Inverter
N Well VDD
VDD PMOS 2l
Contacts
PMOS
In Out
In Out
Metal 1
Polysilicon
NMOS
NMOS
GND
CMOS Inverter
7
CMOS Inverter Static Operation (1)
+ +
0 pull-up
VDD
to VDD
_ _
+ +
pull-down
to GND 0
VDD _
_
Notice:
Transistor threshold = Vtn or Vtp
Inverter threshold = VM
Normally VM = VDD/2 for symmetric NMs
CMOS Inverter
9
CMOS Inverter Static Operation (3)
ON OFF
LIN SAT
SAT SAT
CMOS Inverter
10
CMOS Inverter Static Operation (4)
Region 1: vI<Vtn
ON OFF
vO = VDD
CMOS Inverter
11
CMOS Inverter Static Operation (5)
SAT SAT
vO = 0
CMOS Inverter
12
CMOS Inverter Static Operation (6)
Region 3: vI ≈VM
ON OFF
LIN SAT
SAT SAT
To get an expression
for VM, equate
the PMOS sat current
to the NMOS sat current
CMOS Inverter
13
CMOS Inverter Static Operation (7)
Region 3: vI ≈VM
2 2
k p (VDD − vI − Vtp ) = k n (vI − Vtn )
where k p ,n = k p ,n ' (W / L) p ,n
vI = VM
VDD
One gets VM =
2
iff k p = kn
and Vtn = Vtp
CMOS Inverter
14
CMOS Inverter Static Operation (8)
CMOS Inverter
15
CMOS Inverter Static Operation (9)
Region 2: VM>vI>Vtn
ON OFF
LIN SAT
To get an expression
for vO vs. vI, equate
the PMOS linear current
to the NMOS sat current
CMOS Inverter
16
CMOS Inverter Static Operation (10)
SAT SAT
⚫ Parasitic capacitances
G G
CG
S D S D
CS RON CD
Ideal switch One possible model of the
MOS transistor as a switch
CMOS Inverter
18
MOS ON Resistance
600
• The switch ON resistance RON ≠ 0
500 • RON is a non-linear resistor
• it changes with VDS
400
Ids (mA) • region of MOS operation matters
300
• Suppose switch turns ON suddenly
200 • i.e. VGS jumps from 0 to VDD
• RON varies (as slope–1 of the red curve)
100
• A simple estimate of average RON
0
0 0.5 1 1.5 2 2.5 • RON ≈ slope–1 of blue line
Vds
Vo=2.5 G 𝑉𝐷𝑆 𝐿
𝑅𝑂𝑁 = = 𝑅□
𝐼𝐷𝑆 𝑊
S D
The R□ of a MOSFET is inversely
proportional to the gate overdrive, VGS -VT
CMOS Inverter
19
RON During Transition
CMOS Inverter
20
MOS Capacitance
C4 Source Drain C4
C5
C3 C3
CMOS Inverter
21
Gate Capacitance
CMOS Inverter
22
Self-Loading Capacitance
• Cj_sidewall = (W+2Ldiff)*CJSW(VS/D) W
CJ = CO /(1 + VRB / VO ) M
• Note that CJ and CJSW are
Where CO, VO, and M are
– layout dependent
junction dependent constants
– voltage dependent
Can also be simplified as
– Ldiff is typically 5l (unshared and
Cjunction = CD,S * W
contacted)
CMOS Inverter
23
CMOS Inverter: Transient Response
VDD VDD
VDD
Rp tpHLtpHL
= f(R=on
f(R
.Con .C )
L) L
= 0.69
= 0.69 RonR CLon CL
Vout
Vout
Vout
CL Vout ln(0.5)
C
C L
L
Ron Rn 1 VDD
0.5
0.36
Vin = V DD
(a) Low-to-high (b) High-to-low
t
RonCL
CMOS Inverter
24
CMOS Inverter: Propagation Delay
2.5
?
2
tp = 0.69 CL (Rn+Rp)/2
1.5
Vout(V)
tpHL tpLH
1
3 𝑉𝐷𝐷
0.5
𝑅𝑒𝑞 ≅ (neglecting
4 𝐼𝐷𝑆𝐴𝑇
0 channel length mod.)
-0.5
0 0.5 1 1.5 2 2.5
t (sec) x 10
-10
CMOS Inverter
25
Choosing Wp/Wn Ratio
⚫ For symmetric inverter VM = VDD/2 and tPHL = tPLH, β
=Wp/Wn should be equal to r=µn/µp=Reqp/Reqn.
⚫ However, this does not guarantee minimum delay.
⚫ tPLH decreases with β whereas tPHL increases with β.
CMOS Inverter
26
Power Consumption
• Static (leakage) (low for low transistor count and perfected technology)
• Dynamic (to charge and discharge CL at a certain frequency : appreciable)
• Short-Circuit (when both PMOS and NMOS are ON : reduced in fast transitions)
CMOS Inverter
27
Static Power
Gate-leakage current
sub-threshold current
CMOS Inverter
28
Dynamic Power
During
output
transition
During
input
transition
CMOS Inverter
30
Power-Delay & Energy-Delay Product
⚫ Used as quality measure of logic gates.
CMOS Inverter
31
Outline
CMOS Inverter
32
Inverter with Load
Delay
Req
CL
Req Load (CL)
tp = k ReqCL
CMOS Inverter
33
Layout-Aware Inverter with Load (1)
2W
W
Cint CL
External loading cap
CMOS Inverter
34
Layout-Aware Inverter with Load (2)
Delay
2W
W
Cint CL kREQCint
Load
CMOS Inverter
35
Cg vs. Cint
2W
Cint Cg = Cg
Cg
W
Cint CL tpo CL
Load
Cgn
CMOS Inverter
36
Delay Formula
= tpo(1+ f /)
CMOS Inverter
37
Size of a Single Inverter for a Given CL (1)
Req/S
Req/S SCint
CMOS Inverter
38
Size of a Single Inverter for a Given CL (2)
SCint>>CL
CMOS Inverter
39
Sizing an Inverter Chain
In Out
1 2 N CL
N N C g , j +1
t p = t p , j = t p 0 1 + , C g , N +1 = CL
C
i =1
j =1 g, j
CMOS Inverter
40
Driving Large CL
CMOS Inverter
41
Growing Stages for Driving Large CL
Small Cg
Large current
stage 2 acts
as a (single-stage) buffer
between
load and 1st stage
CMOS Inverter
42
The Tapered Buffer
CMOS Inverter
43
Optimum Delay and Number of Stages
f =NF
f
Path (N-stages) delay
(
t p = Nt p 0 1 + N F / )
CMOS Inverter
44
Optimum Number of Stages
t p 0 ln F f
(
t p = Nt p 0 F / + 1 =
1/ N
) +
ln f ln f
t p t p 0 ln F ln f − 1 − f
= =0
f ln f 2
CMOS Inverter
45
Optimum 𝒇 vs. 𝜸 in Tapered Buffers
3.6 ( 4)
tapered buff
(self-loading at = 1)
Exponential buff
(no self-loading)
Cint = Cg
CMOS Inverter
46
Buffer Design
N f tp
1 64 1 64 65
1 8 64
2 8 18
1 4 16 64 3 4 15
(Typical instead of 3.6)
1 64 4 2.8 15.3
2.8 8 22.6 (≈ exponential)
CMOS Inverter
47
FO4 Delay
⚫ Want a way to characterize the delay of a circuit
(roughly) independent of technology
⚫ Most common metric:
▪ Delay of an inverter driving four copies of itself (tFO4)
CMOS Inverter
48