Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2
The Basic MOS Gate: the Inverter
Vin Vout
0 1
1 0
3
The Basic MOS Gate: the Inverter
VM
4
Switching Threshold
5
NMOS Inverter with Resistive Load
VDD
R
VDD = R·ID + Vout
Vout
Vin = 0 ⇒ ID = 0 ⇒ Vout = VDD
Vin ID
Vout = 0 ⇒ ID = VDD / R
6
NMOS Inverter with Resistive Load
Vin = VOH
VDD ID
VDD / R
R
Vout
Vin ID
Vin = 0
VOL VOH = VDD Vout
7
NMOS Inverter with Resistive Load
• VOH = VDD
• VOL: NMOS in linear region and VDS (= VOL) small
2
(R ⋅ β ⋅VTH − 1) + 1 + 2 ⋅ R ⋅ β ⋅ (VDD − VTH )
VM =
R⋅β
8
NMOS Inverter with Resistive Load
Swotching Threshold
Switching Threshold
2.0
0.750
1.8
1.6 1.000
1.4
1.2
1.250
VDD=2.5V log(W/L)
1.0
VTH=0.5V
1.500
0.8
0.6
1.750
0.4
2.000
0.2
0
3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0
log(R)
9
NMOS Inverter with Resistive Load
VOH = VDD ☺
10
NMOS Inverter with NMOS Load
VDD
11
NMOS Inverter with NMOS Load
Vin = VOH
ID
VDD
M2
Vout
Vin ID
M1
Vin = 0
VOL Vout
VTH
2 2 W1 = W2
VM =
VDD ⋅ β 2 + VTH ⋅ ( β 2 − β1 ) L1 = L2
⇓
β1 + β 2 VM=VDD/2
13
NMOS Inverter with NMOS Load
Switching Threshold
Switching Threshold
2.0
1.8
1.750
1.6
1.4
1.500
VDD=2.5V 1.2
VTH=0.5V log(W2/L2)
1.0
1.250
0.8
1.000
0.6
0.4
0.750
0.2
0
0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0
log(W1/L1)
14
NMOS Inverter with NMOS Load
15
Other two examples
VDD VDD
M2 M2
Vout Vout
Vin Vin
M1 M1
16
Static Complementary CMOS
VDD
In1
pull-up: make a connection from VDD to F
In2 PUN
…
when F(In1,In2,…InN) = 1
InN
F(In1,In2,…InN)
In1
pull-down: make a connection from F to GND
In2 PDN
…
when F(In1,In2,…InN) = 0
InN
17
Threshold Drops
VDD VDD
PUN
S D
VDD
18
Threshold Drops
S D
19
Static CMOS Inverter
An Intuitive Perspective
21
Transfer Characteristic
22
Transfer Characteristic
23
Transfer Characteristic
24
Switching Threshold
• VM: Vin = Vout ⇒ M1 and M2 saturated
(HP: L1 = L2 = L)
µ n ⋅ COX Wn µ p ⋅ COX Wp
⋅ ⋅ (VM − VTHn ) = ⋅ ⋅ (VDD − VM − VTHp )
2 2
2 L 2 L
µ n Wn
VDD − VTHp + VTHn ⋅ ⋅
µ p Wp
VM =
µ n Wn
1+ ⋅
µ p Wp
25
Switching Threshold
Simulated inverter switching threshold versus PMOS/NMOS ratio
(0.25 µm CMOS, VDD = 2.5 V)
26
Noise Margin
• VIH and VIL are the operational points of the inverter where
the derivative of the transfer characteristic is -1.
27
Noise Margin
2 I (Vgs − Vth )
1 ⎛ 2 2 ⎞
g= ⋅ ⎜⎜ + ⎟⎟
λn + λ p ⎝ VM − Vthn VDD − VM − | Vthp | ⎠
VDD ↓ ⇒ VM ↓ ⇒ g ↑
Lp, Ln ↑ ⇒ λn, λp ↓ ⇒ g ↑
29
Scaling the Supply Voltage
30
Device Variations
• Nominal ⇔ Typical
31
The Transient Behavior
• The propagation delay of the CMOS inverter is determined by
the time it takes to charge and discharge the load capacitor
CL through the PMOS and NMOS transistors, respectively.
32
Charge and Discharge CL
Delay Definition
Vin
Propagation delay
50% tp = (tpHL + tpLH)/2
t
tpHL tpLH
Vout
90%
10%
t
tf tr
33
Charge and Discharge CL
Vin
Vout
PMOS NMOS
ICL
34
Charge and Discharge CL
2. NMOS saturated
PMOS off
Vout
ICL
1 2 3
35
The Transient Behaviour
Computing the Capacitances
36
The Transient Behaviour
Computing the Capacitances
• Rule of Thumb
– Neglect the intrinsic and the wiring caps (OK for small and
close gates), i.e., neglect the self loading
– CL=(WnLnCox) + (WpLpCox)
37
The Transient Behaviour
Delay Calculation
Vout = 0
CL
Rn
tpHL = f(Rn, CL)
Vin = V DD
38
The Transient Behaviour
Delay Calculation
• Propagation delay is proportional to the time-constant of the network
formed by the pull-down resistor and the load capacitance
Vout = 0 tp =
1
(t pHL + t pLH ) ≈ 0.35 ⋅ (Reqn + Reqp )⋅ CL
2
39
The Transient Behaviour
Computing the Resistances
• The simplest model assumes the transistor is a switch with
an infinite “off” resistance and a finite “on” resistance Ron
VGS ≥ VT
Ro
S n D
40
The Transient Behaviour
Computing the Resistances
Vin
Vout (t )
t2
1
Reqn = ∫
t 2 − t1 t1 I (t )
dt
VDD
Vout
VDD / 2 t ∈ (t1, t2) the nmos can be
considered always saturated
then I is costant
β
I= ⋅ (VDD − VTH )
2
ICL
2
t1 t2 41
The Transient Behaviour
Computing the Resistances
VDD / 2
1 Vout 3 VDD
Reqn = ∫ β
dVout = ⋅
2 β ⋅ (VDD − VTH )2
⋅ (VDD − VTH )
VDD
− VDD
2
VDD
2 2
L 3 VDD
Reqn = Run ⋅ , Run = ⋅
W 2 µ n ⋅ COX ⋅ (VDD − VTH )2
Rup = 3 ⋅ Run
• To have same tpHL and tPLH, PMOS must be bigger than the
NMOS
⎧Wp = 3 ⋅ Wn
⎨
⎩ Lp = Ln
43
The Transient Behaviour
Delay Calculation
Vout
In CL
Vin = V DD
44
The Transient Behaviour
Delay Calculation
VDD
Vin
VDD
VDD / 2
Vout
Vout
In CL
In
Vin = V DD t1 t2
45
The Transient Behaviour
Delay Calculation
• When Vout goes to Vdd to Vdd / 2 it is possible to suppose
the nmos always saturated i.e., In costant.
C L ⋅ ∆Vout = I n ⋅ t pHL
µ ⋅ Cox W
In = (VDD − VTH )2
2 L
∆Vout = VDD / 2
46
The Transient Behaviour
Delay Calculation
C L ⋅ VDD L
t pHL = = Tun ⋅ ⋅ C L
µ ⋅ Cox ⋅ (VDD − VTH )2
W W
L
47
The Transient Behaviour
Delay Calculation Comparison
L 3 VDD L
t pHL = ln(2) ⋅ Run ⋅ ⋅ C L = ln(2) ⋅ ⋅ ⋅ ⋅ CL ≈
W 2 µ n ⋅ COX ⋅ (VDD − VTH ) W
2
VDD L
≈ 1.04 ⋅ ⋅ ⋅ CL
µ n ⋅ COX ⋅ (VDD − VTH ) W
2
L VDD L
t pHL = Tun ⋅ ⋅ C L = ⋅ ⋅ CL
W µ ⋅ Cox ⋅ (VDD − VTH ) W
2
4 tp
B of 2.4 gives about
tp(sec)
symmetrical response
• Increase the W/L ratio of the transistors. This is the most powerful and effective
performance optimization tool in the hands of the designer. Proceed however with caution
when applying this approach. Increasing the transistor size also raises the diffusion
capacitance and hence CL. In fact, once the intrinsic capacitance (i.e. the diffusion
capacitance) starts to dominate the extrinsic load formed by wiring and fanout, increasing the
gate size does not longer help in reducing the delay, and only makes the gate larger in area.
This effect is called “self-loading”. In addition, wide transistors have a larger gate
capacitance, which increases the fan-out factor of the driving gate and adversely affects its
speed.
• Increase VDD. The delay of a gate can be modulated by modifying the supply voltage. This
flexibility allows the designer to trade-off energy dissipation for performance, as we will see in
a later section. However, increasing the supply voltage above a certain level yields only very
minimal improvement and hence should be avoided. Also, reliability concerns (oxide
breakdown, hot-electron effects) enforce firm upper-bounds on the supply voltage in deep
sub-micron processes.
50
Improve the Transient Behaviour
Increase VDD
51
Improve the Transient Behaviour
Increase Sizes
x 10-11
3.8
for a fixed load The majority of the
3.6
3.4 improvement is already
3.2 obtained for S = 5. Sizing
3 factors larger than 10
barely yield any extra gain
tp(sec)
2.8
2.6 (and cost significantly
2.4 more area).
2.2
2
1 3 5 7 9 11 13 15 self-loading effect (intrinsic
S capacitance dominates)
52
Improve the Transient Behaviour
Optimum Transistor Sizing
53
Improve the Transient Behaviour
Optimum Transistor Sizing
54
Improve the Transient Behaviour
Optimum Transistor Sizing
55
Improve the Transient Behaviour
Choosing f
56
Improve the Transient Behaviour
Choosing f
57
Improve the Transient Behaviour
Choosing f
7
• Choosing f larger than
6
optimum has little effect on
normalized delay
1 8 1 64 65
Cg,1 = 1 CL = 64 Cg,1
2 8 18
1 4 16
Cg,1 = 1 CL = 64 Cg,1 3 4 15
1 2.8 8 22.6
4 2.8 15.3
Cg,1 = 1 CL = 64 Cg,1
59
Improve the Transient Behaviour
Input Signal Rise/Fall Time
x 10-11
5.4
• In reality, the input signal changes
5.2 gradually (and both PMOS and
5 NMOS conduct for a brief time).
4.8 This affects the current available for
4.6
charging/discharging CL and impacts
tp(sec)
propagation delay.
4.4
• tp increases linearly with increasing
4.2
input slope, ts, once ts > tp
4
• ts is due to the limited driving
3.8
capability of the preceding gate
3.6
0 2 4 6 8 x 10-11
ts(sec)
60
Energy and Power
61
Dynamic Dissipation due to Charging and
Discharging Capacitances
62
Dynamic Dissipation due to Charging and
Discharging Capacitances
• Reduce VDD
• Y = CK + A + B
• A, B with very low frequency change with respect CK
CK A
A B
Y Y
B CK
65
Dissipation Due to
Direct-Path Currents
67
Dissipation Due to
Direct-Path Currents
68
Dissipation Due to
Direct-Path Currents
• Reduce VDD
• Optimize rise / fall
time of the input
69
Optimize Rise / Fall Time of the Input
Generate proper transistor input signal in order to
never have both PMOS and NMOS on
VDD in
inp inp
inn
in out
out
inn P on P off P on
N off N on N off
GND
P off P off
N off N off
70
Static Complementary CMOS
Pull-up network (PUN) and pull-down network (PDN)
VDD
In1
pull-up: make a connection from VDD to F
In2 PUN
…
when F(In1,In2,…InN) = 1
InN
F(In1,In2,…InN)
In1
pull-down: make a connection from F to GND
In2 PDN
…
when F(In1,In2,…InN) = 0
InN
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
A + B = A⋅ B A⋅ B = A + B
74
NAND CMOS
75
NOR CMOS
76
NAND static behaviour
77
NAND dynamic behaviour
3
Input Data Delay
2,5
A=B=1→0 Pattern (psec)
A=B=0→1 67
2
A=1 →0, B=1
A=1, B=0→1 64
Voltage [V]
1,5
A=1, B=1→0 A= 0→1, B=1 61
1
A=B=1→0 45
0,5
A=1, B=1→0 80
0
0 100 200 300 400 A= 1→0, B=1 81
-0,5
time [ps]
78
Complex CMOS Gate: PDN
F = D + A • (B + C)
79
Complex CMOS Gate: PDN
F = D + A • (B + C)
B C
80
Complex CMOS Gate: PDN
F = D + A • (B + C)
B C
81
Complex CMOS Gate: PDN
F = D + A • (B + C)
D B C
82
Complex CMOS Gate: PUN
VDD VDD
C
SN1 F SN4 A
F
SN2 B
A A
D D SN3
B C B C D
83
Complex CMOS Gate
Dynamic Design
To simplify the design it is possible assume that series
of transistors can be considered as one transistor with
scaled width scaled according the number of device
L
Req = Ru
Mn = W / L ⇔ Mx = (W / n) / L W n
M1 = W / L
84
Complex CMOS Gate
Dynamic Design
Parallels of transistors can be considered in worst case
condition as one transistor with same size
L
M1 = W / L Mn = W / L ⇔ Mx = W / L Req = Ru
W
85
Complex CMOS Gate
Dynamic Design
Hp: Cin = CL
86
Complex CMOS Gate
Dynamic Design
87
Complex CMOS Gate
Dynamic Design
2
1
2 2
88
Complex CMOS Gate
Dynamic Design
12
6
12
2
1
2 2
89
Complex CMOS Gate
Dynamic Design
Use a two level logic network and design to have same propagation time
of a unit inverter with load cap equal to its input cap.
F = A + B ⋅C
90
Complex CMOS Gate
Dynamic Design
Use only basic gates and design to have same propagation time
of a unit inverter with load cap equal to its input cap.
F = A + B ⋅C = A⋅ B ⋅C
91
Complex CMOS Gate
Fan In Considerations
A B C D
Four input NAND gates
A CL
B C3
C C2
D C1
92
Complex CMOS Gate
Fan In Considerations
A B C D
• For the moment we have supposed
CL > C1 + C2 + C3
A CL • and so the delay is approximately
(R1 + R2 + R3 + R4)·CL
B C3
C C2 • Otherwise ?
– Distributed RC
D C1
93
Complex CMOS Gate
Distribuited RC (Elmore Delay)
94
Complex CMOS Gate
Distribuited RC (Elmore Delay)
• Progressive sizing
95
Complex CMOS Gate
Distribuited RC (Elmore Delay)
A 3 B 3 C 3 D 3
A 44 CL=100 fF
B 45 C3
Progressive sizing in pull-down
C 46 C2
chain gives up to a 20%
improvement. D 47 C1
96
Complex CMOS Gate
tp as a Function of Fan-In (NAND Gate)
• Propagation delay deteriorates rapidly as a function of fan-in,
quadratically in the worst case.
• Gates with a fan-in greater than 4 should be avoided
1250
quadratic
1000 function of fan-in
750
tp (psec)
tpHL tp
500
98
Problems with CMOS
99
Dynamic Logic: Basic Principles
100
Dynamic Logic: Basic Principles
Precharge
When CLK = 0, the output node Out is precharged to
VDD by the PMOS transistor Mp. During that time,
the evaluate NMOS transistor Me is off, so the pull-
down path does not fight the pull-up path.
Evaluation
When CLK = 1, the precharge transistor Mp is off,
and the evaluation transistor Me is turned on. The
output is conditionally discharged based on the input
values and the pulldown topology. If the inputs are
such that the PDN conducts, then a low resistance
path exists between Out and GND and the output is
discharged to GND. If the PDN is turned off, the
precharged value remains stored on the output
capacitance CL.
101
Dynamic Logic: Basic Principles
CLK
In
Out
103
Dynamic Logic: Properties
• The low and high output levels VOL and VOH are easily identified as GND
and VDD and are not dependent upon the transistor sizes.
• It is reasonable to set the switching threshold (VM) as well as VIH and VIL
of the gate equal to VTn. This translates to a low value for the NML.
104
Dynamic Logic:
Precharged and Predischarged
VDD VDD
CLK CLK
Mp Me
Out
In1
In1 In2
PUN
In2 In3
PDN
In3
Out
CLK CLK
Me Mp
105
Dynamic Logic:
Precharged and Predischarged
106
Connect Dynamic Gates
108
Connect Dynamic Gates
Domino Logic
109
Connect Dynamic Gates
Domino Logic
In = 0 In = 1
VDD VDD
In Out2
Out1
Out1
CLK CLK
Me Me
Out2
110
Connect Dynamic Gates
No-Race (NORA) Logic
111
Connect Dynamic Gates
No-Race (NORA) Logic
P E P E P E
VDD VDD CLK
CLK CLK
Mp Me In
In Out1 Out1
Out2
CLK CLK Out2
Me Mp
112
Connect Dynamic Gates
to Static Gates
C2MOS INVERTER
113
C2MOS Inverter
E P E P E P
VDD CLK
CLK
In*
In Out
CLK
Out
CLK
CLK
Out = A + B
A B CLK
CLK
GND
115
An Example
F = A+ B +C⋅D
3 level NORA logic with NAND-NOR synthesis + C2MOS
116
Complex CMOS Gate
Rules of Thumb for Fast Designs
117
Complex CMOS Gate
Rules of Thumb for Fast Designs
120
Current-mirror biasing
using a resistor
VDD Iout = (VDD-Vgs1) / R1
R1 Iout = (β / 2)·(Vgs1-Vth)2
M1 M2
121
Current-mirror biasing
using MOS
β1
I out = ⋅ (Vgs1 − Vth )
2
VDD 2
β0
I out = ⋅ (Vdd − Vgs1 − Vth )
2
M0 2
β 0 = β1 ⇒ Vgs1 = Vdd 2
Iout
β1 ⎛ Vdd
2
⎞
M1 M2
I out = ⋅⎜ − Vth ⎟
2 ⎝ 2 ⎠
123
Supply Independent Bias
125
Supply Independent Bias
127
Supply Independent Bias
128
Supply Independent Bias
I2 = Is·exp(Vgs2/(n·UT)) = I
I1 = M·Is·exp(Vgs1/(n·UT)) = I
Vgs2 = Vgs1 + R · I
I = log(M)· n·UT / R
Strong
I inversion
Weak
inversion
R 132
Supply Independent Bias:
VDD Sensitivity
VDD
M3 ≡ M4
M1 ≡ M · M2
M3 M4
Iout Iout
gm3 = gm4 = gmp
M1 M2 gd4 = gnp = λp · Iout
gm1 = M · gm2 = M · gmn
gd1 = gdn = λn · Iout
133
Supply Independent Bias:
VDD Sensitivity
vdd
gmp gmp·vy gdp
vy
gdn M·gmn·(vx-R·iout) gmn
vx S = iout / vdd = ?
·
R
iout
gmn · vx – gmp · vy
vdd = vx +
gdp
iout
vy =
gmp
134
Supply Independent Bias:
VDD Sensitivity
λn + M · λp
S=
1-M
+ M · R · gmn
Iout Iout
gmn
↑, i.e., weak inversion for nmos transistors
S↓⇒ Iout
1-M
↑, i.e., Iout ↓
Iout
135
Supply Independent Bias:
Improve VDD Rejection
VDD min = ?
136
Supply Independent Bias:
Ensure Start-Up
137
Supply Independent Bias:
Ensure Start-Up
138
Supply Independent Bias:
Ensure Start-Up
139
Supply Independent Bias:
Ensure Start-Up
140
Supply Independent Bias:
Stability
141
Supply Independent Bias:
Temperature Sensitivity
142
Supply Independent Bias:
Temperature Sensitivity
Vgs
n⋅U T ID
Weak inversion I D = I0 ⋅ e ⇒ gm =
n ⋅U T
β
ID = ⋅ (Vgs − Vth ) ⇒ gm = 2 ⋅ β ⋅ I D
2
Strong inversion
2
144
Supply Independent Bias:
Costant gm Biasing
• Weak inversion: bias circuit designed with NMOS in weak inversion
ID log(M ) ⋅ n ⋅ U T R log(M )
gm = = =
n ⋅U T n ⋅U T R
2
2 ⎛ 1 ⎞ 2 ⎛ 1 ⎞
gm = 2 ⋅ β ⋅ I D = 2 ⋅ β ⋅ ⋅ ⎜ 1 − ⎟ = ⋅ ⎜ 1 − ⎟
β ⋅R ⎝
2
M⎠ R ⎝ M⎠
146
Supply Independent Bias:
Body Effect
VDD
GND
147
Supply Independent Bias:
Body Effect
I2 = Is·exp(Vgs2/(n·UT)) = I
I1 = M·Is·exp(Vgs1/(n·UT)) = I
R
Vgs2 = Vgs1 + R · I
M2 M1
I = log(M)· n·UT / R
GND
R·I
M1
R Vgs1
Vth1
VREF = α1 ⋅ V1 + α 2 ⋅ V2
∂VREF ∂V ∂V
= α1 ⋅ 1 + α 2 ⋅ 2 = 0
∂T ∂T ∂T
150
Negative TC voltage
151
Positive TC voltage (1)
VDD
n·I I
+ ∆Vbe -
k
= 0.087 mV o
K
q
152
Positive TC voltage (2)
VDD
I I
+ ∆Vbe -
1 n
153
Bandgap Reference
VBE -1.5mV/°K
I
α1
T VBE
0.087mV/°K + VREF=α 1·VBE+α 2·ln(n)·VT
VT
ln(n)·VT
α2
generator
T 154
Bandgap Reference
VDD
Making Va = Vb = VREF,
the voltage across R is a ∆VBE
I I
Va Vb
VREF is a linear combination of ∆VBE and VBE
R
155
Bandgap Reference
R1 R2
-
+ Vout
R3
1 n
Q1 Q2
R1=R2
156
Bandgap Reference
157
Bandgap Reference
Collector Current Variation
R1 R2
-
+ Vout
R3
1 n
Q1 Q2
R1=R2
158
Bandgap Reference
Compatibility with CMOS Technology
R1 R2
-
+ Vout
R3
Q1 Q2
1 n
R1=R2
159
Bandgap Reference
Complete Circuit
VDD
Vout
R1 R2
R3
Q1 Q2
1 n
R1=R2
VDD min = ?
160
Bandgap Reference
A Simulation Results
161
Bandgap Reference
OPAMP offset
R1 R2
-
Vos A1
+ + Vout
R3
Q1 Q2
1 n
R1=R2
162
Bandgap Reference
Reduction of the OPAMP offset effect
163
Bandgap Reference
Feedback Polarity
R1 R2
-
+ Vout
R3
Q1 Q2
1 n
R1=R2
164
Bandgap Reference
Supply Dependence and Startup
R1 R2
Y -
+ Vout
X
R3
Q1 Q2
1 n
R1=R2
165
Bandgap Reference
Variations for Different Samples
VREF
VREF
167
Bandgap Reference
Trimming
R1 R2
• To avoid variations for different samples
- the resistors of each samplecan be trimmed
+ Vout in order to cope with poly resistivity and other
process variations.
• Trimming can be implemented by implementing
R3 each resistor by using several series or parallel
resistors and by changing the interconnections
1 n through switches.
• Signal controlling the switches can be stored
Q1 Q2
by using E2 technologies or poly fuses.
R1=R2
168
Bandgap Reference
Another Circuit
169
Bandgap Reference
Speed Issue
170
Bandgap Reference
Speed Issue
171
Bandgap Reference
Noise Issue
172
Bandgap Reference
Another Circuit
Being Iq1 = Iq2 = I
VREF
I I
VREF = VBE1 + 2 · R1 · VT·log(n) / R2
173
Bandgap Reference
Another Circuit
VDD
1 2
VREF
R1
R2
Feedback
Amplifier Q1 Q2
1 n
1 1 1
GND
174
Bandgap Reference
Another Circuit
VDD
VREF
R1
R2
Feedback Q1 Q2
Amplifier 1 n
R R
175
Voltage Source
• The voltage reference is supply and
temperature independent but:
– it is not easily programmable
– some implementations feature a high / medium
output impedance, i.e., they cannot drive low
impedance load (i.e., deliver high current value)
176
Voltage Source
VREF Vdd ⎧ RB // RL
⎪Vout = R + R // R ⋅Vdd
⎨ A B L
RA ⎪ R = A ⋅ (V − V )
A0 ⎩ A 0 out ref
VREF Vdd
⎧ RB // RL
⎪Vout = R + R // R ⋅ Vdd
RA ⎨ A B L
A0 ⎪ R = A ⋅ (V − V )
Vout ⎩ A 0 x ref
RB2 ⎛ RB1 ⎞
Vout = ⎜⎜1 + ⎟⎟ ⋅Vref ∀ Vdd , RL
⎝ RB 2 ⎠
180
Programmable Voltage Source
VREF Vdd
⎛ RB1 ⎞
RA Vout = ⎜⎜1 + ⎟⎟ ⋅Vref ∀ Vdd , RL
A0 ⎝ RB 2 ⎠
Vout
RB1 RL
This circuit is
commonly known as
RB2 Linear Voltage
Regulator
181
Voltage Regulator
What is RA ?
• RA is a voltage / current controlled resistance.
• The relation between the control variable and
the controlled resistance can be non linear but
is must be monotonic !!
• RA can be implemented through a bipolar or a
mos transistor (called pass device), and the
feedback can be implemented through an
operational amplifier.
182
Voltage Regulator with BJT
VREF Vdd VREF Vdd
+ -
- Vout + Vout
RB1 RB1
RB2 RB2
183
Voltage Regulator with MOST
VREF Vdd VREF Vdd
+ -
- Vout + Vout
RB1 RB1
RB2 RB2
184
Voltage Regulator
Low Drop Out (LDO)
⎛ R1 ⎞
VREF Vdd Vout = ⎜⎜1 + ⎟⎟ ⋅ Vref , Vout ∈ (Vref , Vdd − ∆V )
⎝ R2 ⎠
-
• ∆V is called minimum drop-out and
+ represents the minimum VDS needed
Vout to the PMOS pass device to work
properly.
R1 • The PMOS can work both in
saturation and linear region. This
depend from the power supply and
CL the load.
R2 • CL is needed for stabilization and to
deliver currents for fast load
variations
185
LDO Voltage Regulator
Closed Loop Small Signal Analysis
• Small signal considerations cen be done by
supposing:
– fixed load and variable supply
– fixed supply and variable load
• We consider the first condition and the following
assumptions:
– OPA modelled as a first order system with gain A0
and pole d
– Current flowing the resistor ladder neglected
186
LDO Voltage Regulator
Closed Loop Small Signal Analysis
VREF Vdd d1
A0
Guadagno [dB]
+ Vout
R1
VFB
CL
R2 fd1 GBW
Frequenza [Hz]
VOPA =
A0
(V+ − V− ) = A0 (VFB − VREF ) , d1 = A0
1 + s ⋅ d1 1 + s ⋅ d1 2π ⋅ GBW
187
LDO Voltage Regulator
Closed Loop Small Signal Analysis
vdd
S
G
+
vopa -gm (vopa-vdd) 1/gd
D
CL
ic vout
vOPA =
A0
1 + s ⋅ d1
⋅ vOUT vdd = vout +
1
gd
[
⋅ ic + g m ⋅ (vopa − vdd ) ]
188
LDO Voltage Regulator
Closed Loop Small Signal Analysis
gm
1+
v (s ) s+a
T (s ) = out =
gd
= G⋅ 2
vdd (s ) 1 + s ⋅ C L + g m ⋅ A0 s + 2 ⋅ ξ ⋅ ω n ⋅ s + ω n2
gd g d 1 + s ⋅ d1
g m ⋅ 2π ⋅ GBW 1 ⎡ 2π ⋅ GBW ⋅ C L g d ⎤
ωn = , ξ= ⋅⎢ + ⎥
CL g m ⋅ 2π ⋅ GBW ⎣ 2 A0 2⎦
189
LDO Voltage Regulator
Closed Loop Small Signal Analysis
190
LDO Voltage Regulator
Closed Loop Small Signal Analysis
Delta Vout [V] Delta Vout (line regulation)
0.14 0
10
0.12
0.10
0.08 −1
10
0.06
0.04
0.02 −2
10
−0.02
t GBW
−0.04 −3
0 1e−5 2e−5 3e−5 4e−5 5e−5 10 6 7 8
10 10 10
vopa R1
Cpar CL CB
Ropa gd
gma·vfbi -gm·vopa vfbo
R2
Resr
v ofb (s )
T (s ) =
v ifb (s )
193
LDO Voltage Regulator
Open Loop Small Signal Analysis
1 gd
P1 ≈ ⋅ P1
2 ⋅π CL 40
1 1
P2 ≈ ⋅
2 ⋅ π Resr ⋅ C B
Guadagno [dB]
Z1 P2
1 1
P3 ≈ ⋅
20
2 ⋅ π Ropa ⋅ C par
1 1
Z1 ≈ ⋅ P3
2 ⋅ π Resr ⋅ C L 1K 10K 100K 1M
Frequenza [Hz]
194
LDO Voltage Regulator
Open Loop Small Signal Analysis
• Poles and zeroes are not at fixed frequencies; they
depend on load and power supply. This could mean
instability.
– A change in the load and / or the power supply change the
PMOS pass device transconductance and output
conductance, thus changing poles and zeroes positions.
• Load and power supply modify also the open loop
gain.
– For low drop-out (i.e., power supply little bit higher that the
output voltage) the open loop gain is very high. This could
mean instability.
195
LDO Voltage Regulator
Open Loop Small Signal Analysis
VREF Vdd
• Solution: use compensation
techniques in order to improve -
stability.
+ Vout
– Typical compensation
techniques are implemented R1
by using a miller VFB
capacitance.
CL
R2
196
LDO Voltage Regulator
Open Loop Small Signal Analysis
VBAT
1 M M2
M1
Mnativo
Ibias
MOUT
VOUT
C R
M4
M3
VBG R2
Compensation
M : 1 M6 1 : M M8 R1
M5 M7
M9
197
LDO Voltage Regulator
Open Loop Small Signal Analysis
*******
100
Iload=1mA
90
Iload=5mA
Dominat pole
Iload=10mA
80 output capacitor
70
Iload=50mA
60
50
Iload=100mA
40
30
20
0 at "strong" loads
Volts dB (lin)
-20
-30
-40
ESR zero -->
-50
-70
-80
-90
-100
-110
198
LDO Voltage Regulator
Open Loop Small Signal Analysis
*******
-88
-90
• Phase strongly depend
on the load of the
-92
-94
regulator
-96
-98
-102
margin is achieved
-104
-106
Measures (lin)
-110
-112
-114
loop gain is maximum
-116
-118
-120
-122
-124
-126
199
10u 100u 1m 10m
LDO Voltage Regulator
Line and Load regulation
200
LDO Voltage Regulator
Power Supply Rejection Ratio
201
Switching Voltage Regulator
• In the linear voltage regulator the energy is
continuoulsy transfered from the power supply to the
load though a pass device. The transfer is regulated
by feedback, in order to mantain the output voltage
to a fixed value.
• A switching regulator use capacitors and / or
inductors to store energy that is transfered to the
load in discreet packages. The transfer is regulated
by feedback, in order to mantain the output voltage
to a fixed value.
202
Switching Voltage Regulator
Buck Converter
Vdd
Regulating
loop L Iload
Vp
IL
Reference Vout
D
C
203
Switching Voltage Regulator
Buck Converter
Vdd Transient expired and switch closed
Vp
L Iload
Vp
IL t
Vout IL
D
C
t
ton
d IL 1
Vdd − Vout = L ⋅ , IL = ∫ (Vdd − Vo)dt
dt L 204
Switching Voltage Regulator
Buck Converter
Transient expired and switch open
Vdd
Vp
L Iload
Vp t
IL
IL
D Vout
0.6V
C t
ton toff
d IL 1
0.6 − Vout = L ⋅ , IL = − ∫ (0.6 + Vo) dt
dt L
205
Switching Voltage Regulator
Buck Converter
Vp
ton
D= = duty cycle
t ton + toff
IL ∆IL D ∈ (0,1)
1
∫ (Vdd − Vout )dt − ∫ (0.6 + Vout )dt = 0
1
L ton L toff
D
1.2V 50mV R
L Iload
- I
V Vp
+ E
IL
R
Vout
Vout = D ⋅ Vdd
207
BUCK Converter Output Voltage
Vout
nmos
gate
signal
208
Buck Converter
Small Signal Analysis
Vdd
Regulating
loop L
Vp Iload
IL
D Vout
Reference C
Vin Vout
209
Buck Converter
Small Signal Analysis
L Vout
-40dB/decade
+ C
A0·Vin -20dB/decade
Resr
1 1 π/2
fp = fz =
2π LC 2π Resr C
L = 10 µ H , C = 47 µ F , Resr = 150mΩ fp fz
fp ≅ 7 KHz , fz ≅ 22 KHz
fck = 450 KHz 210
Buck Converter
Small Signal Analysis
-40dB/decade
-20dB/decade 1
fp =
2π LC
π 1
fz =
π/2 2π Resr C
fp fz
IL L
D
Iload
Vp
Vout
Regulating
loop C
Reference
212
Switching Voltage Regulator
Boost Converter
Transient expired and switch closed
d IL
Vdd = L ⋅
Vdd dt
1
IL = ∫ Vdd dt
IL L L
Vp
D
Iload
Vp
t
Vout IL
C
t
ton
213
Switching Voltage Regulator
Boost Converter
Transient expired and switch open
d IL
Vdd − 0.6 − Vout = L ⋅
dt
Vdd
IL = ∫ (Vdd − 0.6 − Vout )dt
1
L
IL L
Vp
D
Iload
Vp
t
Vout IL
C
t
ton toff 214
Switching Voltage Regulator
Boost Converter
Vp
ton
D= = duty cycle
t
ton + toff
IL D ∈ (0,1)
216
Power Efficiency
LDO
VREF Vdd
-
Pldo ≈ VDS ⋅ I L = (Vdd − Vout ) ⋅ I L
+ Vout Pload Pload
efficiency = = =
R1 Pdd Pload + Pldo
VFB Vout ⋅ I L Vout
= =
CL Vout ⋅ I L + (Vdd − Vout ) ⋅ I L Vdd
R2
217
Power Efficiency
BUCK Converter
• The load current flows through the
two MOS transistors but since they
works as switches, they VDS is very
low, then they dissipates a very low
L Vout power thus achieving a very high
efficiency
• To have low VDS it is necessay to
C make the MOS very big (for high
load current, e.g., 1A, discrete
Resr
devices are used) so it is necessary
to consider the power lost by the
MOS drivers
218
Power Efficiency
BUCK Converter
100
90
80
70
efficiency %
60
50
40
30
20
10
0
0 100 200 300 400 500 600 700 800 900 1000 1100 1200
ILoad mA
219