EE5518 VLSI Digital Circuit Design VLSI Digital Circuit Design
EE5518 VLSI Digital Circuit Design VLSI Digital Circuit Design
EE5518 VLSI Digital Circuit Design VLSI Digital Circuit Design
*Time: 6 9pm, Thursday, Venue: E1-06-05 * Solutions will be released after the corresponding due date of the assignments * Any assignment submitted after the solution is released will not be graded.
CMOS inverters
1. MOS transistor characteristics
IV I-V characteristics Body effect Short channel effect Sub-threshold slope Static and dynamic analysis
where kn = nCox is the process transconductance parameter (n is the carrier mobility (m2/Vsec))
kn = kn
RDS =
EE5518 VLSI Digital Circuit Design - XU YP
k W ID = n (VGS VT ) 2 2 L
since the voltage difference over the induced channel (from the pinch-off point to the source) remains fixed at VGS VT However, the effective length of the conductive channel is modulated by the applied VDS, so ID = ID (1 + VDS) where is the channel-length modulation factor (varies with the inverse of the channel length)
EE5518 VLSI Digital Circuit Design - XU YP 6
Current-Voltage Plot
6 x 10
-4
nMOS transistor
VGS= 2.5 V
Linear
4
Saturation
VGS= 2.0 V
ID (A)
VDS = VGS - VT
VGS= 1.5 VGS 1 5 V
Quadratic Relationship
VGS= 1.0 V
0 0.5 1 VDS (V) 1.5 2 2.5
V (V)
-2
-1.5
-1
-0.5
BS
(V)
Velocity saturation the velocity of the carriers y saturates due to scattering (collisions suffered by the carriers)
Electron velocity:
n =
0 0
n 1 + c
( c )
c 1.5 (V/m)
n = sat =
n c
2
( = c )
( >> c )
10
sat = n c
Long-channel d i L h l device
VDSAT < VGS VT so the device enters saturation before VDS reaches VGS VT and operates more often in saturation
IDSAT
Short-channel
VDSAT = L c =
VDSAT VGS-VT
L sat
VDS
or sat = n
VDSAT L
11
Drain current
Drain current in linear region:
ID =
1+
1 W nCox VDS L L
V2 (VGS VT )VDS DS 2
W = (VDS ) nCox L
V2 (VGS VT )VDS DS 2
1 long channel 1 (VDS ) = = 1 / 2 VDS L = c ( short channel ) V L 1 + DS << 1 VDS L > c ( short channel ) c
Measured the degree of velocity saturation
EE5518 VLSI Digital Circuit Design - XU YP 12
IDSAT
Drain current at VDS = VDSAT :
I DSAT
V2 W nCox (VGS VT )VDSAT DSAT long channel L 2 W V = (VDSAT ) n Cox VGS VT DSAT short channel L 2 V sat CoxW VGS VT DSAT short channel 2
where sat V = n DSAT L approximation for c
VDSAT = C L
EE5518 VLSI Digital Circuit Design - XU YP 13
ID-VGS Plot
Fixed VDS is set to ensure the transistor in saturation
6 5 4
I D (A)
x 10
-4
x 10 2.5
-4
quadratic
linear
1.5
ID (A)
3 2 1 0 0
0.5
0.5
1
VGS(V)
1.5
2.5
0 0
quadratic
0.5 1
VGS(V)
1.5
2.5
Long Channel
Short Channel
14
ID-VDS Plot
Due to velocity saturation
6 5 4 ID (A) 3 2 1 0 0 x 10
-4
x 10 2.5
-4
VGS= 2.5 V
2
VGS= 2.0 V
ID (A) 1.5
VDS = VGS - VT
VGS= 1.5 V
0.5
VGS= 1.0 V
0.5 1 VDS(V) 1.5 2 2.5 0 0 0.5 1 VDS(V) 1.5
2.5
Long Channel
Short Channel
15
Sub-Threshold Conductance
10-2
Linear region
Quadratic region
Transistor is not completely off when VGS < VT Transition from ON to OFF is gradual (decays exponentially) This causes leakage current in digital circuits and hence the static power consumption In sub-threshold region,
V qVGS DS I D = I S e nkT 1 e kT q (1 VDS )
VT
0 0.5 1 1.5 2 2.5
( n > 1)
n is typically 1.5
16
VGS (V)
Sub-threshold slope
The sub-threshold slope,
10-2
I D I S e nkT S=
qVGS
VGS ln I D
( n = 1) ( n = 1.5)
10-12
VGS (V)
EE5518 VLSI Digital Circuit Design - XU YP 17
2. CMOS Inverter
N Well
VDD
PMOS
VDD 2
PMOS In Out
In
Contacts
Out Metal 1
NMOS
Polysilicon
NMOS GND
18
Inverter Chain
Share power and ground
Abut cells
VDD
Connect in Metal
19
20
10
| VGS | < | VT |
| VGS | > | VT |
21
First-order DC Analysis
VDD VDD VOL = 0 VOH = VDD VM = f(Rn, Rp) (VM Switching threshold) Vout = 0 Rn
Rp Vout = 1
Vin = 0
EE5518 VLSI Digital Circuit Design - XU YP
Vin = V DD
22
11
CMOS Properties
Full rail-to-rail swing high noise margins
Logic levels not dependent upon the relative device sizes transistors can be minimum size ratioless
Always a path to Vdd or GND in steady state low output impedance (output resistance in k range) large fan-out Extremely high input resistance (gate of MOS transistor is near perfect insulator) nearly zero steady-state input current No direct path steady-state between power and ground no static power dissipation Propagation delay is a function of load capacitance and resistance of transistors
23
VDS (V)
1.5
2.5
12
VGS = -2.5V
-1 X 10-4
IDSp = -IDSn VGSn = Vin; VGSp = Vin - VDD VDSn = Vout; VDSp = Vout - VDD
Vout
Vin = 0 Vin = 1.5 Vin = 0 Vin = 1.5
13
PMOS
2
Vin = 0.5V 1.5 Vin = 1.0V 1 Vin = 2.0V
Vin = 1.5V
Vin = 2V 0.5
Vin = 1.5V
Vin = 1V
Vin = 0.5V
Vin = 1 0V 1.0V Vin = 0.5V
Vin = 2.5V
Vin = 0V
0.25um, W/Ln = 1.5, W/Lp = 4.5, VDD = 2.5V, VTn = 0.4V, VTp = -0.4V
27
VTC
NMOS sat PMOS sat
Vout Vin CL
Vin (V)
EE5518 VLSI Digital Circuit Design - XU YP 28
14
Transistor Sizing
When designing static CMOS circuits, balance the driving strengths of the transistors by making the PMOS section wider than the NMOS section to
maximize the noise margins and obtain symmetrical characteristics
29
Switch Threshold
VM where Vin = Vout (both PMOS and NMOS always in saturation since VDS = VGS > VGS VT) Equating the drain current,
VM =
where r =
- Switching threshold is set by the ratio r, which compares the relative driving strengths of the PMOS and NMOS transistors
EE5518 VLSI Digital Circuit Design - XU YP 30
15
VM =
r VDD 1+ r
For VM = VDD/2 (to have comparable high and low noise margins), r1
31
(W/L)p/(W/L)n
10
VM is relatively insensitive to variations in device ratio setting the ratio to 3, 2.5 and 2 gives VMs of 1.22V, 1.18V, and 1.13V Increasing the width of the PMOS moves VM towards VDD Increasing the width of the NMOS moves VM toward GND
32
16
VIH and VIL are the input voltages where voltage gain is -1 Noise margins,
dVout = 1 dVin
VM
VOL = GND 0
Vin VIH
33
g= =
dVout dVin V
in =VM
34
17
0.25um, (W/L)p/(W/L)n = 3.4 (W/L)n = 1.5 (min size) VDD = 2 5V 2.5V Calculated: VM 1.25V, g = -27.5 VIL = 1.2V, VIH = 1.3V NML = NMH = 1.2 Simulated: VIL = 1.03V, VIH = 1.45V NML = 1.03V, NMH = 1.05V)
Vout (V)
1.5 1
Vin (V)
EE5518 VLSI Digital Circuit Design - XU YP 35
Vout (V)
Nominal
r=
k pVDSATp k nVDSATn
2.5
18
Example 2.1
Design an inverter with switching threshold at 1.5V. 0.25um, (W/L)n = 1.5 (min size), VDD = 2.5V Determine (W/L)p
' k nVDSATn (VM VTn VDSATn 2) W W = ' L p L n k pVDSATp (VDD VM + VTp + VDSATp 2)
= 1.5 27
115 10 6 0.63 (1.5 0.43 0.315) (30 10 6 ) (1) (2.5 1.5 0.4 0.5)
37
38
19
Propagation delay
Propagation delay caused by charge and discharge of load capacitance VDD V
DD
Rp Vout CL Rn Vout CL
Vin = 0
EE5518 VLSI Digital Circuit Design - XU YP
Vin = V DD
39
t
tPHL tPLH
t pHL = t pLH =
40
20
Propagation delay
I av , HL = VOH 2 VDD 1 V50%
VDD 2 V50%
VOH
(Vout )dv
VDD
(VDS )dv
1 V [ I D (VDD ) + I D ( DD )] 2 2
Use the appropriate ID expression that is corresponding to the correct operation region
EE5518 VLSI Digital Circuit Design - XU YP 41
Vin = V DD Rn
t pHL = (ln 2) ReqnC L 0.69 ReqnC L t pLH = (l 2) Reqp C L 0.69 Reqp C L (ln tp = 1 (t pHL + t pLH ) = 0.69(Reqn + Reqp )CL 2
42
21
Equivalent ON resistance
ID R(VDD/2) ( ) VGS=VDD R(VDD) VDD/2 VDD VDS
Req =
2 VDD
VDD 2
VDD
Example 2.2
Process: 0.25m, VDD=2.5V, W/Ln = 1.5, W/Lp = 4.5 CL=6fF, Unified device U ifi d d i model ( d l (see appendix) di ) Calculate the propagation delay. Vout (V)
3 2.5 2 1.5 1 0.5 0
Vin
tpHL
39.9ps 31.7ps
tpLH
I DSATn = k '
t (sec)
2.5
Reqn
t pHL = 0.69 ReqnCL = 35.9 ps t pLH = 0.69 ReqpCL = 28.9 ps t p = 0.69(Reqn + Reqp )CL = 32.4 ps
44
Similarly,
22
Increase VDD
can trade-off energy for performance increasing VDD above a certain level yields only very minimal improvements reliability concerns enforce a firm upper bound on VDD
45
NMOS/PMOS Ratio
For equal tpHL and tpLH, Reqn = Reqp
r=
=
Is tp also minimized?
Rp Rn
(W L )p (W L )n
Reqp =
Reqn = R r
CL = (1 + )C
0.69 0.69 RC r r [ RC (1 + ) + RC (1 + )] = (1 + + + r ) tp = 2 2 t p r = 0 opt = r Reqp = Reqn = r Reqn Smaller PMOS is required for optimum delay, but at the expense of symmetry delays (tpHL and tpHL)
EE5518 VLSI Digital Circuit Design - XU YP 46
23
Example 2.3
For the given devices in 0.25m CMOS process, find the values that give (1) equal tpHL and tpLH, and (2) minimum propagation delay. VDD is 2.5V.
For equal tpHL and tpLH,
Reqp = Reqn
=1
= r = 31 13 2.38
For minimum tp,
= r = 31 13 1.54
From simulation, symmetrical response occurs at = 2.4, while optimal delay performance is at =1.9
EE5518 VLSI Digital Circuit Design - XU YP 47
t (n normalized)
1.2
1.4
1.6
1.8
2.2
2.4
V
EE5518 VLSI Digital Circuit Design - XU YP
DD
(V)
48
24
t p = 0.69
Rref
t p0
C = 0.69( Rref Ciref )1 + ext = t p 0 (1 + Cext Cint ) SC iref = 0.69( Rreff Cireff ) Intrinsic (no external loading) delay
Intrinsic delay is independent of scaling and purely determined by technology; If S is infinite or S>>Cext/Ciref, the effect of extrinsic load on the delay is eliminated and the delay is reduced to the intrinsic one, but at the expense of silicon area
EE5518 VLSI Digital Circuit Design - XU YP 49
Example 2.4
Process: 0.25m, VDD=2.5V, W/Ln = 1.5, W/Lp = 4.5, Cext=3.15fF, Cint=3fF, What is the percentage delay reduction when S=5, 10 and infinite?
-11
Calculation:
x 10
t p ,s
(1 + Cext SCiref ) ( 100) = 1 100 (1 + Cext Ciref ) tp 41% ( S = 5) 46% ( S = 100 51% ( S = )
t p 0 ( S = ) = 19.3 ps 49%
EE5518 VLSI Digital Circuit Design - XU YP
8 S
10
12
14
50
25
Inverter Chain
In Out CL
If CL is given: - How many stages are needed to minimize the delay? - How to size the inverters?
51
Cint
CL
Load
CN = Cunit
C t p = 0.69 Req (Cint + Cext ) = 0.69 ReqCint + 0.69 ReqC L = 0.69 ReqCint 1 + ext C int
Internal delay
EE5518 VLSI Digital Circuit Design - XU YP
52
26
Cgin
Cint
CL
==
= t p0 1 + f
t p0 = 0 . 69 R unit C unit
53
f =
C gin , j +1 Cgin , j
C gin , N +1 = C L
54
27
- each stage has the same effective fan-out (f = Cgin,j+1/Cgin,j) - each stage has the same delay
t p = Nt p 0 (1 + f / )
55
= =
C g , 2 C g ,3 C g , N 1 C L ..... C g ,1 C g , 2 C g , N 2 C g , N CL =F C g ,1
Overall effective fan-out
f =NF
56
NF t p = Nt p 0 1 +
EE5518 VLSI Digital Circuit Design - XU YP
28
Example 2.5
A 3-stage inverter chain needs to drive a CL of 8 times of its input gate capacitance, C1 what is the required fan-out for minimum delay?
In C1
Out CL= 8 C1
f =N F =3
8C1 =2 C1
57
f ln F f + 1 t p = Nt p 0 + 1 = t p 0 ln f
t p f
= 0 ln f = 1 + f f = e1+
N= ln F ln F = ln f 1 + f
N = ln F
f = e,
EE5518 VLSI Digital Circuit Design - XU YP
58
29
f Choosing f larger than optimum has little effect on delay and reduces the number of stages (and area). Common practice to use f = 4 Too many stages has a substantial negative impact on delay
EE5518 VLSI Digital Circuit Design - XU YP
59
f 64 8
tp 65 18
1 2
64
16
64
15
2.8
22.6
64
2.8
15.3
60
30
61
3. Power Consumption
Power consumption is a major design specification of digital IC Low power consumption will save battery, long operation time for portable systems reduce the heat dissipation of the system reduce operation cost simplify the cooling system design
62
31
0.1 1971 1974 1978 1985 1992 Year 2000 2004 2008
100
10
Plate
486 1990 Year
P6 Pentium proc
1970
2000
2010
32
Leakage
Leaking diodes and transistors
65
Vin CL
2 Energy / transition = CLVDD
Vout
( = Q VDD )
Not a direct function of transistor sizes! Need to reduce CL, VDD and frequency to reduce the dynamic power consumption Data or activity dependent - a function of switching activity
66
33
Example 2.6
Consider a 0.25 m chip with 2 million gates, an average load cap of 15fF/gate (fan-out of 4), 2.5V supply and 500MHz clock. Compute the dynamic Power consumption per gate, as well as for the whole chip (assuming each transitions per clock cycle) cycle).
Single gate:
2 P = VDD CL f
What about: - Pentium 4: ~42million transistors! 1.5GHz; - 8-core processor: ~2.3billion transistors! 2.66GHz
67
Clock frequency (f ):
- Is increasing
68
34
ts
Vin
Isc
Vout CL
tsc
tsc
t sc
I t 2 Esc = 2VDD peak sc = VDD I peak tsc , Psc = VDD I peak tsc f = CscVDD f 2 VDD 2VT VDD V 2VT V 2VT tr ( f ) Input slope ts DD = tsc = DD tsc ts VDD VDD 0.8
PSC is reduced when VDD is lowered. At VDD < 2VT, PSC is completely eliminated.
EE5518 VLSI Digital Circuit Design - XU YP 69
Impact of CL on Psc
- VDSp is ~ zero and PMOS is OFF most of the time - VDSp is ~ VDD PMOS is ON most of the time
Large capacitive load: - Output fall time significantly larger than input rise time.
Small capacitive load: - Output fall time substantially smaller than the input rise time.
Can the PSC be minimized by making output tr/f > input tr/f?
EE5518 VLSI Digital Circuit Design - XU YP 70
35
Isc as a Function of CL
- Th short circuit current, Isc i The h t i it t is large for small load capacitance - Practical rule: - Short circuit power dissipation can be minimized by matching the rise/fall times of the input and output signals (slope engineering). Input slope = 500ps
EE5518 VLSI Digital Circuit Design - XU YP 71
5 4 3 2 1 0 0
VDD= 3.3 V
Short circuit current is reduced when VDD is lowered; For VDD<2VT, PSC is completely eliminated as both PMOS and NMOS will not be turned on simultaneously; For large CL, dynamic power dissipation dominates; For small CL, short circuit power dissipation dominates.
Large CL
Small CL
tsin/tsout
EE5518 VLSI Digital Circuit Design - XU YP 72
36
Leakage in CMOS includes drain/source to substrate/well junction leakage current and subthreshold current; The Pstat is Pstatic = I statVDD = ( I junc + I sub )VDD
EE5518 VLSI Digital Circuit Design - XU YP 73
~104 times
Sub-threshold leakage becomes large for low VT as the subthreshold slope is fixed ~104 times increase in leakage current when VT changes from 0.4 to 0.1V (sub-threshold slope: ~75mV/decade)
EE5518 VLSI Digital Circuit Design - XU YP 74
37
75
Power reduction:
VDD Pdyn Psc Pstat CL f0-1 Dev size
76
38
( f max =
1 ) 2t p
EDP = PDP t p =
2 C LVDD tp 2
- Both PDP and EDP strongly depend VDD - Reducing VDD is an effective way to reduce the PDP/EDP - However, the performance will be degraded
EE5518 VLSI Digital Circuit Design - XU YP 77
(V1/2)
0.4 04 -0.4
VDSAT(V) 0.63 0 63 -1
(V-1)
0.06 0 06 -0.1
Req (for WL=1) of NMOS and PMOS in 0.25m CMOS: VDD (V) NMOS(k) PMOS(k) 1 35 115 1.5 19 55 2 15 38 2.5 13 31
39