Inverter Design and Operation Guide
Inverter Design and Operation Guide
time
• NMOS remains on since VGS > VT
• Final output voltage Vout = 0V
MOS voltage levels
Case 2: NMOS charges capacitor
• Initially: Vout = 0
• Initial VGS of NMOS = Vcc
• What is final Vout?
Vcc
Vcc
G D
Vcc
S Vout
Vout Vcc-VT
Cload
time
• NMOS remains on until VGS = VT
• Final output voltage Vout = Vcc - VT
MOS voltage levels
Repeat for PMOS:
• Case 1: PMOS discharging capacitor
G S
Vout
Gnd Cload • PMOS on until VGS = VT
D
• Vout = |VT|
Vcc/2 Vin
Vss
Vcc
Vcc/2 Vout
Vss
t 0 t1 t2 t 3
• Progagation delay measured from 50% point of
Vin to 50% point of Vout
• tphl = t1 - t0, tplh = t3 - t2, tp = ½(tphl+tplh)
Rise and fall time
tF tR
V90%
V10%
t0 t 1 t2 t3
• Fall time: measured from 90% point to 10% point
– tF = t1 - t0
• Rise time: measured from 10% point to 90% point
– tR = t3 - t2
• Alternately, can define 20%-80% rise/fall time
Ring oscillator
• Ring oscillator circuit: standard method of
comparing delay from one process to another
• Odd-number n of inverters connected in chain:
oscillates with period T (usually n >> 5)
V1 V3 V2
VOH
V1 V2 V3
V50%
Cload Cload
• When Vin = 0:
R
– NMOS is OFF (VGS = 0)
– No current through NMOS or D Vout
G
resistor Vin
S
– Vout Vcc
• When Vin = Vcc:
– NMOS is ON (VGS = Vcc) Gnd
Vcc
R
Vout VCC 12 Rk n Vin VT
2
R
– Solve this quadratic for VTH
Resistive-load inverter: VTC
VCC Resistor load line Vin=4V
R (slope = 1/R)
Drain current IDS
Vin=3V VCC
Vout
Vin=2V
Vin=1V
VOL
Vout = VDS VCC 0 1 2 Vin 3 4
• Plot IDS of transistor and Iload of resistor vs. Vout
• Since currents must be equal, intersection points
define VTC
Resistive-load inverter: VTC
VCC
small R Vin=4V
R R
Drain current IDS
Vin=3V VCC
small R
large
R
Vout
Vin=2V R
Vin=1V large
R
Cload Cload
‘1’ ID ‘0’
– Beginning of transition:
VCC VOL
Vout VOL , IC
R
– End of transition:
VCC
Vout 2 VCC ,
1
IC
2R
– Average current:
3VCC 2VOL
I avg
4R
– Delay:
Cload 4 RCload
td V1 V0 , t plh 12 VCC VOL
I avg 3VCC 2VOL
Resistive-load inverter: delay
• Inverter fall delay tphl:
– Beginning of transition: Vout=VCC (NMOS in saturation)
I C 0 k n VCC VT
1 2
2
Vin=3V
VGS=-Vcc
Vin=2V
Vin=1V
Vin=3V VCC
Vout
Vin=2V
Vin=1V
1 1 4 RCload
VTH VT 0 2VCC 2VT 0 t plh 12 VCC VOL
kn R kn R 3VCC 2VOL
k driver
VOH VCC
Vout
Vin
VIL VT 0
kload
Vout VCC VT ,load Vout
k driver
kload dVT ,load
VIH VT 0 2Vout
k VT ,load Vout dV
Gnd
driver out
VCC kload
PDC ,avg VT ,load VOL
2 2
CMOS Inverter
• Complementary NMOS and
PMOS devices
Vcc
• In steady-state, only one device
is on (no static power
consumption) Vin Vout
• Vin=1: NMOS on, PMOS off
– Vout = VOL = 0
• Vin=0: PMOS on, NMOS off
– Vout = VOH = Vcc Gnd
VCC
Vin=3V
Vout
Vin=2V
Vin=1V
• NMOS transistor:
– Cutoff if Vin < VTN Vin Vout
– Linear if Vout < Vin – VTN
– Saturated if Vout > Vin – VTN
• PMOS transistor
– Cutoff if (Vin-VCC) < VTP → Vin < Vcc+VTP
– Linear if (Vout-VCC)>Vin-Vcc-VTP → Vout>Vin - VTP
– Sat. if (Vout-VCC)<Vin-Vcc-VTP → Vout < Vin-VTP
CMOS inverter VTC
P linear
P cutoff
N cutoff
N linear
P linear
N sat P sat
N sat
P sat
N linear
CMOS inverter VTC
• Increase W of PMOS
VCC kp=kn kp increases
VTC moves to right
• Increase W of NMOS
Vout kp=5kn
kn increases
kp=0.2kn VTC moves to left
• For VTH = Vcc/2
kn = kp
VCC Wn 2Wp
Vin
Effects of Vth adjustment
• KCL: kn
2
2 kp
2
VGS ,n VT 0,n 2VGS , p VT 0, p VDS , p VDS , p 2
kn
2
k
Vin VT 0,n 2 p 2Vin VCC VT 0, p Vout VCC Vout VCC 2
2
• Differentiate and set dVout/dVin to –1
dV
k n Vin VT 0,n k p Vin VCC VT 0, p out Vout VCC Vout VCC out
dV
dVin dVin
k n VIL VT 0,n k p 2Vout VIL VT 0, p VCC
• KCL: kn
2
2 kp
2
2VGS ,n VT 0,n VDS ,n VDS ,n VGS , p VT 0, p
2
kn
2
kp
2Vin VT 0,n Vout Vout Vin VCC VT 0, p
2
2
2
2 2
kn kp
Vin VT 0,n Vin VCC VT 0, p 2
2
2 2
VT 0,n
1
VCC VT 0, p kn
kR
VTH kR
1 kp
1
kR
CMOS inverter: Ideal VTH
VT 0,n
1
VCC VT 0, p
kR kn
VTH kR
1 kp
1
kR
2
VCC 2 VT 0, p
• Ideally, VTH = VCC/2 k R ,ideal
VCC 2 VT 0,n
W
L p n
2.5
W p
L n
CMOS inverter: VIL and VIH for Ideal VTH
1
VIL 3VCC 2VT 0
8
1
VIL 5VCC 2VT 0
8
VIL VIH VCC
Cgd,p Cdb,p
Vin
Cgd,n Cdb,n Cint Cg
Cgs,n Csb,n
Gnd
CMOS inverter capacitances
Vcc
Cgs,p Csb,p
Cap on node f:
• Junction cap
Cdb,p and Cdb,n
Cgd,p Cdb,p • Gate capacitance
Vin f
Cgd,n Cdb,n
Cgd,p and Cgd,n
Cint Cg
• Interconnect cap
• Receiver gate cap
Cgs,n Csb,n
Gnd
CMOS inverter capacitances
• Junction capacitances Cdb,p and Cdb,n:
– Equation for junction cap
m
AC j 0 q N a N d 1
C j V , C j0
2 N a N d 0
m
V
1
0
– Non-linear, depends on voltage across junction
– Use Keq factor to get equivalent capacitance for
a voltage transition
Cdb AK eq C j PK eqswC jsw
CMOS inverter capacitances
• Gate capacitances CGD,p and CGD,n:
– In steady state, what regions are transistors in?
– One is in cutoff: CGD = CGS = 0
– One is in saturation: CGD = 0
– Therefore, gate-to-drain capacitance is only due
to overlap capacitance:
C gd , p C gd ,n CoxWLD
• Csb,n = Csb,p = 0
• Cgs,n and Cgs,p are not connected to the load. These are
part of the gate capacitance Cg
First-order inverter delay
ID.n Cload
Vin
Vcc/2
t0 t1 t2
2CLVT 0,n
t1 t0
kn (VOH VT 0,n ) 2
Inverter delay, falling t2-t1
• Vout drops from (VOH-VT0,n) to VCC/2
• NMOS in linear region
I DS kn (VOH VT 0,n )Vout 12 Vout2
(VOH VOL ) / 2
dVout
t2 t1 CL
VOH VT 0 , n
kn (VOH VT 0,n )Vout 12 Vout2
CL 2(VOH VT 0,n ) (VOH VOL ) / 2
t2 t1 ln
kn (VOH VT 0,n ) (VOH VOL ) / 2
Inverter delay, falling
CL 2 VT 0, p 4(VOH VOL VT 0, p )
t PLH ln 1
k p (VOH VOL VT 0, p ) VOH VOL VT 0, p VOH VOL
CMOS inverter delay
• First approximate method
– Assume a constant average
current for the transition
I1
– Iavg = average of drain current at V1=Vcc
beginning and end of transition
V2=½Vcc I2
Cload
t PHL VCC 12 VCC t1 t2
I avg
Iavg = ½(I1+I2)
Cload
t PLH 12 VCC VSS
I avg
CMOS inverter delay
• Another approximate method:
– Again assume constant Iavg
– Iavg = current I1 at start of I1
transition V1=Vcc
– Why is this a good
approximation (esp. for deep V2=½Vcc
submicron)?
CloadVCC
t PHL t1 t2
k n VCC VTn
2
Iavg = I1
CloadVCC
t PLH
k p VCC VTP 2
Inverter rise, fall time
• Exact method: separate into regions
– t1
• Vout drops from 0.9VCC to VCC-VT (NMOS in saturation)
• Vout rises from 0.1VCC to VT (PMOS in saturation)
– t2
• Vout drops from VCC-VT to 0.1VCC (NMOS in linear region)
• Vout rises from VT to 0.9 VCC (PMOS in linear region)
– tf,r = t1 + t2
CV
fall ,rise
I avg
CMOS inverter delay
• What if input has finite rise/fall time?
– Both transistors are on for some amount of time
– Capacitor charge/discharge current is reduced
Empirical equations:
2
tr
tpHL(ns)
2
2
tf
t plh (actual ) t ( step )
2
plh
2
trise(ns)
How to improve delay?
In Out
CL
If CL is given:
- How many stages are needed to minimize the delay?
- How to size the inverters?
Delay
RW
CL
RW Load (CL)
tp = k RWCL
CP = 2Cunit Delay
2W
W
Cint CL
Load
CN = Cunit
Delay ~ RW Cint C L
In Out
1 2 N CL
f NF
Minimum path delay
t p Nt p 0 1 N F /
Example
In Out
1 f f2 CL= 8 C1
C1
f 38 2
Optimum Number of Stages
ln f
t p 0 ln F f
1/ N
t p Nt p 0 F / 1
ln f ln f
t p t p 0 ln F ln f 1 f
0
f ln f 2
60.0
40.0
u/ln(u)
x=10,000
x=1000
20.0 x=100
x=10
0.0
1.0 3.0 5.0 7.0
u
Normalized delay function of F
t p Nt p 0 1 N F /
Buffer Design
N f tp
1 64 1 64 65
1 8 64 2 8 18
1 4 16 64 3 4 15
1 64 4 2.8 15.3
2.8 8 22.6
CMOS inverter power
• Power has three components
– Static power: when input isn’t switching
– Dynamic capacitive power: due to charging and
discharging of load capacitance
– Dynamic short-circuit power: direct current
from Vcc to Gnd when both transistors are on
CMOS inverter static power
• Static power consumption:
– Static current: in CMOS there is no static current as
long as Vin < VTN or Vin > VCC+VTP
– Leakage current: determined by “off” transistor
– Influenced by transistor width, supply voltage,
transistor threshold voltages
Vcc Vcc
Ileak,p
Vss Vcc Vcc Vss
Ileak,n
Dynamic capacitive power
Evcc ivcc (t )VCC dt
0
dVout
VCC C L dt
0
dt
VCC
C LVCC dV
0
out
Vin VCC
Dynamic short-circuit power
Imax
• Energy-delay product:
– Multiply energy x delay: EDP = E*D
– Often the goal of a design is to minimize EDP
Power reduction
• Reducing dynamic capacitive power:
– Lower the voltage!
• Quadratic effect on dynamic power
– Reduce capacitance
• Short interconnect lengths
• Drive small gate load (small gates, small fan-out)
– Reduce frequency
• Lower clock frequency -> use more parallelism
• Lower signal activity
Power reduction
• Reducing short-circuit current:
– Fast rise/fall times on input signal
– Reduce input capacitance
– Insert small buffers to “clean up” slow input
signals before sending to large gate
• Reducing leakage current:
– Small transistors (leakage proportional to
width)
– Lower voltage
Power Dissipation
Where Does Power Go in CMOS?
• Leakage
Leaking diodes and transistors
Dynamic Power Dissipation
Vdd
Vin Vout
CL
Energy/transition = CL * Vdd2
Vdd -Vt
CL
E0 = CL Vdd V dd – Vt
1
2 2
Adiabatic Charging
Node Transition Activity and Power
Consider switching a CMOS gate for N clock cycles
E = C V 2 n N
N L dd
EN : the energy consumed for N clock cycles
n(N): the number of 0->1 transition in N clock cycles
EN 2
n N
P avg = lim -------- fclk = lim ------------ C Vdd f clk
N N N N L
n N
0 = lim ------------
1 N N
P av g = 0 1 C Vdd 2 f clk
L
Transistor Sizing for Minimum
In
Energy Out
Cext
Cg1 1 f
F F
2 f 2 f
tp t p0 f VDD Vref VTE f
1
t pref t p 0 ref 3 F Vref VDD VTE 3 F
• Energy for single Transition
E VDD
2
C g1 1 1 f F
2
E VDD 2 2 f F
Eref Vref 4 F
Transistor Sizing (3)
VDD=f(f) E/Eref=f(f)
4 1.5
3.5
F=1
3
2
normalized energy
1
2.5
vdd (V)
2 5
1.5
0.5
1 10
0.5 20
0 0
1 2 3 4 5 6 7 1 2 3 4 5 6 7
f f
Short Circuit Currents
Vdd
Vin Vout
CL
0.15
0.10
IVDD (mA)
0.05
Pnorm
5
Vdd =3.3
4
Vdd =2.5
3
1
Vdd =1.5
0
0 1 2 3 4 5
tsin/tsout
Leakage
Vdd
Vout
Drain Junction
Leakage
Sub-Threshold
Current
p+ p+
N
IDL = JS A
2
JS = JS
1-5pA/ mpA/m2
= 10-100 for a 1.2 m
at 25 degCMOS technology
C for 0.25m CMOS
JS doubles for every 9 deg C!
Js double with every 9oC increase in temperature
Subthreshold Leakage Component
Static Power Consumption
Vdd
Istat
Vout
CL
Vin = 5V