Professional Documents
Culture Documents
STANFORD UNIVERSITY
Department of Electrical Engineering
Prof. Boris Murmann
EE214: Analog Integrated Circuit Design
- Autumn 2007/08 -
http://eeclass.stanford.edu/ee214/
Table of Contents
Introduction 3
Lecture 1 CMOS Technology, Long Channel MOS Model 10
Lecture 2 Common Source Amplifier 16
Lecture 3 Technology Characterization: gm/ID 30
Lecture 4 Technology Characterization: fT, gm/gds 42
Lecture 5 gm/ID-based Design 56
Lecture 6 Extrinsic Capacitance 68
Lecture 7 Miller Approximation, ZV Time Constant Analysis 85
Lecture 8 Electronic Noise 96
Lecture 9 Electronic Noise (Continued) 109
Lecture 10 Backgate Effect, Common Gate Stage 118
Lecture 11 Common Drain Stage 130
Lecture 12 Differential Pair 141
Lecture 13 Current Mirrors, Offset Voltage 152
Lecture 14 Process Variations, Feedback 165
Lecture 15 Fully Differential Amplifiers, SC Circuits 175
Lecture 16 Stability, Analysis of Feedback Circuits 185
Lecture 17 Loop Gain Simulation 197
Lecture 18 Two-Stage OTA 209
Lecture 19 Compensation, Noise in Feedback OTAs 218
Lecture 20 OTA Design Considerations 233
Lecture 21 Step Response 258
Lecture 22 Slewing 275
Lecture 23 Feedback and Port Impedances, OTA Variants 285
Lecture 24 Single Ended OTAs, Output Stage Examples 298
Lecture 25 Supply Insensitive Biasing 307
Lecture 26 Bandgap Reference 317
Lecture 27 Bandgap Reference (Continued) 323
Lecture 28 Technology Scaling 332
Lecture 29 Class Summary 348
2
3
EE214
Analog Integrated Circuit Design
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
• Teaching assistants
– Mohammad Hekmat, Bob Wiser, Ross Walker
• Administrative support
– Ann Guerra, CIS 207
• Lectures are televised
– But please come to class to keep the discussion interactive!
• Web page: http://eeclass.stanford.edu/ee214
– Check regularly, especially bulletin board
– Register for online access to grades and solutions
• Only enrolled students can register; we manually control the
access list based on Axess data
• Required text
– Analysis and Design of Analog Integrated Circuits, 4th
Edition, Gray, Hurst, Lewis and Meyer, Wiley, 2001. (On
reserve in Engineering Library)
• Course prerequisites
– EE101B or equivalent
– Basic device physics and models
• PN junctions, MOSFETs, BJTs
– Basic linear systems
• Frequency response, poles, zeros
– Some exposure to a circuit simulator, basic Unix commands
– May consider concurrent enrollment in EE114X to brush up
on the above (primarily for undergraduates)
Assignments
• Homework (20%)
– Handed out on Mondays, due following Monday in class
– Late policy
• Score drops 0.5 dB per hour after deadline
– Lowest HW score will be dropped
– Policy for off-campus students: Fax/email to SCPD before
deadline stated on handout
• Midterm Exam (30%)
• Project (20%)
– Design of an amplifier using HSpice (no layout)
– Work in teams of two
• OK to discuss with other teams, but no file exchange!
• Final Exam (30%)
Honor Code
• The TAs will not give you "the answer times two"…
• They will also NOT debug your Spice deck
– Figuring out what's wrong with your circuit is an essential
component of this class
Circuit Simulation
Learning Goals
Cf
Cs CL
- +
Vsd Vid Vod
+ -
Cs
CL
M4a,b
Cf
M1a,b
Specs:
Loop bandwidth (fc) = 200MHz
Phase margin = 75 degrees
M3a,b M2a,b DR = 72dB
Closed-loop gain =2
Static gain error < 0.5%
Course Topics
Lecture 1
CMOS Technology
Long Channel MOS Model
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 2.8 (MOS fabrication), 2.9 (Active MOS devices)
– 2.10.1 (Resistors), 2.10.2 (Capacitors)
– 1.1, 1.5.0, 1.5.1, 1.5.2, 1.5.3 (Large signal MOS model)
• Introduction
– In this first lecture, we will cover some of the background
that positions EE214 as an introductory course on circuit
design using CMOS technology. In the lectures to come, we
will focus on the problem of amplifier design as a vehicle to
establish a set of considerations that apply to more complex
circuits and also other technologies. At first, we will review
the "long channel model" of a MOS transistor. Driven by
circuit examples, we will later augment this simple model to
include additional effects that are relevant in practice.
Technological Progress
Integrated Circuit
1958 Modern
CMOS
Steve Cowden
THE ORGONIAN
July 2007
Economics
[European
Nanotechnology
Roadmap]
Future Applications
0V VD (>0V)
0V
0V
>0
ID=?
>0
VDS>0
Lecture 2
Common Source Amplifier
Small-Signal Model
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 3.0 (Amplifier basics), 3.1 (Model selection)
– 3.3.2 (Common source amplifer)
– 1.6.0 - 1.6.5 (Small signal MOS model)
• Introduction
– Today we'll complete our derivation of the basic long-
channel MOSFET I-V characteristics. As a next step, we'll
use this simple model to construct our first amplifier – a
common source stage. Looking at its transfer function, we'll
find that treating signals as "small" with respect to the bias
conditions allows us to linearize the circuit. Next, we
generalize this approach and develop a more universal
"plug-and-play" small-signal model for MOS devices that are
biased in the active region.
ID=?
>0
VDS>0
Assumptions
>0
VDS>0
• What we know:
Qn ( y ) = Cox [VGS − V ( y ) − Vt ]
I D = Qn ⋅ v ⋅ W
v = μ⋅E
∴ I D = Cox [VGS − V ( y ) − Vt ] ⋅ μ ⋅ E ⋅ W
dV ( y )
I D = Cox [VGS − V ( y ) − Vt ] ⋅ μ ⋅ E ⋅ W E=
dy
I D dy = WμCox [VGS − V ( y ) − Vt ] ⋅ dV
L VDS
I D ∫ dy = WμCox ∫ [VGS − V ( y ) − Vt ] ⋅ dV
0 0
W ⎡ VDS ⎤
I D = μCox (
⎢ GSV − Vt ) − ⎥ ⋅ VDS
L ⎢⎣ 2 ⎥⎦
• For VDS/2 << VGS-Vt, this looks a lot like a linear resistor: I=1/R × V
• Lets plot this IV relationship...
ID
VGS-Vt
VDS
Pinch-Off
– VGS +
+ VDS –
N N
Qn(y), V(y)
Triode Active
Region Region
ID
VGS-Vt
VDS
W ⎡ V ⎤
Triode Region: I D = μCox ⎢(VGS − Vt ) − DS ⎥ ⋅ VDS
L ⎢⎣ 2 ⎥⎦
W ⎡ (VGS − Vt ) ⎤ 1 W
Active Region: I D = μCox
L ⎢⎣(VGS − Vt ) − 2 ⎥
⎦
⋅ (VGS − Vt ) = μCox (VGS − Vt ) 2
2 L
VDS
1 W
I D ≅ μCox (VGS − Vt )2 ≅
2 L
old "VCCS"
e sh ACTIVE
VGS-Vt hr ...)
b-T
at er
Su re
l
TRIODE
o
(m
I D ≅ μCox
W
L
⎡ VDS ⎤
⎢⎣(VGS − Vt ) − 2 ⎥⎦ ⋅ VDS ≅
Vt VGS
Model Accuracy
1 W 1 W
I D = μCox (Vi − Vt )2 Vo = VDD − μCox (Vi − Vt )2 ⋅ R
2 L 2 L
Biasing
• Need some sort of "battery" that brings input voltage into useful
operating region
• Define VOV=VI-Vt, "quiescent point gate overdrive"
– VOV=VGS-Vt with no input signal applied
VO ΔVo
ΔVi
"Signal" VOV
"Bias"
VI
2I D ⎡ ΔVi ⎤
ΔVo = − ⋅ R ⋅ ΔVi ⎢1 + ⎥
VOV ⎣ 2VOV ⎦
dVo 2I
= − D ⋅R
dVi V =V VOV
i I
• Graphical illustration:
dVo/dVi
VO
VOV
VI
Transconductance
• The parameter that relates small signal gate voltage to drain
current is called transconductance (gm), or y21 in two-port
nomenclature
• The transconductance is found by differentiating the large signal
I-V characteristic of the transistor in its operating point
1 W
I D = μCox (VGS − Vt )2
2 L
id ∂I W W
gm = = D = μCox (VGS − Vt ) = μCox VOV
vgs ∂VGS L L
2I D
gm =
VOV
S W D
L
C GC
C CB
Transistor Off
G
S W D
L
C GC
C CB
Forward
Subthreshold Triode
Active
Cgs 0 ½ WLCox 2/
3 WLCox
Cgd 0 ½ WLCox 0
−1
⎛ 1 1 ⎞
Cgb ⎜⎜ + ⎟⎟ 0 0
⎝ CCB WLCox ⎠
ε Si
CCB = WL
xd
Triode Active
Region Region
Finite dID/dVDS
ID
VGS-Vt
VDS
1 W
ID = μCox ( VGS − Vt )2 ( 1 + λVDS )
2 L
Operating Point
VDS
dI D d ⎡1 W ⎤
g ds = = ⎢ μCox ( VGS − Vt )2 ( 1 + λVDS )⎥
dVDS dVDS ⎣ 2 L ⎦
1 W
= μCox ( VGS − Vt )2 ⋅ λ
2 L
λI D
= ≅ λI D
1 + λVDS
2I D
gm =
VOV
2
C gs = WLCox
3
g ds ≅ λ ⋅ I D
Lecture 3
Common Source Amplifier Performance
Technology Characterization: gm/ID
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 1.6.8 (Transit Frequency)
– 1.8 (Weak Inversion)
• Introduction
– Having established some basic modeling tools, we will now
begin to look at the performance of our common source stage:
bandwidth, power dissipation and maximum gain. We'll find that
these metrics are proportionally related to fundamental
performance measures of the MOS device: transit frequency
(gm/Cgs), current efficiency (gm/ID) and "intrinsic gain" (gm/gds) .
After looking at gm/ID in our EE214 0.35-μm technology, we find
that additional modeling is needed to explain the behavior of this
parameter as a function of the gate overdrive VOV. As a first
refinement, we discuss the behavior at subthreshold bias, i.e.
VOV<0.
vo ( s ) 1
H( s ) = = − gm R ⋅
vi ( s ) 1 + sRi C gs
Performance Measures
• DC voltage gain
¾ ADC specification and R set ADC = − g m R
required gm
• Bandwidth
1 1
¾ Want small Cgs to maximize f −3dB =
bandwidth
2π Ri C gs
• Power dissipation
¾ Want small ID to minimize power P = VDD ⋅ I D
dissipation
• VOV is the "knob" that let's us trade power efficiency (gm/ID) for
speed (gm/Cgs)!
gm/I D
gm/Cgs
VOV
Product
gm/I D
gm/I D*gm/Cgs
gm/Cgs
VOV
• While this result looks boring, it shows that using smaller
channel lengths improves circuit performance
– Either or both speed and power efficiency
B. Murmann EE 214 Lecture 3 7
Scaling Impact
• Thanks to "Moore's Law" feature sizes and thus the available
minimum channel lengths have been shrinking continuously
– Lmin decreases roughly 2x every 5 years
– Lmin=10μm in 1970, Lmin=45nm in 2007
• From the above discussion, it is clear that we can exploit
technology scaling in different ways
– Build faster circuits (gm/Cgs), while keeping power efficiency
constant (gm/ID)
• E.g. A/D converter for a disk drive - want to maximize
bandwidth/throughput
– Build more power efficient circuits (gm/ID), while keeping the
bandwidth constant (gm/Cgs)
• E.g. A/D converter for video signals - bandwidth fixed by a
certain standard
+ ωmax
• A step into the right direction for quantifying the high frequency
capability of a MOSFET is to look at its power gain with gate
sheet resistance effects included
– The quantity ωmax is defined as the frequency at which the
magnitude of the common source power gain falls to unity
– Also known as "maximum frequency of oscillation"
1 ωT
ωmax =
2 rgateC gd
(more in EE314…)
Intrinsic Gain
• With RL→∞, the basic common source stage achieves its
maximum possible voltage gain or "intrinsic gain"
– This is yet another interesting figure of merit for a transistor
ADC = g m R = g m (RL || ro )
gm
ADC ,max = g m ro =
g ds
1 gm 2
≅ =
λ I D λVOV
• Interestingly, it will turn out that the voltage gain of other, more
complicated circuits (e.g. op-amps) is fundamentally linked to
the intrinsic device gain gm/gds
gm 2
=
• Current Efficiency ID V OV
gm 3 μ V OV
• Transit Frequency =
C gs 2 L2
gm 2
• Intrinsic Gain ≅
g ds λ V OV
gm/ID Simulation
.param gs=1
vds d 0 dc 1.5V
vgs g 0 dc 'gs'
mn1 d g 0 0 nch214 L=0.35um W=10um
.op
.dc gs 0.4V 1.2V 10mV
.probe ov = par('gs-vth(mn1)')
.probe gm_id = par('gmo(mn1)/i(mn1)')
Result
40
35 EE214 technology
2/VOV
30
BJT (q/kT)
25
gm/I D [S/A]
20
15
10
0
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
V [V]
OV
Observations
• Our long channel predication is fairly close for VOV > 150mV
• Unfortunately gm/ID does not approach infinity for VOV → 0
• It also seems that we cannot do better than a BJT, even though
the long channel equation would predict that for 0 < VOV < 2kT/q
≅ 52mV at room temperature
• For further analysis, it helps to identify three distinct operating
regions
– Strong inversion: VOV > 150mV
• Deviations due to short channel effects
– Subthreshold: VOV < 0
• Behavior similar to a BJT, gm/ID nearly constant
– Moderate Inversion: 0 < VOV < 150mV
• Transition region, an interesting mix of the above
Subthreshold Operation
• A plot of the device current in our previous simulation:
0
1 10
-1
0.8 10
-2
0.6 10
I D [mA]
I D [mA]
-3
0.4 10
-4
0.2 10
-5
0 10
-0.5 0 0.5 1 -0.5 0 0.5 1
VOV [V] VOV [V]
• Questions:
– What determines the current when VOV< 0, i.e. VGS< Vt?
– What is the definition of Vt?
Definition of Vt
3.E-07
2.E-07
1.E-07
0.E+00
-1.0 -0.5 0.0 0.5 1.0
VOV [V]
1.E-07
1.E-08
Mobile Charge [C]
1.E-09
1.E-10
1.E-11
1.E-12
1.E-13
1.E-14
1.E-15
1.E-16
-1.00 -0.50 0.00 0.50 1.00
VOV [V]
BJT Similarity
• We have
– An NPN sandwich, mobile minority carriers in the P region
• This is a BJT!
– Except that the base potential is here controlled through a
capacitive divider, and not directly an electrode
Subthreshold Current
• We know that for a BJT
I C ≅ I S ⋅ eVBE /( kT / q )
Subthreshold Transconductance
dI D 1 I D ⋅ q g m dI D 1 q
gm = = = =
dVGS n kT I D dVGS n kT
• Similar to BJT, but unfortunately n (≅1.5) times lower
40
35 EE214 technology
30
~1.5x 2/VOV
BJT (q/kT)
25
gm/I D [S/A]
20
15
10
0
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
VOV [V]
Lecture 4
Short Channel Effects
Technology Characterization: fT, gm/gds
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 1.7 (Short Channel Effects)
• Introduction
– Today, we continue our discussion on gm/ID modeling in a
MOS device. We explain the remaining discrepancies with
the long channel model and then move on to an examination
of gm/Cgs (fT) and gm/gds. In conclusion, we find that the long
channel model cannot accurately predict either performance
metric we care about (gm/ID, gm/Cgs and gm/gds). As a solution
to this problem, we will explore a chart-based design
methodology in the remainder of this course.
Re-cap
40
35 EE214 technology
2/VOV
30
BJT (q/kT)
Subthreshold
25 Operation
gm/I D [S/A]
20
?
15
10
?
5
0
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
V [V]
OV
Moderate Inversion
• In the transition region between subthreshold and strong
inversion, we have two different current mechanisms
Drift (MOS) - ν = μ E
dn kT dn
Diffusion (BJT) - ν = D = μ
dx q dx
• Both current components are always present
– Neither one clearly dominates around Vt
• Can show that ratio of drift/diffusion current ~(VGS-Vt)/(kT/q)
– MOS equation becomes dominant at several kT/q
• One way to close the gap between the two regimes is to work
with a mathematical fit
– Sometimes useful for computer optimization, not so great for
hand analysis…
B. Murmann EE 214 Lecture 4 4
44
25
20
m D
g /I
15
10
0
0 0.1 0.2 0.3 0.4 0.5
V [V]
OV
15
EE214 technology
2/V
OV
g /I [1/V]
10
m D
0
0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
VOV [V]
μE
ν=
E
Approximation: 1+
Ec
E>>Ec ⇒ v=vscl=μEc
E=Ec ⇒ v=vscl/2
VOV 200mV V
E= e.g. = 0.57 ⋅106
L 0.35μm m
Field Estimates
• In our 0.35μm technology, we have for an NMOS device
m
1.73 ⋅ 10 5
vscl s = 6.2 ⋅106 V
Ec = =
μ m2 m
0.028
Vs
NMOS PMOS
0.35μm 2V 8V
0.13μm 0.6V 2.4V
Summary – gm/ID
• The long channel model does not predict gm/ID with reasonable
accuracy in any operating regime
– Accuracy also tends to get worse in newer technology
• Once again, we'll find a way to deal with this in practice
• Simple trick: Change of design variables
– Instead of "thinking", in terms of VOV, we will use gm/ID as a
design variable, and not as an unknown that is determined
from our choice of VOV (or other long channel model
parameters)
• "gm/ID design methodology" - more later…
fT Simulation
.param gs=1
vds d 0 dc 1.5V
vgs g 0 dc 'gs'
mn1 d g 0 0 nch214 L=0.35um W=10um
.op
.dc gs 0.4V 1.2V 10mV
.probe ov = par('gs-vth(mn1)')
.probe ft = par('1/2/3.142*gmo(mn1)/(-cgsbo(mn1))')
Result
NMOS W/L=10/0.35
30
EE214 technology
25 Long Channel Fit
20
f [GHz]
15
T
10
0
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
VOV [V]
1 3 μVOV
Long channel model: fT =
2π 2 L2
Observations - fT
gm/ID· fT
NMOS W/L=10/0.35
160
100
40 Short channel
Long channel predicts effects
20 too much gm/ID
0
-0.1 0 0.1 0.2 0.3 0.4 0.5
VOV [V]
gm 1 3μ
Long Channel: ⋅ fT =
ID 2π L2
.param gs=1.5
mn1 d g 0 0 nch214 L=0.35um W=10um
vg g 0 dc 'gs'
vd d 0 dc 1.5
.op 1.5V
.dc gs 0 1.5 10m
Result
NMOS, W/L=10/0.35, V =1.5V
DS
100
80
60
gm/gds
40
20 EE214 Technology
Long Channel Model, λ=0.1
0
-0.2 0 0.2 0.4 0.6 0.8
V [V]
OV
1000
gm/gds
500
0
-0.2 0 0.2 0.4 0.6 0.8
VOV [V]
• Curve is also closer to long channel model, but still far off for small VOV…
• Also, as expected, gm/gds is larger for a device with longer channel length
Dependence on VDS
• The long channel model predicts that gds and gm/gds are independent
of VDS
– As long as device is biased in active region
• This is also no longer true in modern devices
– gds (and therefore gm/gds) shows a significant dependence on VDS
OP1
VDS
.param vt1=571.5m
vg g 0 dc 'vt1+0.2'
vd d 0 dc 1.5
.op
.dc vd 0 3 10m
Result
70
1
gm [S]
60
0.5
50
0
0 1 2 3
gm/gds
40 VDS [V]
4
x 10
30 6
4
1/gds [Ω]
20
10 2
0 0
0 0.5 1 1.5 2 2.5 3 0 1 2 3
VDS [V] VDS [V]
Gradual Onset
70 1
gm [S]
Triode "Active"
60 0.5
50 0
0 0.2 0.4 0.6 0.8 1
gm/gds
VDS [V]
40
4
x 10
6
30
4
1/gds [Ω]
20
2
10
0
0 0 0.2 0.4 0.6 0.8 1
0 0.2 0.4 0.6 0.8 1 VDS [V]
VDS [V]
+ gds nonlinearity
• Is vds really a "small signal"?
• The small signal approximation for gds becomes somewhat
inappropriate when the vds swing spans a large fraction of a
nonlinear ID-VDS characteristic
• Luckily, in most practical situations, other (well understood)
sources of nonlinearity dominate (e.g. transconductance)
ID
OP
OP1
VDS
• By now, it should be clear that the long channel model does not
accurately predict the performance of a modern MOS device
– There is no simple expression that accurately links gm/ID, fT and
gm/gds to "long channel design parameters" such as VOV
– VOV also doesn't predict the onset of active operation ("Vdsat") all
that well
• In EE214, we will use the long channel model only to understand trends
and proportionalities
– For design and optimization, we'll need a more accurate approach
• Key idea
– The primary variables we care about from a performance
perspective are gm/ID, fT and gm/gds
– So why not work directly with these variables?
• Using Spice-generated design charts and/or look-up tables
• We'll look at this idea using a few design examples
Lecture 5
gm/ID-Based Design
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Introduction
– In the past two lectures, we have learned that the long
channel model does not accurately predict the performance
of modern MOS devices. Hence, we switch toward a
strategy in which circuit-oriented performance metrics (such
as gm/ID) are used directly for design and optimization. For a
chosen operating point (gm/ID), other relevant parameters
(such as the device width) are determined using Spice-
generated design charts that serve as a replacement for
(inaccurate) model equations.
Overview
• References
– F. Silveira et. al. "A gm/ID based methodology for the design
of CMOS analog circuits and its application to the synthesis
of a silicon-on-insulator micropower OTA," IEEE Journal of
Solid-State Circuits, Sept. 1996, pp. 1314-1319.
– D. Foty, M. Bucher, D. Binkley, "Re-interpreting the MOS
transistor via the inversion coefficient and the continuum of
gms/Id," Proc. Int. Conf. on Electronics, Circuits and Systems,
pp. 1179-1182, Sept. 2002.
– Denis Flandre's Notes: "Méthodologie gm/ID: un chaînon
entre l'analyse symbolique et la synthèse de circuits
analogiques basse puissance," available at
http://www.comelec.enst.fr/taisa/Presentations/DenisFlandre.pps
– B. E. Boser, "Analog Circuit Design with Submicron
Transistors," IEEE SSCS Meeting, Santa Clara Valley, May
19, 2005, http://www.ewh.ieee.org/r6/scv/ssc/May1905.htm
Design Example 1
3V
IB
Vo
RL CL
vi
1.5V
VB
• Given specifications
– DC gain=-2, IB ≤ 2mA, f-3dB=100MHz, CL=10pF
– Minimize transistor area (L=Lmin, W as small as possible)
Does ro Matter?
ADC = g m (RL || ro )
−1
⎛ 1 1⎞
= g m ⎜⎜ + ⎟⎟
⎝ RL ro ⎠
1 1 1
= +
ADC g m RL g m ro
1 1 1
= +
2 g m RL g m ro
g m 12.6mS 1
• Using all the available current, we have = = 6.3
ID 2mA V
80
70
60
ID /W [μA/μm]
50
40
30
20
10
0
0 5 10 15 20 25
gm /ID [S/A]
23μA/μm
I /W [μA/μm]
1
10
D
0
10
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
gm /ID [S/A]
6.3 1/V
B. Murmann EE 214 Lecture 5 9
Spice Verification
I 2000
• So, the device width is W= D
ID
= μm = 87 μm
23
W
VB Vo
vi
MN2 MN1 RL CL
1.5V
DC Operating Point
g m 13.074 mS 1
= = 6.1
I D 2.1548 mA V
AC Response
7
6.03dB = 2.003
6
5
|vo/vi| [dB]
0 0 1 2
10 10 10
f [MHz]
VDS=0.5V
VDS=1.5V
VDS=2.5V At gm/ID = 6.3 1/V:
VDS=2.5V
1
VDS=0.5V ID/W = 21.8 A/m (VDS=0.5V)
10
I D/W [uA/um]
∴ Insignificant dependence
on VDS; OK to use a single
chart for design (e.g.
VDS=1.5V)
0
10
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
gm/I D [1/V]
gm/gds
2
10
5 10 15 20
gm/I D [S/A]
2
10
gm/gds
1
10
5 10 15 20
gm/I D [S/A]
1
10
I D/W [A/m]
0
10
5 10 15 20
gm/I D [S/A]
1
10
I D/W [A/m]
0
10
-1
10
5 10 15 20
gm/I D [S/A]
−2
gm 2 ID 1 1 2 1⎛ I ⎞
Long channel: = = μCox VOV = μCox ⎜⎜ 2 D ⎟⎟
I D VOV W 2 L L ⎝ gm ⎠
gm ID ⎛ ⎛ g ⎞⎞
General case: = f (VOV ) = g (VOV ) = g ⎜⎜ f −1 ⎜⎜ m ⎟⎟ ⎟⎟
ID W ⎝ ⎝ ID ⎠⎠
Lecture 6
Extrinsic Capacitance
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 1.6.7 (Parasitic Elements)
• Introduction
– In today's lecture, we'll look at another CS amplifier design
example – this time with an input source that has a relatively
large resistance. Through this example, we find that we need
more modeling to accurately predict the resulting pole at the
gate node. Our discussion leads to a discussion of parasitic
extrinsic capacitors around the MOSFET - overlap and
junction capacitance.
Design Example 2
VDD
IB
Vo + +
Transducer Ri
vi vgs Cgs gmvgs ro RL vo
RL - -
Ri
vi
1.5V
VB v (s) 1
H( s ) = o = − g m ( ro || RL ) ⋅
vi ( s ) 1 + sRi C gs
DC gain Frequency
• Given specifications Dependence
– DC gain=-4, IB ≤ 0.5mA
– RL=1k, Ri=10k
– Maximize and estimate bandwidth
Hand Calculation
• Just as in the previous design example, we know that
gm/gds >> |ADC|. Hence we simply find
ADC ≅ − g m RL = −4
4
gm = = 4 mS
1kΩ
• In order to maximize bandwidth, we need to make Cgs (and
hence W) as small as possible. Again, this is the case for using
up all the available current
gm 4mS 1
= =8
I D 0.5mA V
25
20
16GHz
f T [GHz]
15
10
0
0 5 10 15 20 25
gm/I D [1/V]
Bandwidth
• Using the transit frequency chart, we find
1 gm 1 4mS
C gs = = = 40 fF
2π fT 2π 16GHz
1 1 1 1
f −3dB = = = 398MHz
2π Ri C gs 2π 10k ⋅ 40 fF
• As a last step, we use the current density chart to find the device
width
15.5μA/μm
1
10
I D/W [uA/um]
0
10
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
gm/I D [1/V]
Spice Verification
I 500
• Device width W= D = = 32μm
ID 15.5
W
• Simulation circuit
DC Operating Point
**** mosfets
element 0:mn2 0:mn1 beta 22.1486m 22.1424m
model 0:nch214 0:nch214 gam eff 894.1238m 894.1238m
region Saturati Saturati gm 3.9889m 4.2006m
id 500.0000u 549.5104u
gds 84.1846u 73.4138u
ibs 0. 0.
gmb 894.3095u 927.0356u
ibd 0. 0.
vgs 806.0164m 806.0164m cdtot 49.1459f 43.2542f
vds 806.0164m 1.4505 cgtot 56.5600f 56.5745f
vbs 0. 0. cstot 108.9160f 108.8336f
vth 584.0239m 573.2955m cbtot 118.8806f 113.0007f
vdsat 172.3376m 178.0416m
cgs 39.4669f 39.3691f
vod 221.9925m 232.7209m
cgd 7.2418f 7.2416f
g m 4.2mS S
= = 7.65 C gs = 39.4 fF Good agreement.
I D 549 μA A
Frequency Response
15
11.85dB = 3.91
3dB
10
|vo/vi| [dB]
0 0 1 2 3
10 10 10 10
f [MHz]
Interpretation
Extrinsic Capacitance
Cjsb Cjdb
• Overlap capacitance
– Gate to source and gate to drain
• Junction capacitance
– Source to bulk and drain to bulk
B. Murmann EE 214 Lecture 6 12
74
Overlap Capacitance
• Two components
– Direct overlap ~ CoxWLoverlap
– Additional component due to fringing field
• Non-negligible in modern technology (gate thickness is large
compared to other feature sizes)
• EE214 technology parameters (capacitance per width)
– NMOS: Col= 0.23fF/μm
– PMOS: Col= 0.48fF/μm
Junction Capacitance
• Two components
– Area (AS, AD) and Perimeter (PS, PD)
AD ⋅ C j PD ⋅ C jsw
C jdb = mj
+ mjsw
⎛ VDB ⎞ ⎛ VDB ⎞
⎜1 + ⎟ ⎜1 + ⎟
⎝ PB ⎠ ⎝ PB ⎠
EE214
Cj Cjsw mj, mjsw PB
Technology
NMOS 0.85 fF/μm2 0.49 fF/μm 0.39 0.51V
PMOS 1.11 fF/μm2 0.48 fF/μm 0.48 0.93V
AS = AD = 1μm ⋅ W
PS = PD = 2 μm + 2W
(1μm=2*hdif)
AS = 1μm ⋅W
W
AD = 1μm ⋅
2
PS = 4 μm + 2W
PD = 2 μm + W
12
Cgs
Capacitance [fF]
10
8
Cgd
6
4
Cgb
2
0
0 0.5 1 1.5 2 2.5 3 3.5
V [V]
GS
Observations
Improved Definition of fT
• So far, we had
1 gm
fT =
2π C gs
1 gm 1 gm
fT = =
2π C gs + C gb + C gd 2π C gg
• The curve on the following slide was generated with the HSpice
deck shown on slide 15, lecture 4, using the following command
– .probe ft = par('1/2/3.142*gmo(mn1)/cggbo(mn1)')
20
fT [GHz]
15
11.25
10
0
0 5 10 15 20 25
gm /ID [S/A]
14
12
10
f T [GHz]
5 10 15 20
gm/I D [S/A]
5
f T [GHz]
5 10 15 20
gm/I D [S/A]
(gm/ID)*fT, NMOS
EE214 technology, NMOS, 0.35...0.7um
90
80
70
gm/I D*f T [GHz*S/A]
60
50
40
30
20
5 10 15 20
gm/I D [S/A]
(gm/ID)*fT, PMOS
EE214 technology, PMOS, 0.35...0.7um
40
35
30
gm/I D*f T [GHz*/A]
25
20
15
10
5 10 15 20
gm/I D [S/A]
* well-to-substrate diode
* example instantiation (area = 10um*10um = 100pm^2)
* (anode) (cathode) (model) (area)
* d1 sub_node well_node dwell 100p
+ A Note on Transcapacitance
• It turns out that this complicated model still doesn't describe the
parasitics with 100% accuracy
– Since MOSFETS are 4-terminal devices, we are really
dealing with a "4-terminal capacitor" and not with a network
of simple two-terminal capacitors
• In practice, such "transcapacitance" effects are rarely relevant
for design & hand analysis
– Model based on two-terminal capacitors is usually good to
within a few percent
– We'll simply ignore transcapacitance and use Spice as a
final check to see if this was OK…
• In case you are curious about more details, please refer to
section "Introducing Transcapacitance" in the HSpice manual
0.2 0.2
0 0
5 10 15 20 5 10 15 20
g /I [S/A] gm/I D [S/A]
m D
NMOS: PMOS:
kgdn=Cgd/Cgg ≅0.13 kgdp=Cgd/Cgg ≅0.26
kdbn=Cdb/Cgg ≅0.65 kdbp=Cdb/Cgg ≅0.80
gm
ID
C gd
C gg
gm
C gg
Cdb
C gg
gm
g ds
Lecture 7
Miller Approximation
Zero-Value Time Constant Analysis
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 7.1, 7.2.0, 7.2.1 (Miller Effect in CS Stage, only pp. 488-493)
– 7.3.0, 7.3.1 7.3.2 (Zero-Value Time Constant Analysis)
– 7.3.3 (Cascade Amplifier Frequency Response)
– Supplementary document "Bandwidth estimation techniques," by
Tom Lee (optional, see website).
• Introduction
– Last lecture, we found that using a simple circuit model based on
intrinsic capacitance only is not sufficient for accurate bandwidth
prediction in our CS stage. Having learned about the involved
extrinsic capacitances, we are now in a position to improve our
hand analysis and match the Spice result with good precision. To
simplify the analysis, we will utilize the so-called "Miller
Approximation." Next, we will take at look at the the "Zero-Value
Time Constant Analysis" as an alternative method, which is useful
for a much broader class of circuits.
H( s ) = ?
≅ RL
B. Murmann EE 214 Lecture 7 3
i( s )
Y( s ) =
vgs ( s )
⎛ C ⎞
⎜ 1 − s gd ⎟
i( s ) gm
∴Y ( s ) = = (1 − Av ( s )) ⋅ sC gd with Av ( s ) = − g m RL ⎜⎜ ⎟
⎟
vgs ( s ) 1 + sRL C gd
⎜ ⎟
⎝ ⎠
Miller Approximation
• Assuming that the poles and zeros in Av(s) occur at much higher
frequencies than the bandwidth we are trying to estimate, it is
OK to replace Av(s) with its DC value
– This is known as the "Miller approximation"
– It is always a good idea to check (later) if the approximation
was indeed valid!
• With the Miller approximation, we have
Y ( s ) ≅ (1 + g m RL ) ⋅ sC gd
Generalization
vtest vtest Z
Z in = = =
itest vtest − A v
v test 1 − Av
Z
Yin = Y (1 − Av )
• Interesting cases
– Av=0 ⇒ Zin=Z (no surprise…)
– Av=1 ⇒ Zin=∞
• "Bootstrapping"
– Av>1, e.g. Av=2 ⇒ Zin=-Z (negative!)
– Av<0, ⇒ Zin=Z/(1+|Av|)
• Impedance reduction
1 1
f −3dB ≅
[
2π Ri C gs + C gb + (1 + g m RL ) ⋅ C gd ]
• Very simple!
– At least much simpler than using exact expressions
• See e.g. equation 7.19 in the text
• Next, we'll verify if the involved assumptions hold in our example
circuit, and also see how accurately we can match Spice
Ri
+ i(s) +
vi vgs Cgs+Cgb Y(s) gmvgs RL Cdb vo
- -
⎛ C ⎞
⎜ 1 − s gd ⎟
v (s) gm ⎟
∴ Av ( s ) = o = − g m RL ⎜⎜
vgs ( s ) 1 + sRL ( C gd + Cdb ) ⎟
⎜ ⎟
⎝ ⎠
• Zero is unchanged, but Cdb lowers pole frequency
• Using Cdb ≅ Cgg·0.65, we find Cdb ≅ 37fF, and hence
1 1 1 1
= = 3.6 GHz
2π RL ( C gd + Cdb ) 2π 1kΩ ⋅ ( 7.4 fF + 37 fF )
⎛ C ⎞
⎜ 1 − s gd ⎟
vo ( s ) ⎜ gm ⎟
Av ( s ) = = − g m RL ⎜
vgs ( s ) 1 + sRL ( C gd + Cdb + CL ) ⎟
⎜ ⎟
⎝ ⎠
• Suppose CL=10pF, then
1 1 1 1
≅ = 16MHz << 180MHz !
2π RL ( C gd + Cdb + C L ) 2π 1kΩ ⋅10 pF
Example (1)
• Step 1:
τ 1 = Ri C1
Example (2)
• Step 2:
τ 2 = ( Ri + RL + g m RL Ri )C2
• Step 3: R3o = RL
τ 3 = RLC3
1 1 1 1
∴ f −3dB ≅ =
2π τ 1 + τ 2 + τ 3 2π Ri C1 + ( Ri + RL + g m RL Ri )C2 + RL C3
1 1
∴ f −3dB ≅ = 175MHz
2π τ 1 + τ 2 + τ 3
• Not bad!
– Spice simulation gave 184MHz
– Miller approximation result was 184MHz
Inclusion of CL
• What happens if again, we consider adding a large load
capacitance (CL)?
C1 = C gs + C gb = 49.6 fF τ 1 = 10kΩ ⋅ 49.6 fF = 496 ps
C2 = C gd = 7.4 fF τ 2 = ( 5 ⋅10kΩ + 1kΩ ) ⋅ 7.4 fF = 377 ps
C3 = Cdb + C L ≅ 10 pF τ 3 = 1kΩ ⋅10 pF = 10,000 ps
1 1
∴ f −3dB ≅ = 14.6MHz
2π τ 1 + τ 2 + τ 3
• Now the third time constant dominates and significantly reduces
our bandwidth estimate
• Looks like this is a powerful method
– Miller effect is taken care of, output loading effect is included
• Most importantly though, the method provides us with insight
about the limiting elements in our circuit!
B. Murmann EE 214 Lecture 7 19
A Simple Example
1 0.644 0.5
ω−3dB = ⋅ 2 −1 = ω−3dB =
RC RC RC
Lecture 8
Electronic Noise
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 11.1 (Noise Introduction)
– 11.2.2 (Thermal Noise)
– 11.3.3 (MOS Transistor Noise)
– Supplementary Handout: "Introduction to Noise" by Daniel Cooley
• Introduction
– Electronic noise is a significant and fundamental issue in the design
of high performance analog circuits. The noise level of a circuit
affects the "fidelity" or accuracy of the signals that are being
processed. As we shall see, minimizing electronic noise is costly;
there exists a steep tradeoff with power dissipation and bandwidth.
Today's lecture will provide an introduction to electronic noise at the
component level (resistors and MOSFETs). We will use these
results in the remainder of the course to analyze the impact of
noise in various circuits.
Types of Noise
• "Man made noise", interference noise
– Signal coupling
– Substrate coupling
– Finite power supply rejection
– Solutions
• Fully differential circuits
• Layout techniques
• "Electronic noise" or "device noise" (focus of this lecture)
– Fundamental
• E.g. "thermal noise" caused by random motion of carriers
– Technology related
• "Flicker noise" caused by material defects and "roughness"
Signal-to-Noise Ratio
2
Psignal Vsignal
SNR = ∝
Pnoise Pnoise
"Signal" "Noise"
http://www.soe.ucsc.edu/~htakeda/kernelreg/kernelreg.htm
Topics/Questions
Ideal Resistor
i(t)
1V/1kΩ
Physical Resistor
i(t)
1V/1kΩ
Average Power
• For a deterministic current signal with period T, the average
power is given by
T/2
1
Pav = ∫ i 2 (t ) ⋅ R ⋅ dt
T −T / 2
• This definition can be extended to capture non-deterministic
random signals
– Assuming a real, stationary and ergodic random process
T/2
1
in2 (t ) ⋅ R ⋅ dt
T →∞ T ∫
Pn = lim
−T / 2
f
• The total average noise power Pn in a particular frequency band
can be found by integrating the PSD
f2
Pn = ∫ PSD( f ) ⋅ df
f1
PSD( f ) = n0 = 4 ⋅ kT
Pn = ∫ 4 kT ⋅ df = 4 kT ⋅ ( f 2 − f 1 ) = 4 kT ⋅ Δf
f1
Pn 1
vn2 = Pn ⋅ R = 4 kT ⋅ R ⋅ Δf in2 = = 4 kT ⋅ ⋅ Δf
R R
For R = 1kΩ : For R = 1kΩ :
vn2 V2 in2 A2
= 16 ⋅ 10 −18 = 16 ⋅ 10 − 24
Δf Hz Δf Hz
vn2 in2
= 4 nV / Hz = 4 pA / Hz
Δf Δf
(
vn2 = vn1 − vn 2 )
2
= vn21 + vn22 − 2 ⋅ vn1 ⋅ vn 2
id2 = 4 kT ⋅ γ ⋅ g m ⋅ Δf
[Scholten]
vd dd 0 1.5
vm dd d 0
vg g 0 dc 0.8 ac 1 1.5V
mn1 d g 0 0 nch214 L=0.35u W=10u dd
h1 c 0 ccvs vm 1 c
0V
.op
d
.ac dec 100 10k 1gig CCVS
.noise v(c) vg 1V/A
HSpice ("outnoise")
4kT*2/3*gm
(gm=1.28mS)
-22
10
avg(id2)/df [A 2/Hz]
-23
10
-24
10 -2 -1 0 1 2 3
10 10 10 10 10 10
f [MHz]
1/f Noise
• Also called "flicker noise" or "pink noise"
• Caused by traps near Si/SiO2 interface that randomly capture and
release carriers
• Occurs in virtually any device, but is most pronounced in MOSFETS
• One (empirical) way to model flicker noise: Kf 2
gm Δf
– Known as "NLEV=2" HSpice model i12/ f =
Cox W ⋅L f
• For other models, see HSpice manual or
– D. Xie et al, "SPICE Models for Flicker Noise in n-MOSFETs from
Subthreshold to Strong Inversion," IEEE Trans. CAD, pp. 1293-
1303, Nov. 2000
• Kf is strongly dependent on technology; numbers for EE214 0.35μm
CMOS technology:
– Kf,NMOS = 0.5·10-25 V2F
– Kf,PMOS = 0.25·10-25 V2F
Kf 2 Kf
gm Δf 1 gm
= 4 kTγ ⋅ g m ⋅ Δf ⇒ f co =
Cox W ⋅ L f co 4 kTγ Cox W ⋅ L
Kf 1 1 ⎛ gm ⎞⎛ I D ⎞
= ⎜ ⎟⎟⎜ ⎟
4 kTγ Cox L ⎜⎝ I D ⎠⎝ W ⎠
Spectrum [A2/Hz]
-20
10
-21
10
10
-22 • For circuits with
-23 "high bandwidth",
10
flicker noise is often
2 4 6 8
10 10 10 10 insignificant
f [Hz]
– Beware of
exceptions…
Sqrt(Integral) [nA]
100
50
0 2 4 6 8
10 10 10 10
f [Hz]
Noiseless!
Kf 2
gm Δf
id2 = 4 kT ⋅ γ ⋅ g m ⋅ Δf +
Cox W ⋅L f
Lecture 9
Electronic Noise (Continued)
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 11.4 (Circuit Noise Calculations)
– 11.5 (Equivalent Input Noise Generators)
– 11.9 (Noise Bandwidth)
• Introduction
– Having established the basic noise mechanisms in
MOSFETS, today's lecture looks at noise in circuits. We will
learn how to calculate the signal-to-noise ratio in a basic RC
circuit and a common source amplifier. These examples are
useful prerequisites for analyzing more complicated circuits
(e.g. OTAs, later in this class). Furthermore, we will use
these simple examples to develop a basic feel for the
relevance of noise and associated tradeoffs.
Datasheet Example
Circuit Example 1
• Let's calculate
– Output referred noise
– Input referred noise
– Signal-to-noise ratio at output
2 2
vn2,out 1 1
= 4 kT ⋅ R ⋅ = (4 nV ) 2
Δf 1 + sRC 1 + j 2πf ⋅ 1ns
• Input referred noise is simply the PSD of resistor (in this example)
v2 1k
R C
Vout
1pF
vn2,in
= 4 kT ⋅ R = (4 nV )2
Δf
Spice Simulation
-18
10 4 6 8
10 10 10
f [Hz]
Signal-to-Noise Ratio
1 2
Vout , peak
Psignal
SNR = = 2
Pnoise f2 2
vn ,out
Δf ∫⋅ df
f1
∞ 2
1 kT
vn2,out ,tot ∫
= 4 kT ⋅ R ⋅
1 + j 2πf ⋅ RC
df =
C
0
• Interesting result
– Total integrated noise at the output depends only on C (even
though R is generating the noise)
Spectrum [V2/Hz]
-16
• Increasing R increases 10
-18
the noise power 10
R=1k
-20
spectral density, but 10
-22
R=100k
bandwidth 10
2
10
4
10
6
10
8
10
10
f [Hz]
– R drops out in the
end result
Sqrt(Integral) [μV]
60 R=1k
R=100k
40
20
0 2 4 6 8 10
10 10 10 10 10
f [Hz]
SNR (1)
SNR (2)
• Assuming Vout,peak = 1V
SNR [dB] C [pF]
20 0.00000083
Hard to make such small capacitors…
40 0.000083
60 0.0083 Designer will definitely be concerned
80 0.83 about thermal noise, capacitor sizes
100 83 set by SNR
120 8300
"Hardcore" thermal noise battle…
140 830000
MDS and DR
• Minimum detectable signal (MDS)
– A somewhat arbitrary definition
– Quantifies the signal level in a circuit that yields SNR=1; i.e.
noise power = signal power
• Dynamic range (DR)
Psignal ,max
DR =
MDS
vo2 ( f )
2
⎛1 ⎞ R
= 4 kT ⎜ + γg m ⎟ ⋅
df ⎝R ⎠ 1 + j 2πf ⋅ RC
∞ 2
⎛1 ⎞ R
vo2,tot ∫
= 4 kT ⎜ + γg m ⎟ ⋅
⎝R ⎠ 1 + j 2πf ⋅ RC
df
0
kT
= (1 + γg m R )
C
=
kT
(1 + γ Av )
C
kT
= ⋅α
C
Lecture 10
Backgate Effect
Common Gate Stage
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 1.6.6 (Body Transconductance)
– 3.3.4, 7.2.4.2 (Common Gate Stage) Somewhat tedious
– 3.4.2.2, 7.3.4 (up to p. 526) (Cascode Stage) to read…
• Introduction
– Having completed our discussion of simple common source
amplifiers, we now continue by exploring alternative ways of
building single transistor stages. First, we will look at the
common gate (CG) stage, followed by a discussion of the
common drain (CD) stage in the next lecture. While CS
stages can usually be configured with source and bulk nodes
tied together, this is often not the case in the CG and CD
configurations. Hence, we'll first need to take a look at the so
called backgate effect (sometimes called "body effect")
which becomes relevant in this context.
Bulk Connection
DD
DD
VSB>0
Vt = Vt 0 + γ ( 2φ f + VSB − 2φ f )
• A change in Vt also means a change in drain current
– Define small signal backgate transconductance
∂I D ∂I
g mb = =− D
∂VBS ∂VSB
g mb ∂V ∂I D ∂VGS ∂Vt γ
=− t = =
gm ∂VSB ∂Vt ∂I D ∂VSB 2 VSB + 2φ f
-1
gmb Simulation
20
gmb/gm [%]
18
16
14
12
10
0 0.5 1 1.5 2
VBS [V]
RL
Cgd+Cdb
Vo
-(gm+gmb)vi ro
+
ii RS v i Cgs+Csb
-
CG Current Transfer
io g' m
≅
ii g' + sC + 1
m S
RS
g' m RS 1
≅ ⋅
1 + g' m RS 1 + s RS CS
1 + g' m RS
io 1
≅ for g' m RS >> 1
ii 1 + s CS
g' m
vo vo vtest
KCL @ vo : 0 = + − − g' m vtest
RL ro ro
⇒ vo ≅ g' m (RL || ro )vtest
vtest vo
KCL @ vtest : itest = g' m vtest + −
ro ro
itest g' r
⇒ Yin = ≅ m o + sCS
vtest RL + ro
v gs = −vtest
Yin ≅
g' m ro ⎛ (R + r ) ⎞
⎜⎜1 + sCS L o ⎟⎟
RL + ro ⎝ g' m ro ⎠
• At low frequencies
1 1 ⎛ RL ⎞
Rin = ≅ ⎜1 + ⎟
Yin g' m ⎜⎝ ro ⎟⎠
1
– RL<<ro: Rin ≅ (well known)
g' m
RL
– RL>>ro: Rin ≅ (not so well known…)
g' m ro
CG Output Impedance
vtest v gs
itest = + + g' m vgs
ro ro
v gs = −itest RS
vtest
Rout = ≅ ro (1 + g' m RS )
itest
CG Summary
• Current gain is unity up to very high frequencies
– Our "simple" device model predicts up to roughly fT
• Input impedance is very low
– At least when the output is also terminated with some
reasonable impedance
• Can achieve very high output resistance
• In summary, a common gate stage is ideal for turning a decent
current source into a much better one
– Seems like this is something we can use to improve our
common source stage
• Which is indeed nothing but a decent (voltage controlled)
current source
Cascode Stage
• Invented ~1920, in the context of vacuum tube circuits
– http://web.mit.edu/klund/www/cascode.html
i0
Gm = g m1 ⋅ ≅ g m1 Ro ≅ ro 2 (1 + g' m 2 ro1 )
ii
vx g ⎛ R ⎞
= g m1Z x ≅ m1 ⎜⎜1 + L ⎟⎟
vi g' m 2 ⎝ ro 2 ⎠
io 1
≅
ii C gs + Csb
1+ s
g' m
10
|vo/vi| [dB]
0 0 1 2 3
10 10 10 10
f [MHz]
10 without cascode
with cascode
0
-10
|vo/vi| [dB]
-20
-30
-40
-50
-60 0 1 2 3 4 5
10 10 10 10 10 10
f [MHz]
**** mosfets
element 0:mn1 0:mnc
1 g' m
model 0:nch214 0:nch214
f p2 ≅
region Saturati Saturati 2π C gsc + Csbc + Cdb1
id 502.6426u 502.6426u
vgs 806.0164m 962.3326m 1 4 mS + 0.6 mS
≅
2π 40.6 fF + (87.4 fF − 40.6 fF ) + (48.8 fF − 7.2 fF )
vds 837.6674m 659.6900m
vbs 0. -837.6674m
vth 583.4970m 753.1734m
gam eff 894.1238m 938.7402m
gm
gds
4.0020m 4.0280m
82.8309u 114.8096u
f p 2 ≅ 5.7 GHz
gmb 896.5590u 604.0200u
cdtot 48.7686f 42.9326f
cgtot 56.5608f 55.8554f
cstot 108.9121f 87.3547f For comparison:
cbtot 118.5039f 89.2450f
cgs 39.4622f 40.6097f 1 4 mS
cgd 7.2418f 7.0879f fT 2 ≅
2π 56 fF
≅ 11.4GHz
Cascode Noise
Lecture 11
Common Drain Stage
(Source Follower)
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 3.3.7 (Common Drain Stage)
– 7.2.2 (Frequency Response of Voltage Buffers)
– 5.3 (Source Follower as an Output Stage, optional)
• Introduction
– Last lecture, we have seen that a common gate stage has a
fairly low input impedance, and high output impedance. The
common drain stage that we'll analyze today exhibits the
exact opposite features: High input impedance and low
output impedance. After an analysis of relevant port
characteristics, we will discuss some potential applications
and also drawbacks of this circuit.
⎛ 1 ⎞
vo ⎜⎜ sC Ltot + sC gs + ⎟⎟ − vi sC gs − g m (vi − vo ) = 0
⎝ RLtot ⎠
vo g m + sC gs
=
vi g + sC + sC + 1
m gs Ltot
RLtot
sC gs
1+
vo gm gm
= ⋅
vi g + 1
1+
s (C gs + C Ltot )
m
1 RLtot 1
C Ltot = C L + Csb RLtot = RL || || ro gm +
g mb RLtot
• Interesting cases
– RL→∞, ro→∞, gmb=0 av 0 = 1
• PMOS, source tied to body, ideal current source
gm
– RL→∞, ro→∞, gmb≠0 av 0 =
g m + g mb
• NMOS, ideal current source)
(typically ≅ 0.8)
gm
– ro→∞, gmb=0, RL finite av 0 =
1
• PMOS, source tied to body, load resistor gm +
RL
s 1
1− g gm +
v
av (s ) = o = av 0 ⋅ z z=− m RLtot
vi s C gs p=−
1− C gs + C Ltot
p
• Three scenarios
CD Input Impedance
• By inspection
Yin = s (C gd + C gb ) + sC gs (1 − av ( s ))
• Gate-body capacitance is in
parallel with Cgs
• gmb generator inactive
– Low frequency gain very
close to unity
• Very small input capacitance
Yin = sC gd + s (C gs + C gb )(1 − av ( s ))
Yin ≅ sC gd
vo ix = (vo − v g )(g m + sC gs ) vg Ri
Zx = =
ix ⎛ vg ⎞ 1
⎟⎟(g m + sC gs )
vo + Ri
= vo ⎜⎜1 −
⎝ vo ⎠ sC gs
1 (1 + sR i C gs )
Zx ≅
gm ⎛ sC gs ⎞
⎜⎜ 1 + ⎟
⎝ g m ⎟⎠
• Two interesting cases
Inductive behavior!
1
R1 || R 2 =
gm
R 2 = Ri
Ri2 C gs
L=
g m Ri − 1
1 (1 + sR i {C gs + C i })
Zx =
gm ⎛ sC gs ⎞
⎜⎜ 1 + ⎟ (1 + sR i C i )
⎝ g m ⎟⎠
1 gm 1 1 1 g
< < < < m
Ri {C gs + C i } C gs Ri C i Ri {C gs + C i } Ri C i C gs
Application 2: Buffer
Issues
• Common source
– VCCS, makes a good voltage amplifier when terminated with
a high impedance
• Common gate
– Typically low input impedance, high output impedance
– Can be used to improve the intrinsic voltage gain of a
common source stage
• "Cascode" stage
• Common drain
– Typically high input impedance, low output impedance
– Great for shifting the DC operating point of signals
– Useful as a voltage buffer when swing and nonlinearity are
not an issue
• Typically cannot
afford to have
sufficiently large
decoupling cap for VB
• Also, may want to
work with ground
referenced input
voltage
Lecture 12
Differential Pair
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 3.5.0, 3.5.3, 3.5.5 (Differential Pair)
• Introduction
– The differential pair is the most widely used two-transistor
sub-circuit in analog ICs. Using a differential pair as a
replacement for a simple common source stage eliminates
the need for cumbersome gate biasing. In addition, its
differential input and output voltages are more immune to
parasitic signal coupling. Today we will analyze some
properties of differential pairs and introduce the notion of
common- and differential-mode signal components.
Differential Pair
Id1 Id2
• We now still need a second
variable that describes the
potential of nodes Vip and Vim
with respect to GND
– Could choose either Vip or Vim
ITAIL
• More elegant solution
– Cut Vid in half and define a
new independent variable
+ +
– "Common mode" voltage Vic
Vip Vid Vim
- -
Id1 Id2
Vid
Vip = Vic +
2
ITAIL
V
Vim = Vic − id
2
Vip + Vim
+ + ⇒ Vic =
Vid/2 Vid/2 2
Vip Vim
- Vic -
ITAIL
2I d1 2I d 2
Vgs1 = Vt + Vgs 2 = Vt +
W W
μCox μCox
L L
+ +
Vip Vid/2 Vid/2 Vim 1 W 4 ITAIL
- Vic - ⇒ I od = I d 1 − I d 2 = μCox Vid − Vid 2
2 L W
μCox
L
2 2 L
where VOV is the quiescent point gate overdrive with Vid=0
2
I I −I V ⎛ V ⎞
⇒ od = d 1 d 2 = id 1 − ⎜⎜ id ⎟⎟
I TAIL I TAIL VOV ⎝ 2VOV ⎠
1
Slope = 1
Iod/ITAIL 0
1
2 1 0 1 2
-√2 Vid/VOV √2
Observations
• Looks like something we have seen before
– A transfer function that is somewhat linear as long as
Vid<<VOV
• For small signal analysis, we can find an equivalent
transconductance by differentiation at the operating point
dI od I TAIL
Gm = =
dVid Vid =0
VOV
Id1 Id2
• Can show that
2
Vx 1⎛ V ⎞
Vx = Vic − Vt − VOV 1 − ⎜⎜ id ⎟⎟
4 ⎝ VOV ⎠
ITAIL
ITAIL 2I d1 2I d 2
Vgs1 = Vt + Vgs 2 = Vt +
W W
μCox μCox
L L
1 VOV
Rsx =
gm ε c L ⇒ big mess...
2 2
Vid < 0.5 ⋅ Vid < 0.2 ⋅
⎛ gm ⎞ ⎛ gm ⎞
⎜⎜ ⎟⎟ ⎜⎜ ⎟⎟
⎝ ID ⎠ ⎝ ID ⎠
voc
Acm =
vic
Adm Adm
Acm− dm Adm −cm
Adm Adm
PSRR+ = PSRR− =
A+ A−
PSRR+ PSRR−
vi or vid vo or vod
Amplifier
Lecture 13
Current Mirrors
Offset Voltage
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 4.1, 4.2 (Current Mirrors)
– 3.5.6.6, 3.5.6.7 (Input Offset Voltage)
• References
– M. Pelgrom et al., "Matching properties of MOS transistors," IEEE
J. Solid-State Circuits, Oct. 1989.
– P.G. Drennan et al., "Understanding MOSFET mismatch for analog
design," IEEE J. Solid-State Circuits, March 2003.
• Introduction
– In this lecture, we will take a closer look at practical
implementations of current mirrors with emphasis on high
swing biasing techniques. In addition, we will discuss
nonidealities such as threshold voltage mismatch and IR
drop.
B. Murmann EE 214 Lecture 13 2
153
• Objectives
– Want "accurate" mirror ratio ITAIL/IREF
– Want large RTAIL (and small CTAIL) for good CMRR
– Want small Vmin to maximize common mode input range
ID
=1/r o
slope ΔI
VDS
ΔV
V1 − V2 ΔV
ΔI = I1 − I 2 ≅ =
ro ro
• Two options
– Use device with large ro (Large L)
– Make V1 as close as possible to V2
2000
1500
ro [kΩ]
1000
500
0
0 0.5 1 1.5 2 2.5 3 3.5
VDS [V]
600
500
400
ro [kΩ]
300
200
100
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7
VDS [V]
Higher Rout
Rout ≅ g m ro2
Solution 1
Solution 2
• Use some kind of "magic battery" that sets the cascode gate
potential such that VOUTmin = 2VOV (minimum possible)
• "High swing" bias
Magic Battery 1
Magic Battery 2
Magic Battery 3
1 W 2 1W ⎛ V ⎞
I1 ≅ μCox VOV = μCox ⎜ [Vx + VOV + Vt ] − Vt − x ⎟ ⋅ Vx ⇒ Vx = VOV
2 L 3 L⎝ 2⎠
Magic Battery 4
Magic Battery 5
I1 I1 I1 I2
Vcas
W1/L1 W2/L2 W2/L2
W2/L2
Vx
Design Considerations
Capacitive Coupling
Vx Low cap:
fast recovery
big bounce
Vx t
t
High cap:
slow recovery
small bounce
Offset Voltage
Pelgrom Coefficients
AVt Aβ
σ ΔV = σ Δβ =
t
WL β WL
7 mV 1%
σ ΔV = = 3.7 mV σ Δβ = = 0.53%
t
3.5 3.5
β
ΔI = I 1 − I 2 ≅ g m ΔVt + I 1Δβ
ΔI gm
≅ ΔVt + Δβ
I1 I1
2
⎛ S ⎞
σ ΔI = ⎜ 10 ⋅ 3.7 mV ⎟ + (0.53% )2 = (3.7% )2 + (0.53% )2 = 3.74%
⎝ A ⎠
I1
ΔI = I 1 − I 2 ≅ g mVwire
ΔI gm
≅ Vwire
I1 I1
Iref
Lecture 14
Process Variations
Feedback
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 8.0, 8.1, 8.2, 8.3 (Feedback)
– 9.2 (Relation Between Gain and Bandwidth)
– Supplementary Handout "Feedback Systems" by Tom Lee
(see web, optional)
• Introduction
– In today's lecture we will first take a look at typical
component variations in CMOS technology. In light of these
numbers, we then consider negative feedback as a tool for
building amplifiers with precisely defined gain. As we shall
see, using a forward amplifier with "high", but arbitrary gain,
combined with a ratiometric, passive feedback network
allows us to build drift and process insensitive precision gain
stages.
PVT
• So far, we've assumed that our Spice model accurately predicts
the performance of every single chip we make
• We have also assumed that all our circuits run at room
temperature, and VDD is precisely fixed
• In practice, it is the circuit designer's job to ensure that the
circuit works in presence of large variations
– PROCESS: Variations among production lots
• "Slow, Nominal and Fast" corners
• Sometimes there are even significant variations across wafers
and individual chips
– VOLTAGE: VDD is usually specified only within ±10%
• E.g. VDD= 2.7…3.3V in our technology
– TEMPERATURE: Ambient temperature variations
• 0…70°C (or -40…125°C)
Graphical Interpretation
[Razavi, p. 599]
Typical Variations
Consequences
• Performance metrics that depend on absolute component
values will show large variations
• Sometimes this is OK
– E.g. bandwidth of a circuit
• Can overdesign, and make sure to have minimum required
bandwidth in presence of worst case variations
• Sometimes this is not OK
– E.g. need a precise gain of two in an A/D converter
• gmRL or gmro will never be accurate enough
• Solution: Use negative feedback to desensitize the circuit to
gmRL or gmro variations
Negative Feedback
vout a
=
vin 1 + af
• Interesting case:
vout 1
af >> 1 ⇒ ≅
vin f
Interpretation
• As long as we have "large" gain in the forward path a, the
overall gain will depend only on f
• Since vout/vin ~1/f, we often make f ≤ 1
– E.g. for a "closed loop" gain of two, we need f=0.5
• f ≤ 1 is easy to implement, and ratiometric!
– A "wire" (f=1) or resistive or capacitive voltage divider
vout vout R1 + R2
≅1 ≅
vin vin R1
Example
R1 = R2 ⇒ f = 0.5
• Case 1: a=100
vout 1 1
= = = 1.96078...
vin 1 1
+f + 0.5
a 100
• Case 2: a=1000
vout 1 1
= = = 1.996007...
vin 1 1
+f + 0.5
a 1000
Gain Sensitivity
a
• Define A=
1 + af
!
(2) vout = b1vin + b3vin3
a0
E .g . a( s ) =
s
1−
p1
Early Obstacles
Positive Feedback
vout a
=
vin 1 − af
• Example vout a
af = 0.9 ⇒ = = 10a
vin 1 − 0.9
(
vout = g ⋅ v + − v − )
R1 a=g
f =
R1 + R2
vout a g R + R2
= = ≅ 1
vin 1 + af 1 + g R1 R1
R1 + R2
Inverting Configuration
(
vout = g ⋅ v + − v − )
f =? a =?
Superposition
⇒a
⇒ − af
Inverting Configuration
R2
a=− ⋅g
R1 + R2
R1
− af = − ⋅g
R1 + R2
Result
R1
⋅g
R2 af R1 + R2 R
a=− ⋅g f = = =− 1
R1 + R2 a − R R2
2
⋅g
R1 + R2
vout a R
= ≅− 2
vin 1 + af R1
Lecture 15
Fully Differential Amplifiers
Switched-Capacitor Circuits
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 6.0, 6.1.1, 6.1.2, 6.1.2 (Basic Feedback Concepts)
– 12.1, 12.2, 12.3, 12.4 (Fully Differential OpAmps)
– 6.1.7 (Internal Amplifiers)
• Introduction
– Having discussed the basic properties of ideal feedback loops, we
will now take steps toward a practical implementation of feedback
amplifiers in CMOS technology. The first amplifier we consider uses
a very crude gain stage, composed of a simple differential pair and
an active current mirror load. For the time being, we will use this
simple topology as a vehicle to gain basic insight into terminology,
analysis and design tradeoffs.
– As we will argue, it is generally difficult to drive resistive loads with
an amplifier, as the load tends to reduce the circuit's gain. As a
result, many "internal amplifiers" in integrated circuits are based on
purely capacitive feedback, using a "switched-capacitor" approach.
MPa,b
MNT Ictrl
Ictrl
0 VOC,des VDD
VOC
Load Considerations
Solution 1: Buffer
vod
vid RL CL
Δq = C (V1 − V2 )
Δq Δq
V1 − V2 iavg = = = f ⋅ C (V1 − V2 )
i= Δt T
R 1
Ravg =
f ⋅C
SC integrator
SC gain stage
SC Circuit During φ2
i = vi ⋅ jωCs
1
vo = −i ⋅
jωC f
vo C
∴ =− s
vi Cf
OpAmp OTA
Lecture 16
Stability
Analysis of Feedback Circuits
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 9.3 (Stability)
– 8.8 (Return Ratio Analysis)
– Supplementary Handout "Feedback Systems" by Tom Lee
(see web, optional)
• Introduction
– This lecture covers basics on the analysis of feedback
amplifiers. Using a simple OTA with capacitive feedback as
an example, we will study the so called "Return Ratio"
method as a tool to assess stability and calculate the
bandwidth of feedback amplifiers. Interestingly, most
relevant performance metrics follow directly from the "return
ratio" or loop gain of the circuit, which highlights the
significance of this parameter in feedback system design.
Stability
vo a( s ) a( s )
A( s ) = = =
vi 1 + a( s ) f ( s ) 1 + T ( s )
Stability Measures
|T(jω)|
1
GM =
T ( jω ) ω =ω180
ω180
Typically want GM ≥ 3…5
ωc
Phase[T(jω)]
ωc
ω180 PM = 180° − Phase[T ( jω )]ω =ωc
Closed-loop gain,
normalized to 1/f
ω/ωc
[Text, p.632]
• Important questions
– Is this circuit stable? What is its phase margin?
– What is the low frequency closed loop gain?
– What is the closed loop bandwidth?
• Issues
– Feedback network loads amplifier
– Amplifier loads feedback network
– At high frequencies, there exists a (capacitive) feedforward
path that overrides the amplifier
• Cannot be modeled using the generic "af" feedback block
diagram
Solutions
• If all we needed was the closed loop transfer function, we could
simply do a KCL/KVL based analysis
– Can be quite tedious, especially for more complex circuits
– Hard to assess stability and stability margin
• Two port feedback analysis
– "Shunt-series, shunt-shunt, series-shunt, series-series"
feedback configurations
• See text, sections 8.4, 8.5, 8.6
– Attempts to identify amplifier (a) and feedback network (f)
with loading effects included
– Some feedback circuits cannot be modeled using two-ports
• E.g. bias circuits with feedback loops tend to have only one port
Example
v x = β ⋅ vo
Cf
β=
C f + Cs + C x
⎛ 1 ⎞⎟
v0 = −it ⋅ ⎜⎜ R0 C Ltot = C L + (1 − β )C f
⎝ sCtot ⎟⎠
⎛ ⎞
T (s ) = −
ir
= β ⋅ Gm ⋅ ⎜ R0
1 ⎟ = β ⋅ Gm R0
it ⎜ sC L tot ⎟ 1 + sRoC L
⎝ ⎠ tot
1
T (s ) = β ⋅ Gm R0 ⋅
[
1 + sRo C L + (1 − β )C f ]
Capacitive feedback divider, Feedback loading
includes amplifier input
capacitance Cx
Cf
β=
C f + Cs + C x
T ( jω ) Ro→∞
ω
ωp ωc
β ⋅ Gm R0 β ⋅ Gm ωc
T (s ) = ≅ at high frequencies, as long as ≅ βGm Ro >> 1
1 + sRoC L tot sC L tot ωp
βGm βGm
= 1 ⇒ ωc ≅
jωcC L tot C L tot
T0
ω
ωp ωc
Phase[T ( jω )]
ωp ⎛ω ⎞
0° ω Phase[T ( jω )] ω =ωc = − tan −1 ⎜ c ⎟ ≅ −90°
⎜ω ⎟
⎝ p⎠
− 45°
− 90° PM ≅ 180° − 90° ≅ 90°
vo T( s ) d
A(s ) = = A∞ +
vi 1+ T( s ) 1+ T( s )
⎛ 1 af ⎞
⎜⎜ Note similarit y : A = ⎟⎟
⎝ f 1 + af ⎠
Finding A∞
0 = vi sCs + vo sC f
Cs
A∞ = −
Cf
T( s ) ωc ωc 1
A(s ) ≅ A∞ ≅ A∞ = ⇒ ω−3dB = ωc
1 + T( s ) s + ωc jω−3 dB + ωc 2
Finding d
T( s ) d
A( s ) = A∞ +
1+ T( s ) 1+ T( s )
sC f
1−
Cs Gm
Detailed analysis shows: A(s ) = −
C f 1 + sC Ltot
βGm
• Pole as expected
• Zero at Gm/Cf, typically a very high frequency
– Far beyond ω-3dB if CL is large
• In most cases, calculating feedforward zeros is easier using
simple KCL analysis, with large resistors removed
T0 d
A0 = A∞ + 0
1 + T0 1 + T0
Cs T0
d0 = 0 ⇒ A0 = −
C f 1 + T0
A∞ − A0 A0 T 1 ⎛ 1⎞
ε= ε = 1− = 1− 0 = 1− ≅ 1 − ⎜⎜1 − ⎟⎟
A∞ A∞ 1 + T0 1 ⎝ T0 ⎠
1+
T0
1
ε≅
T0
Comparison
• a, f • T
• 1/f • A∞
1 af T d
A= A = A∞ +
f 1 + af 1+T 1+T
(feedforward effects are not modeled)
Lecture 17
Loop Gain Simulation
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Introduction
– Last lecture, we've seen that return ratio analysis is a useful
tool for characterizing feedback amplifiers in terms of
stability, bandwidth and static precision. Since we are always
interested in verifying our hand analysis results using
simulations, it is desirable to have an equivalent method
available in Spice. In this lecture, we will discuss the so-
called Middlebrook method for loop gain simulation. This
particular approach helps overcome the issue that ideal loop
breakpoints, e.g. at controlled sources, are not directly
accessible in Spice.
References
Circuit Example 1
ir
T (s ) = −
it
vr
T ( jω ) ≅ −
vt
• Inaccurate
• Hard to estimate mock load
• May get different results for
different breakpoints
• Ideally, we'd like to avoid all
of the above issues
• Solution: Middlebrook
method
Problem Generalization
available breakpoint
Z1 ⋅ Z 2
T ( s ) = gm
Z1 + Z 2
vy Z2
− ≡ Tv = g m ⋅ Z 2 +
vx Z1
Solving yields:
1 1 1
True Loop T = g ⋅ Z1Z 2 = +
m 1 + T 1 + Tv 1 + Ti
Gain: Z1 + Z 2
TvTi − 1
iy
T =
Z1 Tv + Ti + 2
≡ Ti = g m ⋅ Z1 +
ix Z2
Simulation Example
iy vy
Ti = Tv = −
ix vx
• Two options
– Run two copies of the same circuit simultaneously, or
– Run two simulations with different stimuli
Spice Code
.param ai=1 av=0 * utils.sp
m1 vo x 0 0 nch214 L=0.35u W=10u .subckt looptest x y ai=0 av=0
i1 0 vo 100u vx middle x dc 0
cf vo y 200f vy middle y ac 'av'
rf vo y 100gig it 0 middle ac 'ai'
cs y 0 400f
.ends looptest
xt x y looptest ai='ai' av='av'
.op
.ac dec 10 1e3 10e9
.options post brief
.lib './ee214_hspice.txt' nominal
.include utils.sp
.alter
.param ai=0 av=1
.end
Matlab Postprocessing
Simulation Result
40
Magnitude [dB] 20
Tv
0
Ti
-20 T
-40 -2 -1 0 1 2 3 4
10 10 10 10 10 10 10
f [MHz]
0
Phase [degrees]
Tv
-50 Ti
T
-100 -2 -1 0 1 2 3 4
10 10 10 10 10 10 10
f [MHz]
Circuit Example 2
Cf
Cs CL
+ +
vid vod
- -
Cs
CL
Cf
v yp − v ym i yp − i ym
Tv = − Ti =
v xp − v xm ixp − ixm
Simulation Result
40
Magnitude [dB]
20
Tv
0
Ti
-20 T
-40 -2 -1 0 1 2 3 4
10 10 10 10 10 10 10
f [MHz]
0
Phase [degrees]
Tv
-50 Ti
T
-100 -2 -1 0 1 2 3 4
10 10 10 10 10 10 10
f [MHz]
Alternative Approach
Ideal Balun
=
e1 vp vcm transformer vdm 0 2
e2 vcm vm transformer vdm 0 2
xfmr
.ends balun
[Bode 45]:
[Bode 45]:
Lecture 18
Differential Mode Voltage Range
Two-Stage OTA
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 6.3 (Basic Two-Stage MOS Amplifiers)
– 12.6.1 (Fully Differential Two-Stage-Amplifier)
– 12.6.5 (Neutralization)
• Introduction
– As we will see in today's lecture, the available output swing
and open-loop gain of our simple single stage OTA are fairly
limited. Hence, we will begin to consider a two-stage OTA
architecture as an alternative. Unfortunately, with the
addition of a second stage, we also introduce a second pole,
which makes it difficult to achieve reasonable phase margin.
The compensation techniques discussed in the following
lecture will provide solutions to this problem.
Example Vic=Voc=VDD/2
90
80
-30%
Vod/Vid [V/V]
70
60
Vodpp,max
50
40
-1.5 -1 -0.5 0 0.5 1 1.5
Vod [V]
1
avo = avon
(g m / I D ) p avon
1+
(g m / I D )n avop
Two-Stage Amplifier
g m1 R1 ⋅ g m 2 R2 1 1
T (s ) = β = β ⋅ a1 (s )a2 (s ) = β ⋅ a(s ) p1 = − p2 = −
⎛ s ⎞ ⎛ s ⎞ R1C1 R2C2
⎜⎜1 − ⎟⎟ ⋅ ⎜⎜1 − ⎟⎟
⎝ p1 ⎠ ⎝ p2 ⎠
Neutralization Caps
• With neutralization caps
Cin = C gs + C gd 1 (1 + av ) + Cn (1 − av )
• Letting Cn=Cgd gives
Cin = C gs + 2C gd 1
C gs + C gd 1 (1 + av )
Cn =
av − 1
Mag ( jω ) β ⋅ a (s )
a2 (s )
−180° ω
Mag ( jω ) β ⋅ a(s )
• The problem is
a2 (s ) solved if we
somehow
a1 (s )
manage to make
ω p2 ω
ωp1<< ωp2
ω p1 ωc
– Or ωp2<< ωp1
Phase[T ( jω )]
• Loop behaves
0° close first order
system around
− 90°
crossover
−180° ω frequency
Phase Margin
• At the crossover frequency, the dominant pole has shifted the
phase by about -90°
• The non-dominant pole's phase at ωc is given by -tan-1(ωc/ωp2)
⎛ω ⎞ ⎛ ω p2 ⎞
PM ≅ 180° − 90° − tan −1 ⎜ c ⎟ PM ≅ tan −1 ⎜⎜ ⎟⎟
⎜ω ⎟ ⎝ ωc ⎠
⎝ p2 ⎠
ωp2/ωc PM
1 45°
2 63°
3 72°
4 76°
5 79°
1 f p2 fc
f p2 = = 1.6MHz fc = = 530kHz f p1 = = 106 Hz
2πR2C2 3 β ⋅ Gm1 R1 ⋅ Gm 2 R2
1
C1 = = 15nF
2π ⋅ f p1 ⋅ R1
• Two issues
– Very low fc, which means low closed loop bandwidth
– Huge capacitor
• Get roughly 1fF/μm2 in CMOS technology
• C1 would occupy about 4mm x 4mm !
Pole Splitting
Lecture 19
Compensation
Noise in Feedback OTAs
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 9.4.1, 9.4.2, 9.4.3 (Compensation)
• Introduction
– In this lecture, we will continue to look at pole splitting as a
method for achieving sufficient phase margin in a two-stage
amplifier. While using a Miller capacitance for compensation
helps move the non-dominant pole to higher frequency, it
also introduces an undesired zero in the transfer function.
Today, we'll discuss several options on how to cope with this
artifact.
– In addition, we will derive useful expressions for the total
integrated noise in OTAs.
• Very messy…
⎛ s ⎞ ⎛ s ⎞ ⎛1 1 ⎞ s2
D (s ) = ⎜ 1 − ⎟ ⋅ ⎜ 1 − ⎟ = 1 − s ⎜ + ⎟ +
⎜ ⎟ ⎜ ⎟ ⎜ ⎟
⎝ p1 ⎠ ⎝ p2 ⎠ ⎝ p1 p2 ⎠ p1 p2
Final Result
⎛ s⎞
⎜1 − ⎟
a(s ) ≅ av 0 ⋅ ⎝ z⎠
⎛ s ⎞ ⎛ s ⎞
⎜⎜1 − ⎟⎟ ⋅ ⎜⎜1 − ⎟⎟
⎝ p1 ⎠ ⎝ p2 ⎠
1 1
p1 ≅ − ≅−
R1 (C1 + Cc ) + R2 (C2 + Cc ) + g m 2 R2 R1Cc g m 2 R2 R1Cc
gm2 gm2
p2 ≅ − z=+
C1C2 Cc
+ C1 + C2
Cc
• Questions
– How can we design an amplifier with these complex
expressions?
– What will the zero in the transfer function do to us?
ωz − ωz
Phase Phase
ωz ω
0° 0°
− 45° + 45°
− 90° + 90°
ωz ω
g m1 (assuming zero
ωc ≅ β is beyond
Cc
crossover)
ωz gm2
ωz =
Cc
ωz 1 gm2
=
ωc β g m1
Source Follower
• Benefits
– Tends to push ωp2 to higher frequencies, when load
capacitor is large (see text)
• Can use smaller Cc, less power in first stage
• Issues
– Additional power dissipation
– Bias current mismatches cause input referred offset
• The above two issues can be addressed by feeding back to
cascode device embedded in first stage (Ribner, JSSC 12/1984)
– New issue: Complex design problem (3rd order system)
• p1 and p2 unchanged, new pole p3, and a knob to tune the zero
1 g ω p 3 1 g m 2 Cc
ω p3 ≅ ≅ m2 = typically >> 1
Rz C1 C1 ωc β g m1 C1
• General method
– Identify noise sources
– Derive noise transfer functions (NTF)
– Find total noise power from each source by integrating
PSD·NTF from 0 to ∞
– Add up noise powers
• Tedious, but doable…
• Examples
– Single-stage amplifier
– Single-stage amplifier with cascode
– Two-stage amplifier
Useful Integrals
kT γ ⎛ g ⎞
VB M2 vo2,tot = ⎜⎜ 1 + m 2 ⎟⎟
C Ltot β ⎝ g m1 ⎠
kT ⎛⎜ C gg 1 ⎞⎛
⎟⎜ 1 + g m 2 ⎞⎟
= γ 1 + A∞ +
Cf
+ C Ltot ⎝⎜ C f ⎟⎠⎜⎝ g m1 ⎟⎠
+ M1 CL vo
vi Cs -
- C Ltot = C L + C junction + C f (1 − β )
• Make gm2 as small as possible, i.e. use small gm/ID for current
source device
– Issue: Smaller gm/ID means less available swing
• Small Cgg1, i.e. high fT helps reduce noise
• Analysis shows
g m1
ωc = β
C Ltot
kT 1 ⎛⎜ g ω ⎞
vo2,tot = 1 + m2 c ⎟
C Ltot β ⎜⎝ g m1 ω p 2 ⎟⎠ ω p2 =
gm2
Cx
kT 1 ⎛ 1 g m2 ⎞
= ⎜⎜ 1 + ⎟
C Ltot β ⎝ k g m1 ⎟⎠ ω p2
k=
ωc
Two-Stage Amplifier
γ kT ⎛ g m11 ⎞ kT ⎡ ⎛ g m 22 ⎞⎤
vo2,tot = ⋅ ⎜1 + ⎟+ ⎢1 + γ ⎜⎜ 1 + ⎟⎥
β Cc ⎜⎝ g m1 ⎟⎠ C Ltot ⎣⎢ ⎝ g m 2 ⎟⎠⎦⎥
Stage 1 Stage 2
V̂o2
SNR ∝
kT
C
Appendix
N1 and N2 are the total integrated noise at the output due to M1 and M2, respectively. N3 is the total noise due to R.
Letting R=1/gm2 simplifies these expressions slightly:
1 kT g m2⋅ ∆
N1 = ⋅γ⋅ ∆ = C c ⋅ C L + C c ⋅ C 1 + C L⋅ C 1
β Cc β ⋅ g m1⋅ Cc C1 + CL + g m2 − β ⋅ g m1 ⋅ ∆
( ) ( )
2 2⎤
kT g m2⋅ ⎡CL⋅ C1 + Cc
⎣ ( ) + C1⋅ Cc
⎦
N2 = ⋅γ⋅
CL 2
β⋅g m1⋅ Cc ⋅ C1 + CL + g m2 − β ⋅ g m1 ⋅ Cc⋅ ∆
( ) ( )
kT g m2⋅ CL + C1 ⋅ Cc( )
N3 = ⋅
CL β ⋅ g m1⋅ Cc⋅ C1 + CL + g m2 − β ⋅ g m1 ⋅ ∆
( ) ( )
Now use these expressions to simplify further:
g m1 g m2⋅ Cc ω p2
ω c1 = β ⋅ ω p2 = k=
Cc ∆ ω p1
ω c1⋅ Cc
substitute , g m1 =
β
2
1 kT g m2⋅ ∆ ω p2⋅ ∆ 1 kT ∆
N1 = ⋅γ⋅ substitute , g m2 = → N1 = ⋅ ⋅ γ ⋅ k⋅
β Cc β ⋅ g m1⋅ Cc⋅ C1 + CL + g m2 − β ⋅ g m1 ⋅ ∆
( ) ( ) Cc β Cc 3 3 2 2
Cc ⋅ C1 + Cc ⋅ CL + k ⋅ ∆ − ∆ ⋅ Cc
substitute , ω p2 = k ⋅ ω c1
simplify
1 kT 1
N1 = ⋅ ⋅γ⋅
β Cc 2 2
Cc ⋅ Cc C1 + CL − ∆ ⋅ Cc
( )
1+
2
k⋅ ∆
1 kT 1
N1 = ⋅ ⋅γ⋅
β Cc 2
C c ⋅ C L⋅ C 1
1−
2
k ⋅ C c ⋅ C L + C c ⋅ C 1 + C L⋅ C 1
( )
The ratio of capacitors in this expression is always <1, also k usually 3...4. For C1->0, the last term above disappears. Hence, the noise
contribution from M1 is well approximated by
1 kT
N1 = ⋅ ⋅γ
β Cc
ω c1⋅ Cc
substitute , g m1 =
β
ω p2⋅ ∆
2 2⎤ substitute , g m2 =
kT g m2⋅ ⎡CL⋅ C1 + Cc
⎣ ( ) + C1⋅ Cc
⎦ Cc kT
N2 = ⋅γ⋅ → N2 = ⋅γ
CL 2 CL
β⋅g m1⋅ Cc ⋅ C1 + CL + g m2 − β ⋅ g m1 ⋅ Cc⋅ ∆
( ) ( ) substitute , ω p2 = k ⋅ ω c1
substitute , C1 = 0
simplify
kT
N2 = ⋅γ
CL
2
N3 1 g m2⋅ CL + C1 ⋅ Cc
( ) substitute , C1 = 0 N3 1
= ⋅ → =
N2 γ simplify N2 γ
g m2⋅ ⎡CL⋅ C1 + Cc
(
⎣ )2 + C1⋅ Cc2⎤⎦
1 kT kT
Ntot = N1 + N2 + N3 = ⋅ ⋅γ + ⋅ (γ + 1)
β Cc CL
233
Lecture 20
OTA Design Considerations
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Introduction
– Today, we will review a possible design strategy for two-
stage OTAs. Since there exist many degrees of freedom in
this topology, a thorough hand analysis is essential, and can
help minimize, if not completely eliminate, the time needed
for a large number of Spice iterations.
A Note on Discrepancies
• Discrepancies between design script and Spice are usually on
the order of 10-20%
– Mostly due to
• Bias point dependence (VDS); charts generated for VDS=VDD/2
• Inaccuracy in Cjunction estimate
• First order nature of design equations
• Good news
– It is always possible to track discrepancies down if needed
• Look at gm/ID , CGG, Cjunction in the bias point output
• Big difference to square law design using μCox, VOV, …
– These quantities simply don’t exist in your circuit…
Component Identification
C1 = C gg 2 + C junction1 Cf
β=
C2 = C L + (1 − β )C f + C junction 2 C f + Cs + C gg1
• For simplicity, we'll first neglect the junction caps in the following
discussion
– Straightforward to include in your optimization script (see
example)
B. Murmann EE 214 Lecture 20 5
1 g
ωc ≅ ⋅ β ⋅ g m1 R1 g m 2 R2 = β m1
g m 2 R2 R1Cc Cc
Cf
β=
C f + Cs + C gg1
Nondominant Pole
gm2
ω p2 ≅ CLtot ≅ C L + (1 − β )C f
C Ltot C gg 2
+ C gg 2 + C Ltot
Cc
⎛ C Ltot C gg 2 ⎞
⎜ ⎟
1 ⎛ C gg 2 C Ltot ⎞⎜ C + C Ltot ⎟
≅ ⎜⎜ + ⎟⎟⎜ 1 + gg 2 ⎟
ωp2 ⎝ gm2 gm2 ⎠⎜ Cc
⎟
⎜ ⎟
⎝ ⎠
Choice of Cc
• Cc large means that we can use lower ωT2 (higher gm/ID) and
save power in the second stage
– But larger Cc also requires larger gm1 and thus more power in
the first stage
– This implies that there will be a design-dependent optimum
for Cc
• How to pick g?
• Bounds for g
– Upper bound due to stability
– Lower bound due to CMFB bandwidth requirements
Appendix
Cf
Cs CL
- +
Vsd Vid Vod
+ -
Cs
CL
Cf
M4a,b
M1a,b
M3a,b M2a,b
Technology Data
2
VDD := 3V γ :=
3
Design Objectives
Cs
Cs := 400fF CL := 200fF Cf :=
G
Cf
Cgg1 := Cs + Cf β est := β est = 0.167
Cf + Cs + Cgg1
1 3
avo := avo = 1.2 × 10
ε s⋅ β est
For simplicity, assume that each stage contributes same gain (not necessarily accurate/optimal)
For simplicity, assume that intrinsic gain of both signal path devices is 2x stage gain (not
necessarily accurate/optimal). Intrinsic gain requirements:
L1 := 0.55μm L2 := 0.4μm
For simplicity, choose same lengths for pmos/nmos loads (not necessarily optimal)
L3 := L2 L4 := L1
241
S S
gmID1 := 10 gmID2 := 10
A A
Ratio of gm/ID in load devices vs. signal path (often want g1,2 to be <1, to minimize noise and
Cjunction; however, very small g1,2 may impose DR limitations)
gmID3 gmID4
g 31 = g 31 := 1 g 42 = g 42 := 1
gmID1 gmID2
(
C2 := CL + 1 − β est ⋅ Cf ) C2 = 366.667 fF Total stage 2 load
2
0.5⋅ Vodmax
Ntot := Ntot = 355.234 μV
DR
10
10
⎡ 1 k B ⋅ Tr k B ⋅ Tr ⎤
Ntot = 2 ⋅ ⎢ ⋅ (
⋅ γ ⋅ 1 + g 31 +
CL ⎣
) ( )
⋅ ⎡γ ⋅ 1 + g 42 + 1⎤ ⎥
⎦
⎣ β Cc ⎦
( )
1
⋅ k B⋅ Tr⋅ γ ⋅ 1 + g 31
β est
Cc := 2 ⋅ Cc = 0.659 pF
k B ⋅ Tr
Ntot −
C2 ⎣ ( )
⋅ ⎡γ ⋅ 1 + g 42 + 1⎤
⎦
242
1
g m1 := ⋅ 2 ⋅ π ⋅ fc⋅ Cc g m1 = 4.966 mS
β est
k := tan⎛⎜ π ⋅ ⎞ k = 3.732
PM
⎟
⎝ 180deg ⎠
g m1 g m2
ID1 := ID2 := ID1 = 0.497 mA ID2 = 0.172 mA
gmID1 gmID2
( ) ( )
A A
IDW1 := pidw L1 , gmID1 IDW2 := nidw L2 , gmID2 IDW1 = 1.947 IDW2 = 8.893
m m
ID1 ID2
W1 := W2 := W1 = 255.015 μm W2 = 19.336 μm
IDW1 IDW2
Calculate the width ratios (w31 = W3/W1) for the chosen gm/ID
w31 :=
(
pidw L1 , gmID1 ) w31 = 0.219
(
nidw L3 , gmID1 ⋅ g 31 )
w42 :=
(
nidw L2 , gmID2 ) w42 = 4.567
(
pidw L4 , gmID2 ⋅ g 42 )
W3 := W1 ⋅ w31 W4 := W2 ⋅ w42 W3 = 55.835 μm W4 = 88.313 μm
55 88
= 18.333 = 14.667
3 6
243
OTA circuit for simulation (feedback network, CMFB, Cc, etc. not shown)
M4c M4a,b
15/0.55 15/0.55
15/0.55
M=12 M=2
M4d
M1a,b
255/0.55
18/0.4 18/0.4
M3d M3c
M3a,b
18/0.4 M2a,b
M=6 19/0.4
80
60
40
20
0
-20
-40 -2 0 2 4
10 10 10 10
f [MHz]
Phase [degrees]
0
-50
-100
-150
-2 0 2 4
10 10 10 10
f [MHz]
244
PSD [V2/Hz]
-20
10
5 10
10 10
f [Hz]
Sqrt(Integral) [μVrms]
0 5 10
10 10
f [Hz]
Loop crossover and phase margin are way off! Why? Look at .op output:
gm1 = 5.12mS
gm2 = 1.88mS
Junction caps are fairly large and comparable to other caps. E.g. Cdb1~300fF; this will
significantly impact nondominant pole.
Cgg1=688fF, means that beta is smaller than what we had budgetd above (beta,est)
....
Bottom line: Hard to get "reasonable" matching between hand calculations and Spice using
simplified expressions and ignoring junctions caps. Let's fix this...
245
subckt x1 x1 x1 x1 x1 x1
element 1:m1a 1:m1b 1:m2a 1:m2b 1:m3d 1:m3c
model 0:pch214 0:pch214 0:nch214 0:nch214 0:nch214 0:nch214
region Saturati Saturati Saturati Saturati Saturati Saturati
id -515.7219u -515.7219u 209.9559u 209.9559u 85.0000u 100.5239u
ibs 0. 0. 0. 0. 0. 0.
ibd 0. 0. 0. 0. 0. 0.
vgs -1.0731 -1.0731 795.4179m 795.4179m 726.2152m 726.2152m
vds -1.2776 -1.2776 1.4843 1.4843 726.2152m 1.9455
vbs 926.9464m 926.9464m 0. 0. 0. 0.
vth -924.8901m -924.8901m 594.7855m 594.7855m 602.4640m 590.0494m
vdsat -186.1804m -186.1804m 162.1420m 162.1420m 116.5494m 123.5860m
vod -148.1634m -148.1634m 200.6324m 200.6324m 123.7513m 136.1659m
beta 31.1696m 31.1696m 11.1159m 11.1159m 10.5036m 10.4989m
gam eff 458.3707m 458.3707m 894.1238m 894.1238m 894.1238m 894.1238m
gm 5.1229m 5.1229m 1.8862m 1.8862m 1.1167m 1.2474m
gds 67.8360u 67.8360u 20.4147u 20.4147u 14.0027u 12.6163u
gmb 903.7574u 903.7574u 495.7571u 495.7571u 298.8398u 328.6908u
cdtot 419.4667f 419.4667f 25.7526f 25.7526f 28.4889f 22.8775f
cgtot 681.3669f 681.3669f 37.5110f 37.5110f 34.9915f 35.1430f
cstot 938.5513f 938.5513f 69.9117f 69.9117f 65.4864f 65.6493f
cbtot 767.3791f 767.3791f 69.2340f 69.2340f 69.7566f 64.1621f
cgs 528.6546f 528.6546f 27.3328f 27.3328f 25.2053f 25.3129f
cgd 122.2292f 122.2292f 4.3896f 4.3896f 4.1602f 4.1588f
subckt x1 x1 x1 x1 x1 x1
element 1:m3b 1:m3a 1:m4d 1:m4c 1:m4b 1:m4a
model 0:nch214 0:nch214 0:pch214 0:pch214 0:pch214 0:pch214
region Saturati Saturati Saturati Saturati Saturati Saturati
id 515.7219u 515.7219u -100.5239u -1.1886m -209.9559u -209.9559u
ibs 0. 0. 0. 0. 0. 0.
ibd 0. 0. 0. 0. 0. 0.
vgs 726.2152m 726.2152m -1.0545 -1.0545 -1.0545 -1.0545
vds 795.4179m 795.4179m -1.0545 -926.9464m -1.5157 -1.5157
vbs 0. 0. 0. 0. 0. 0.
vth 601.7593m 601.7593m -739.0005m -740.0639m -735.1556m -735.1556m
vdsat 116.9465m 116.9465m -311.3437m -310.5103m -314.3549m -314.3549m
vod 124.4559m 124.4559m -315.5066m -314.4432m -319.3516m -319.3516m
beta 63.0200m 63.0200m 1.8139m 21.7668m 3.6278m 3.6278m
gam eff 894.1238m 894.1238m 472.5709m 472.5709m 472.5709m 472.5709m
gm 6.7553m 6.7553m 559.8132u 6.6300m 1.1578m 1.1578m
gds 81.4843u 81.4843u 10.9880u 147.0550u 17.4548u 17.4548u
gmb 1.8061m 1.8061m 127.5074u 1.5107m 263.4207u 263.4207u
cdtot 167.9230f 167.9230f 29.4059f 361.5686f 54.5446f 54.5446f
cgtot 210.0083f 210.0083f 39.8665f 478.3955f 79.7341f 79.7341f
cstot 392.9864f 392.9864f 66.0755f 792.9036f 132.1528f 132.1528f
cbtot 415.5359f 415.5359f 62.0693f 753.5347f 119.8678f 119.8678f
cgs 151.2783f 151.2783f 30.0686f 360.8146f 60.1421f 60.1421f
cgd 24.9604f 24.9604f 7.0195f 84.2342f 14.0390f 14.0390f
246
Cf
Cs CL
- +
Vsd Vid Vod
+ -
Cs
CL
Cf
M4a,b
M1a,b
M3a,b M2a,b
Technology Data
2
VDD := 3V γ := Lmin := 0.35μm
3
k dbn := 0.65 k dbp := 0.8 (approximate ratios of Cdb/Cgg for minimum length device)
Design Objectives
Cs
Cs := 400fF CL := 200fF Cf :=
G
Cf
Cgg1 := Cs + Cf β est := β est = 0.167
Cf + Cs + Cgg1
1 3
avo := avo = 1.2 × 10
ε s⋅ β est
For simplicity, assume that each stage contributes same gain (not necessarily accurate/optimal)
For simplicity, assume that intrinsic gain of both signal path devices is 2x stage gain (not
necessarily accurate/optimal). Intrinsic gain requirements:
L1 := 0.55μm L2 := 0.4μm
248
For simplicity, choose same lengths for pmos/nmos loads (not necessarily optimal)
L3 := L2 L4 := L1
Ratio of gm/ID in load devices vs. signal path (often want g1,2 to be <1, to minimize noise and
Cjunction; however, very small g1,2 may impose DR limitations)
gmID3 gmID4
g 31 = g 31 := 1 g 42 = g 42 := 1
gmID1 gmID2
Usually have to leave margins for PVT and gain drop at swing. Depending on final design outcome
(optimum gm/ID), it may be worth re-visiting this assumtion.
ITERATION
Cgg1
c1 = (good starting point: c1=1) c1 := 1
Cs + Cf
Cgg2
c2 = (good starting point: c2=1) c2 := 1
CL
Cf
β := β = 0.167
(Cf + Cs)⋅ (1 + c1)
(
Cgg1 := c1 ⋅ Cs + Cf ) Cgg1 = 600 fF
Lmin
Cdb1 := k dbp ⋅ Cgg1 ⋅ Cdb1 = 305.455 fF
L1
To find Cdb3, we estimate the width ratio w31 = W3/W1, assuming gm/ID1=10S/A (not known at
this point; also won't matter much...)
pidw⎛⎜ L1 , 10
S⎞
⎟
w31 :=
⎝ A⎠
w31 = 0.219 Cdb3 := w31⋅ Cdb1 ⋅
k dbn
Cdb3 = 54.338 fF
nidw⎛⎜ L3 , 10 ⋅ g 31⎞⎟
S k dbp
⎝ A ⎠
Lmin
Cdb2 := k dbn ⋅ Cgg2 ⋅ Cdb2 = 113.75 fF
L2
nidw⎛⎜ L2 , 10
S⎞
⎟
w42 :=
⎝ A⎠
w42 = 4.567 Cdb4 := w42⋅ Cdb2 ⋅
k dbp
Cdb4 = 639.428 fF
pidw⎛⎜ L4 , 10 ⋅ g 42⎞⎟
S k dbn
⎝ A ⎠
C2 := CL + Cdb2 + Cdb4 + ( 1 − β ) ⋅ Cf
3
C2 = 1.12 × 10 fF Total stage 2 load
2
0.5⋅ Vodmax
Ntot := Ntot = 355.234 μV
DR
10
10
⎡ 1 k B ⋅ Tr k B ⋅ Tr ⎤
Ntot = 2 ⋅ ⎢ ⋅ (
⋅ γ ⋅ 1 + g 31 + ) (
⋅ ⎡γ ⋅ 1 + g 42 + 1⎤ ⎥
⎣ ⎦ )
⎣ β Cc CL
⎦
( )
1
⋅ k B⋅ Tr⋅ γ ⋅ 1 + g 31
β
Cc := 2 ⋅ Cc = 0.56 pF
k B ⋅ Tr
Ntot −
C2 ⎣ ( )
⋅ ⎡γ ⋅ 1 + g 42 + 1⎤
⎦
(Note: for low DR designs, Cc is not neccesarily set by noise and becomes part of the optimization
process (e.g. add variable c3=cc/CL to the iteration loop)
250
1
g m1 := ⋅ 2 ⋅ π ⋅ fc⋅ Cc g m1 = 4.222 mS
β
k := tan⎛⎜ π ⋅ ⎞ k = 3.732
PM
⎟
⎝ 180deg ⎠
⎛ C2⋅ C1 ⎞
g m2 := k ⋅ 2 ⋅ π ⋅ fc⋅ ⎜ + C1 + C2⎟ g m2 = 13.128 mS
⎝ Cc
⎠
1 g m1
fT1 := ⋅ fT1 = 1.12 GHz
2 ⋅ π Cgg1
1 g m2
fT2 := ⋅ fT2 = 10.447 GHz
2 ⋅ π Cgg2
( ) ( )
1 1
gmID1 := pgmid L1 , fT1 gmID2 := ngmid L2 , fT2 gmID1 = 10.404 gmID2 = 6.21
V V
g m1 g m2
ID1 := ID2 := ID1 = 0.406 mA ID2 = 2.114 mA
gmID1 gmID2
This design (with c1=1, c2=1 -> IDtotal=2.52mA) will certainly work, but there's lots of room for
power optimization. With the above script, it is quite easy to iteratively step c1 and c2 up/down to
search for a power minimum.
For c1=1, c2=1, it is interesting to note that there is lots of self-loading (The Cdb's present a large
fraction of the caps that set fc and fp2). Hence, going to smaller c1 and/or c2 may help lower
power.
Another try with c1=0.5, c2=1 yields IDtotal=1.819mA. Making the pmos smaller reduces its
contributed capacitance faster than gm/ID drops; beta also improves for small c1. Hence, there is
a net reduction in power.
Similarly, using yet another try with c1=0.5, c2=0.5 yields IDtotal=1.497mA.
Manual iterations are very useful for developing intuition; but it is also possible to automate the
search process using an optimization function:
251
Cf
( )
f c1 , c2 := β←
(Cf + Cs)⋅ (1 + c1)
Cgg1 ← c1 ⋅ ( Cs + Cf)
Cgg2 ← c2 ⋅ CL
Lmin
Cdb1 ← k dbp ⋅ Cgg1 ⋅
L1
pidw⎛⎜ L1 , 10
S⎞
⎟
Cdb3 ←
⎝ A⎠
⋅ Cdb1 ⋅
k dbn
nidw⎛⎜ L3 , 10 ⋅ g 31⎞⎟
S k dbp
⎝ A ⎠
Lmin
Cdb2 ← k dbn ⋅ Cgg2 ⋅
L2
nidw⎛⎜ L2 , 10
S⎞
⎟
Cdb4 ←
⎝ A⎠
⋅ Cdb2 ⋅
k dbp
pidw⎛⎜ L4 , 10 ⋅ g 42⎞⎟
S k dbn
⎝ A ⎠
C1 ← Cdb1 + Cdb3 + Cgg2
C2 ← CL + Cdb2 + Cdb4 + ( 1 − β ) ⋅ Cf
( )
1
⋅ k B⋅ Tr⋅ γ ⋅ 1 + g 31
β
Cc ← 2 ⋅
k B ⋅ Tr
Ntot −
C2 ⎣ (
⋅ ⎡γ ⋅ 1 + g 42 + 1⎤ ) ⎦
1
g m1 ← ⋅ 2 ⋅ π ⋅ fc⋅ Cc
β
k ← tan⎛⎜ π ⋅ ⎞
PM
⎟
⎝ 180 ⋅ deg ⎠
⎛ C2 ⋅ C1 ⎞
g m2 ← k ⋅ 2 ⋅ π ⋅ fc⋅ ⎜ + C1 + C2 ⎟
⎝ Cc ⎠
1 g m1
fT1 ← ⋅
2 ⋅ π Cgg1
1 g m2
fT2 ← ⋅
2 ⋅ π Cgg2
(
Copt := Minimize f , c1 , c2 )
M
Comments:
- Shallow power minimum for small c1 and c2
- the optimum is close to the "steep cliff" imposed by limiting gm/ID to practical values >4S/A in the
objective function (in the power minimum, gm/ID1=4.7S/A, gm/ID2=7.7S/A)
253
c1 := Copt c2 := Copt
0 1
Cf
β := β = 0.291
(Cf + Cs)⋅ (1 + c1)
(
Cgg1 := c1 ⋅ Cs + Cf ) Cgg1 = 87.269 fF
Lmin
Cdb1 := k dbp ⋅ Cgg1 ⋅ Cdb1 = 44.428 fF
L1
pidw⎛⎜ L1 , 10
S⎞
⎟
w31 :=
⎝ A⎠
w31 = 0.219 Cdb3 := w31⋅ Cdb1 ⋅
k dbn
Cdb3 = 7.903 fF
nidw⎛⎜ L3 , 10 ⋅ g 31⎞⎟
S k dbp
⎝ A ⎠
Lmin
Cdb2 := k dbn ⋅ Cgg2 ⋅ Cdb2 = 43.13 fF
L2
nidw⎛⎜ L2 , 10
S⎞
⎟
w42 :=
⎝ A⎠
w42 = 4.567 Cdb4 := w42⋅ Cdb2 ⋅
k dbp
Cdb4 = 242.447 fF
pidw⎛⎜ L4 , 10 ⋅ g 42⎞⎟
S k dbn
⎝ A ⎠
( )
1
⋅ k B⋅ Tr⋅ γ ⋅ 1 + g 31
β
Cc := 2 ⋅ Cc = 0.34 pF
k B ⋅ Tr
Ntot −
C2 ⎣ ( )
⋅ ⎡γ ⋅ 1 + g 42 + 1⎤
⎦
254
1
g m1 := ⋅ 2 ⋅ π ⋅ fc⋅ Cc g m1 = 1.469 mS
β
k := tan⎛⎜ π ⋅ ⎞
PM
⎟ k = 3.732
⎝ 180deg ⎠
⎛ C2⋅ C1 ⎞
g m2 := k ⋅ 2 ⋅ π ⋅ fc⋅ ⎜ + C1 + C2⎟ g m2 = 4.652 mS
⎝ Cc ⎠
1 g m1
fT1 := ⋅ fT1 = 2.679 GHz
2 ⋅ π Cgg1
1 g m2
fT2 := ⋅ fT2 = 9.763 GHz
2 ⋅ π Cgg2
( ) ( )
1 1
gmID1 := pgmid L1 , fT1 gmID2 := ngmid L2 , fT2 gmID1 = 4.639 gmID2 = 6.916
V V
g m1 g m2
ID1 := ID2 := ID1 = 0.317 mA ID2 = 0.673 mA
gmID1 gmID2
( ) ( )
A A
IDW1 := pidw L1 , gmID1 IDW2 := nidw L2 , gmID2 IDW1 = 9.535 IDW2 = 17.356
m m
ID1 ID2
W1 := W2 := W1 = 33.208 μm W2 = 38.755 μm
IDW1 IDW2
OTA circuit for simulation (feedback network, CMFB, Cc, etc. not shown)
M4c M4a,b
25/0.55 25/0.55
25/0.55
M=7 M=7
M4d
M1a,b
33/0.55
M=2
1/0.4 1/0.4
M3d M3c
M3a,b
1/0.4 M2a,b
M=7 39/0.4
80
60
40
20
0
-20
-40 -2 0 2 4
10 10 10 10
f [MHz]
Phase [degrees]
0
-50
-100
-150
-2 0 2 4
10 10 10 10
f [MHz]
256
PSD [V2/Hz]
-20
10
5 10
10 10
f [Hz]
Sqrt(Integral) [μVrms]
200
0 5 10
10 10
f [Hz]
- fc is about 10% lower than expected. This is mostly due to the dominant pole approximation; the
second pole pulls fc to lower frequencies. Also, Cgd of M2 adds additional compensation
capacitance, which also reduces fc.
The discrepancies, in general, can be resolved in two ways: (1) Spice tweaking (OK for small
changes), (2) Re-visit above calculations and improve assumtions and equations. E.g. factor in the
expected error from the dominant pole approximation.
An advantage of the presented methodology is that most, if not all discrepancies/errors can be
tracked down by comparing the Spice component values (gm, gm/ID, Cdb, ... from .op) with those
used in the optimization routine.
Close inspection of the .op values below reveals that most small signal parameters calculated
above agree with Spice to within 10-20%.
257
subckt x1 x1 x1 x1 x1 x1
element 1:m1a 1:m1b 1:m2a 1:m2b 1:m3d 1:m3c
model 0:pch214 0:pch214 0:nch214 0:nch214 0:nch214 0:nch214
region Saturati Saturati Saturati Saturati Saturati Saturati
id -344.6871u -344.6871u 772.2910u 772.2910u 50.0000u 104.2676u
ibs 0. 0. 0. 0. 0. 0.
ibd 0. 0. 0. 0. 0. 0.
vgs -1.2816 -1.2816 871.7327m 871.7327m 1.0988 1.0988
vds -1.4099 -1.4099 1.4986 1.4986 1.0988 2.0205
vbs 718.4015m 718.4015m 0. 0. 0. 0.
vth -885.7614m -885.7614m 595.0075m 595.0075m 584.3535m 574.9695m
vdsat -384.5490m -384.5490m 205.6017m 205.6017m 304.2131m 307.9633m
vod -395.8371m -395.8371m 276.7252m 276.7252m 514.4807m 523.8647m
beta 3.9883m 3.9883m 23.0145m 23.0145m 531.3387u 1.0629m
gam eff 461.1502m 461.1502m 894.1238m 894.1238m 894.1238m 894.1238m
gm 1.5295m 1.5295m 4.9575m 4.9575m 161.8125u 331.7534u
gds 27.5794u 27.5794u 56.8387u 56.8387u 2.9301u 4.0365u
gmb 282.3301u 282.3301u 1.2918m 1.2918m 42.9472u 86.8132u
cdtot 55.0457f 55.0457f 52.2020f 52.2020f 2.0215f 3.4641f
cgtot 88.4114f 88.4114f 77.6753f 77.6753f 1.7924f 3.5848f
cstot 126.0118f 126.0118f 143.1825f 143.1825f 4.4518f 8.8976f
cbtot 104.3431f 104.3431f 140.4000f 140.4000f 5.1705f 9.7628f
cgs 68.7789f 68.7789f 56.7937f 56.7937f 1.3590f 2.7114f
cgd 15.6526f 15.6526f 9.0726f 9.0726f 207.4045a 414.8090a
subckt x1 x1 x1 x1 x1 x1
element 1:m3b 1:m3a 1:m4d 1:m4c 1:m4b 1:m4a
model 0:nch214 0:nch214 0:pch214 0:pch214 0:pch214 0:pch214
region Saturati Saturati Saturati Saturati Saturati Saturati
id 344.6871u 344.6871u -104.2676u -703.2478u -772.2910u -772.2910u
ibs 0. 0. 0. 0. 0. 0.
ibd 0. 0. 0. 0. 0. 0.
vgs 1.0988 1.0988 -979.5312m -979.5312m -979.5312m -979.5312m
vds 871.7327m 871.7327m -979.5312m -718.4015m -1.5014 -1.5014
vbs 0. 0. 0. 0. 0. 0.
vth 586.6658m 586.6658m -739.8673m -742.0442m -735.5167m -735.5167m
vdsat 303.2846m 303.2846m -251.4877m -249.7596m -254.9415m -254.9415m
vod 512.1684m 512.1684m -239.6639m -237.4870m -244.0145m -244.0145m
beta 3.7191m 3.7191m 3.0506m 21.3547m 21.3541m 21.3541m
gam eff 894.1238m 894.1238m 472.5709m 472.5709m 472.5709m 472.5709m
gm 1.1179m 1.1179m 741.4965u 5.0238m 5.4115m 5.4115m
gds 27.2459u 27.2459u 13.0870u 115.7219u 74.4836u 74.4836u
gmb 297.8439u 297.8439u 170.1165u 1.1533m 1.2402m 1.2402m
cdtot 14.9146f 14.9146f 49.3740f 364.8318f 316.8690f 316.8690f
cgtot 12.5467f 12.5467f 67.0284f 469.1707f 469.2508f 469.2508f
cstot 31.1678f 31.1678f 109.9526f 769.6267f 769.7437f 769.7437f
cbtot 36.9572f 36.9572f 103.2448f 741.9384f 693.9432f 693.9432f
cgs 9.5188f 9.5188f 50.4655f 353.2113f 353.3468f 353.3468f
cgd 1.4518f 1.4518f 11.8133f 82.6932f 82.6926f 82.6926f
258
Lecture 21
Step Response
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 7.5 (Relation Between Frequency and Time Response)
• Reference
– H.C. Yang and D.J. Allstot, "Considerations for fast settling
operational amplifiers," IEEE Trans. Ckts. and Syst., March
1990, pp. 326 – 334.
• Introduction
– OTAs with capacitive feedback are primarily used in
switched capacitor circuits, where fast settling to voltage
steps at the input is critical. In today's lecture we will look at
first and second order behavior in the step response of
feedback OTAs.
Motivation
Analysis
Cf
T0 = β ⋅ Gm Ro β=
V (s) C T0 1 C f + Cs + Cin
A(s ) ≅ out =− s ⋅
Vin ( s ) C f 1 + T0 1 + s Gm
ωc ωc ≅ β ⋅ C Ltot = C L + (1 − β ) ⋅ C f
C Ltot
Step Response
Vout ( s ) = A( s ) ⋅ Vin ( s )
⎧ Vstep ⎫
Vout ( t ) = L−1 ⎨ A( s ) ⋅ ⎬=−
Cs T
⋅ Vstep ⋅ 0 ⋅ 1 − e −t / τ ( ) τ=
1
⎩ s ⎭ Cf 1 + T0 ωc
Graphical Illustration
Dynamic Static
Error (t) Error
0.8
Vout/Vout,ideal
0.6
0.4
0.2
0
0 2 4 6 8 10
t/τ
− ε d ,tol = −e −t s / τ
t s = −τ ⋅ ln(ε d ,tol )
1
ts = − ⋅ ln(ε d ,tol )
ωc
εd,tol ts/τ
1% 4.6
0.1% 6.9
0.01% 9.2
10-6 13.8
ε fc/fCLK
1% 1.5
0.1% 2.2
0.01% 2.9
10-6 4.4
1 fT f
f CLK ,max = ⋅ ≅ T = 266 MHz
2.9 9 30
Practical Aspects
Simulation Example
Result
1 C L + (1 − β )C f β ⋅ Gm R0
τ= = 21ns Vod , final = −Vidstep = 9.76 mV
β Gm 1 + β ⋅ Gm R0
1000
-V
800 id
Vod (simulation)
Voltage [mV]
600 V (theory?)
od
400
200
Another Run
• Changed CL from 10pF to 300fF
10
-V
id
5 V (simulation)
Voltage [mV]
od
Vod (theory?)
-5
0 5 10 15 20 25
Time [ns]
• What's this ?
Capacitive Feedforward
• In the first instant after the input step has been applied, the
output is completely determined by capacitive voltage division
• Half circuit during initial transient:
Vodstep Cs Cf
= ⋅
Vidstep C f CL C f + CL
Cs + Cin +
C f + CL
Analysis
• Can analyze this effect in two (equivalent) ways
– Using capacitive divider to find new starting point of
exponential
– Using inverse Laplace transform of A(s) with feedforward
zero included
• Recall from lecture 14, that A(s) is more precisely given by
s Gm
1− z=
Cs z ⋅ T0
A(s ) = − Cf
C f 1 − s 1 + T0
p βGm
p=−
C L + (1 − β )C f
New Result
⎧ Vstep ⎫ Cs T ⎛ ⎡ p⎤ ⎞
Vod ( t ) = L−1 ⎨ A( s ) ⋅ ⎬=− ⋅Vidstep ⋅ 0 ⋅ ⎜⎜ 1 − ⎢1 − ⎥ e −t / τ ⎟⎟
⎩ s ⎭ Cf 1 + T0 ⎝ ⎣ z⎦ ⎠
New
p CL + (1 − β )C f + βC f CL + C f 1
1− = = =
z C L + (1 − β )C f C L + (1 − β )C f Cf
1− β
C f + CL
1 ⎛ ⎡ C f ⎤ ⎞⎟
ts = − ⋅ ln⎜ ε d ,tol ⎢1 − β ⋅ ⎥
ωc ⎜⎝ ⎣⎢ C f + CL ⎦⎥ ⎟⎠
<1
Appendix
Boris Murmann
Single Pole Amplifier (for reference) 11/11/2006
β ⋅ T0 β ⋅ Gm⋅ R 1
T( s) = T( s) = =
s 1 + sRC 1 C
1− + s⋅
p1 β ⋅ Gm⋅ R β ⋅ Gm
1
T( s) =
For large DC loop gain: C
s⋅
β ⋅ Gm
1 Gm
=1
C ω c1 = β ⋅
j ⋅ ω c1⋅ C
β ⋅ Gm
Phase margin
(
T jω3dB ) =
1
1
=
1 1
=
1
ω 3dB = ω c1
( ) ω 3dB 2 2 2
1 + T jω3dB 2 1+j ⎛ ω 3dB ⎞⎟
ω c1 1+⎜
⎜⎝ ω c1 ⎟⎠
1
T( s) =
⋅ ⎛⎜ 1 − ⎞
s s
ω c1 p2 ⎟
⎝ ⎠
1
=1 ω c2 ω p2
ω c2 ⎛ ω c2 ⎞ m= n=
j ⋅⎜1 + j ⎟ ω c1 ω c1
ω c1 ⎜ ω p2 ⎟
⎝ ⎠
2
m⋅ 1 + ⎛ m⎞ = 1 m( n ) :=
1 2
⋅ 2 ⋅ n ⋅ n + 4 − 2n
2
⎜n⎟
⎝ ⎠ 2
0.9
m( n)
0.8
0.7
1 2 3 4 5
n
Non-dominant pole moves crossover point to slightly lower frequencies (as one would predict
from first order model). E.g. for a nondominant pole with a frequency of ~three times the
crossover frequency (n=3), the crossover shifts to ~0.95*wc1.
Phase margin
ω p2
PM2 = 180deg + arg⎡⎢ ⎤ = 180 ⋅ deg − 90deg + arg⎛ ⎞
1 1
⎥ ⎜ ⎟ k=
ω c2 ⎛ ω c2 ⎞ ω c2 ω c2
⎢j ⋅⎜1 + j ⎟ ⎥ ⎜1 + j⋅
⎟
⎢ ω c1 ⎜ ω p2 ⎟ ⎥ ⎜ ω p2 ⎟
⎣ ⎝ ⎠⎦ ⎝ ⎠
270
80
70
180
PM2( k) ⋅
π
60
50
40
1 2 3 4 5 6 7 8
k
1
k ( PM2) :=
tan⎜
⎛ π − PM2⎞
⎟
⎝2 ⎠
4
⎛
k⎜PM⋅
π ⎞
⎟
⎝ 180 ⎠
3
1
45 50 55 60 65 70 75 80
PM
271
ω ω p2
A( ω ) =
1
w= n=
ω ω c1 ω c1
1+j
⎛
⋅⎜1 + j
ω ⎞
ω c1 ω p2
⎟
⎝ ⎠
1 1
A( w , n ) := c( w) :=
1 + j w⋅ ⎛⎜ 1 + j
w⎞ 2
⎟
⎝ n⎠
1.5
A ( w , 1)
A ( w , 2)
1
A( w , 100)
c( w ) 0.5
0
0.1 1 10
w
1
=
1 ω 3dB ω p2
1 + j r⋅ ⎛⎜ 1 + j
r⎞ 2 r= n=
⎟ ω c1 ω c1
⎝ n⎠
2
⎛ 2⎞
⎜ 1 − r ⎟ + r2 = 2 r( n ) :=
1 2 2
⋅ 4⋅ n − 2⋅ n + 2⋅ n⋅ n − 4⋅ n + 8
⎝ n⎠ 2
1.4
r( n) 1.3
1.2
1.1
2 4 6 8 10
n
For wp2=3*wc1, closed loop bandwidth is about 35% higher than first order prediction
272
s1 2 s2 2
2
k ⋅ ω c1 + s⋅ k ⋅ ω c1 + s = 0
2
=−
k
+ ⎛k⎞ − k =−
k
− ⎛k⎞ − k
⎜2⎟ ⎜2⎟
ω c1 2 ⎝ ⎠ ω c1 2 ⎝ ⎠
k ⎛ 4⎞ k ⎛ 4⎞
s1n( k ) := − ⋅ ⎜ 1 + 1− ⎟ s2n( k ) := − ⋅ ⎜ 1 − 1− ⎟
2 ⎝ k⎠ 2 ⎝ k⎠
2
1 k ⋅ ω c1
U( s) = ⋅ a = s1n⋅ ω c1 b = s2n⋅ ω c1
s (s − s1n⋅ ω c1)⋅ (s − s2n⋅ ω c1)
2 ⎛ 1 e
a⋅ t
e
b⋅ t ⎞
tn = t⋅ ω c1
u ( t) = k ⋅ ω c1 ⋅ ⎜ + + ⎟
⎝ a⋅ b a( a − b ) b ( b − a) ⎠
s 1n( k) ⋅ tn s2n( k) ⋅ tn
k⋅ e k⋅ e
( )
k
u tn , k := + +
s1n( k ) ⋅ s2n( k ) s1n( k ) s1n( k ) − s2n( k ) (
s2n( k ) s2n( k ) − s1n( k ) ) ( )
( )
u tn , 1 1.1
u( tn , 2)
u( tn , 3)
1
0.9
0 2 4 6 8 10
tn
273
( ) (
ε d t n , k := u tn , k − 1 )
(
t sn ε dspec , k :=) (
t s ← −ln ε dspec + 10 )
( )
while ε d t s , k < ε dspec
t s ← ts − 0.01
ts
( )
return
−ln ε dspec k := 1 , 1.1 .. 8
Relative settling time versus k=wp2/wc1 for various dynamic error specs
1.4
1.2
1
tsn( 0.01% , k)
tsn( 0.1% , k)
0.8
tsn( 1% , k)
1 0.6
0.4
0.2
0
1 2 3 4 5 6 7 8
k
274
1
k ( PM2) :=
⎛ π − PM2⎞ PM := 50 , 51 .. 90
tan⎜ ⎟
⎝2 ⎠
1.4
1.2
⎛ ⎛
tsn⎜0.01% , k⎜PM⋅
π ⎞⎞
⎟⎟ 1
⎝ ⎝180 ⎠⎠
⎛ ⎛
tsn⎜0.1% , k⎜PM⋅
π ⎞⎞
⎟⎟ 0.8
⎝ ⎝ 180 ⎠⎠
⎛ ⎛
tsn⎜1% , k⎜PM⋅
π ⎞⎞
⎟⎟
⎝ ⎝ 180 ⎠⎠ 0.6
1
0.4
0.2
0
50 60 70 80 90
PM
Conclusion: Try to target phase margin between 70...75 degrees; amplifier then
settles ~30% faster than single pole system (ignoring second order effects).
275
Lecture 22
Slewing
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 9.6.1, 9.6.2, 9.6.5 (Slew Rate)
• Introduction
– Today we'll complete our discussion of transient behavior in
OTA circuits with capacitive feedback. Aside from the
feedforward artifact we've discovered last time, there exists
another effect called "slewing". Whenever the differential
input pair is driven outside its "linear range", the differential
output current is limited by the available tail bias. In typical
switched capacitor circuits, slewing can cause a significant
speed reduction, and is therefore an important effect to
consider.
Another Simulation
1000
800
-Vid
Voltage [mV]
200
Cs 500 fF
Vxdstep = Vidstep ≅ −1V = −480 mV
C f CL 500 fF + 40 fF + 500 fF
Cs + Cin +
C f + CL
1
Slope = 1
Iod/ITAIL 0
1
2 1 0 1 2
-√2 Vid/(2/[gm/ID]) √2
0
-100
-200 "Slewing" "Linear Settling"
Vxd [mV]
-300
-400 -1.4·2/gm/ID)
-500
0 50 100 150
Time [ns]
0
Diff. pair I od [μA]
-100
-200
-300
0 50 100 150
Time [ns]
Slewing
Slew Rate
Slewing Time
• The input of the differential pair changes at a rate equal to β·SR,
where β is given by the usual capacitive feedback divider
• Hence, the time it takes to complete slewing is given by
Vxstep − 2.8 / (g m / I D )
t slew =
β ⋅ SR
480 mV − 280 mV
t slew = = 21ns
V
0.48 ⋅ 20
μs
Vxstep − 2.8 / ( g m / I D )
t s = t slew + tlin ≅ − τ ln(ε d ,tol )
β ⋅ SR
I TAIL I TAIL Cf
SR = = β=
C Ltot C L + (1 − β )C f C f + Cs + Cin
Cs Cs
Vxdstep = Vidstep ≅ Vidstep
C f CL Cs + Cin + C f
Cs + Cin +
C f + CL
<1
• Note that circuits with large closed loop gain tend to slew less
– Since Vidstep cannot be larger than Voutputswing/Gain
– E.g. Voutputswing=2V, Gain =8 ⇒ Vxdstep < Vidstep < 250mV
• Won’t slew at all if gm/ID < 2.8/250mV= 11.2V-1
• The maximum slew rate at which output Vom can move down
d (Vom − V1 p ) ⎧I / 2 I B2 / 2 ⎫
SR− ,MAX = = min⎨ TAIL , ⎬
dt ⎩ Cc Cc + C Ltot ⎭
d ( Vop − V1m ) I /2
SR+ ,MAX = = TAIL
dt Cc
ITAIL I B2
≤
Cc Cc + C Ltot
• Example:
vo (t ) = Vˆo sin (ωt )
iout dvo
iout (t ) = CL
Vout dt
Vin
= ω ⋅ C L ⋅ Vˆo cos(ωt )
CL
îout = ω ⋅ C L ⋅V̂o
Resulting Waveform
Design Considerations
Lecture 23
Feedback and Port Impedances
OTA Variants, CMFB Implementation
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 8.8.2 (Closed-Loop Impedance Formula using Return Ratio)
– 6.7 (MOS Active-Cascode Amplifiers)
– 12.5 (CMFB Circuits)
– 12.6 (Fully Differential Amplifiers)
– 9.4.4 (Compensation of Single Stage CMOS OTAs)
• Reference
– K. Bult, G.J.G.M. Geelen, "A fast-settling CMOS op-amp for SC circuits with
90-dB DC gain," IEEE J. Solid-State Circuits, Dec. 1990, pp. 1379 – 1384.
• Introduction
– In order to complete our framework for feedback circuit analysis, we will
study the effect of feedback on port impedances in today's lecture. A useful
analytical tool for quick calculations is Blackman's Impedance Formula,
which allows us to find port impedances based on a superposition of simple
sub-analyses.
– Next, we survey common OTA architectures and associated implementation
aspects. Most OTAs used in practice are derivatives of the basic single- or
two-stage topology, with add-ons such as simple cascodes or gain boosted
cascodes. The survey concludes with a brief analysis of the most commonly
used common mode feedback implementations.
1 + T ( port shorted )
Z port = Z port (k = 0 ) ⋅
1 + T ( port open )
Example 1
1
Rout (k = 0 ) = Rout (av = 0 ) =
gm
T ( port shorted ) = 0
T ( port open ) = av
1 1
Rout =
g m 1 + av
Rin ( g m = 0 ) = RF + ro Rout (g m = 0 ) = ro
1 1 ⎛ RF ⎞ 1 1
Rin = (RF + ro ) ≅ ⎜1 + ⎟ Rout = ro ≅
1 + g m ro g m ⎜⎝ ro ⎟⎠ 1 + g m ro g m
T ( port open ) = 0
gm2
T ( port shorted ) ≅ av ≅ av
g m 2 + g mb 2
Basic Implementation
Rout ≅ r01 ⋅ g m 2 ro 2 ⋅ g m 3 ro 3
Properties
Biasing
• Large input
common mode rage
• Slightly improved
output range
• Folding adds power
dissipation
Compensation
AC Half Circuit for Telescopic OTA AC Half Circuit for Folded Cascode OTA
k 1 1 k
• Implementation aspects
– How to sense
– How to compare to desired value
– How to provide a "knob" for adjusting Voc
Knob
Comparison Circuit
Sensing
g Ccmfb
T0 ≅ mx rop ⋅
2 C
Ccmfb + x
2
• Nondominant pole
g mn
ω p2 ≅
Cy
Design Considerations
• The required bandwidth of the common mode loop strongly
depends on the amount of expected imbalance, common mode
transients or ac components
– In an ideal world, the common mode is not affected by the
signal and hence stays constant
• In this case, the bandwidth of the CMFB loop is unimportant
• For robustness in practical implementations, the bandwidth of
the common mode loop is often chosen to be about 30% of the
differential signal path bandwidth
– In a typical switched capacitor circuit with 10 time constants
differential settling, this means that the common mode has
about 3 time constants to settle
• Enough time to remove 95% of common mode disturbance
Lecture 24
OTAs with Single Ended Outputs
Output Stage Examples
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 4.3.5 (Differential Pair with Current Mirror Load)
– 6.3.3 (Systematic Offset in Two-Stage Amplifier)
– Chapter 5 (Output Stages)
• Introduction
– This lecture concludes our discussion of amplifier implementations
by looking at a number of missing bits and pieces. First, we will
discuss subtleties of OTA implementations that use a single ended
output. While rarely used in the signal path of high performance
integrated circuits, OTAs with single ended outputs can be useful
as auxiliary amplifiers in biasing circuits. Finally, we will take a brief
look at output stages that are suitable for driving resistive loads.
While most on-chip loads tend to be capacitive in nature, low
impedance drivers are often needed when interfacing to off-chip
components and wire lines.
Mirror Doublet
• Half of the output current comes directly from the differential
pair, the other half goes through a current mirror with finite
bandwidth
– Result: Pole-zero doublet
⎛ ⎞
⎜ ⎟
⎜ 1 1 1 ⎟
io = g m vid +
⎜2 2 s⎟
⎜ 1− ⎟
⎝ p⎠
s
1−
2p
= g m vid
s
1−
p
Inverting Amplifier
• Cx = ?, T(s) = ?
– Big mess…
Systematic Offset
• No offset if VGS6=VGS3
balances the current in
the output branch
• Input referred
systematic offset is
(VGS6,balance-VGS3)/av1,
where av1 is the gain of
the first stage
Output Stages
• Needed to drive resistive loads (low R)
– Integrated continuous time RC-filters
– Off-chip resistive loads
– Line drivers
• E.g. twisted pair (Ethernet, ISDN, ADSL)
• Solutions
– Use OTA + source follower output stage
• Swing issue
– Use OTA + "low gain" common source stage
• E.g. make gm·RL~1
• E.g. 20mS·50Ω =1, IBIAS=20mS·10V-1 = 2mA
– "Sophisticated" output stages
• Examples on following slides
Class-A Class-B
Class-AB Class-C
[Hogervorst]
• Output transistors
never turn off
• Quiescent current
Iout
Current [A]
Iin1=Iin2 [A]
Complete OpAmp
[Hogervorst]
<Vtn+|Vtp|
[Palmisano]
Complete OpAmp
<Vtn+|Vtp|
[Palmisano]
Lecture 25
Supply Insensitive Biasing
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 4.4.2 (Supply Insensitive Biasing)
• Introduction
– Throughout this course, we have ignored the question on
how to generate the reference bias currents used in most of
our circuits. Today, we will examine a variety of current
reference implementations, with primary focus on supply
independence.
VDD − Vt − VOV
I OUT ≅ I IN =
R
2 I IN
Vt +
W
μCox
VGS 1 Vt + VOV L
I OUT = ≅ ≅
R2 R2 R2
Vt
I OUT ≅
R2
Sensitivity
• The sensitivity of a parameter y to a change in parameter x can
be approximately found using
Δy / y ∂y / y x ∂y ! y
≅ = = Sx
Δx / x ∂x / x y ∂x
SVIDD
OUT
= SVIDD
IN
⋅ S IIINOUT
I IN ∂I OUT
≅ 1⋅ ⋅
I OUT ∂I IN
1 VOV 1 1 0.1V
≅ e.g . = 7.1%
2 Vt + VOV 1 2 0.6V + 0.1V
BJT Version
VBE 1 1 kT ⎛ I IN ⎞
I OUT = = ln⎜ ⎟
R2 R2 q ⎜⎝ I S ⎟⎠
kT
q 26 mV
SVIDD
OUT
= e.g . = 3.7%
VBE 700 mV
Stability
g m 2 R2 1 1
T (s ) ≅ g m1 R1 ⋅ ⋅ ⋅
1 + g m 2 R2 1 + s s
1+
ω p1 ω p2
Self Biasing
• In the above discussed bias generator circuits, the supply
sensitivity is still fairly high, because IIN is essentially directly
proportional to VDD
• Idea: Mirror output current back to input instead of using supply
dependent input current!
Start-Up Circuit
(WEAK)
VBE Reference
VBE 1
I OUT =
R
1 ∂VBE 1 − 2mV / K
≅ = −0.33% / K
VBE 1 ∂T 600 mV TC F = −0.53% / K
1 ∂R
≅ +0.2% / K (poly resistor)
R ∂T
ΔVBE Reference
1 kT
I OUT = ln(n )
R q
TC of ΔVBE Reference
∂VT ∂R
R − VT kT
∂I OUT ∂T ∂T VT =
= ln(n ) q
∂T R 2
VT ⎛ 1 ∂VT 1 ∂R ⎞
= ln(n ) ⎜ − ⎟
R2 ⎜⎝ VT ∂T R ∂T ⎟⎠
1 ∂VT 1 ∂R 1 1 ∂R
TC F = − = −
VT ∂T R ∂T T R ∂T
• Example 1
TC F = − 0.2% / K = 0.13% / K
300 K
ΔV
I = I0 +
R
Vo ,slew ⋅ C C
ts ≅ +N
I β ⋅ gm
C⎛ I ⎞
⇒I ≅ ⎜⎜Vo ,slew + N ⎟
ts ⎝ β ⋅ g m ⎟⎠
⎛ 1 ⎞
2 ⋅ β ⋅ ts ⋅ ⎜ 1 − ⎟
Vo ,slew ⋅ C ⎝ k⎠
I0 ≅ R≅
ts N ⋅C
Lecture 26
Bandgap Reference
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 4.4.3 (Temperature Insensitive Biasing)
• Introduction
– In this lecture we will introduce the basic idea behind the
frequently used "bandgap" voltage reference. Conceptually,
a bandgap reference simply combines two quantities with
opposite temperature behavior to generate a voltage with
(approximately) zero TC.
Key Idea
kT ⎛ I C ⎞
VBE = ln⎜ ⎟
q ⎜⎝ I S ⎟⎠
• Even though kT/q increases with temperature, VBE decreases
because IS itself strongly depends on temperature
kT ⎛ I C VG 0 /( kT / q ) ⎞
VBE ≅ ln⎜ e ⎟⎟
q ⎜⎝ I 0 ⎠
kT ⎛ I 0 ⎞
≅ VG 0 − ln⎜ ⎟
q ⎜⎝ I C ⎟⎠
Extrapolated Bandgap
[Pierret, Advanced
Semiconductor
1.205eV Fundamentals, p.85]
1.205eV
VG 0 = = 1.205V
q
dVBE k ⎛I ⎞ VBE − VG 0
≅ − ln⎜⎜ 0 ⎟⎟ =
dt q ⎝ IC ⎠ T
• Example
dVBE 0.6V − 1.205V mV
≅ = −2.02
dt 300 K K
CTAT + PTAT
• Returning our initial idea, we can now find the condition that
gives us a temperature independent voltage
kT kT ⎛ I 0 ⎞ kT
VBE + M ≅ VG 0 − ln⎜⎜ ⎟⎟ + M
q q ⎝ IC ⎠ q
⎛ ⎛ ⎞⎞
≅ VG 0 +
kT ⎜ M − ln⎜ I 0 ⎟ ⎟
q ⎜ ⎜ I ⎟⎟
⎝ ⎝ C ⎠⎠
ΔVBE 1 kT
I1 = I 2 = = ln(n )
R1 R1 q
R2 kT
Vout = VBE 1 + ln(n )
R1 q
Choice of n
Design Example
1 kT 1
R1 = ln(n ) = 26 mV ln(8 ) = 1.08 kΩ
I2 q 50 μA
VGO − VBE 1 1.205V − 0.7V
R2 = R1 = 1.08 kΩ = 9.34 kΩ
kT
ln(n ) 26 mV ln (8 )
q
Nonidealities
• "Curvature"
– Temperature dependence of I0
• Offset voltages and TC of offset voltages
• Resistor mismatch and TC
• Finite β and β mismatch
Lecture 27
Bandgap Reference
(Continued)
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Reading
– 4.4.3 (Temperature Insensitive Biasing)
• Introduction
– Today's lecture will cover several important details that
we've left out in our previous analysis of bandgap
references. We will discuss nonidealities such as "curvature"
and the impact of offset voltages. Finally, we will take a brief
look at state-of-the art implementations and performance.
VBE Revisited
kT ⎛ K 1 ⋅ T r ⎞
VBE ≅ VG 0 − ln⎜ ⎟⎟
q ⎜⎝ I C ⎠
• The temperature dependence inside the logarithm slightly
curves the VBE vs. temperature characteristic
– TC of VBE is not quite independent of temperature
• Parameter r depends on technology, typically 3…6
Curvature
Collector Current
kT ⎛ T r ⎞
VBE ≅ VG 0 − ln⎜ K ⎟
q ⎜⎝ T n ⎟⎠
Modified TC of VBE
• With this refinement, we have
dVBE d ⎡ kT ⎛ T r ⎞⎤
≅ ⎢− ln⎜ K ⎟⎥
dT dT ⎣ q ⎜⎝ T n ⎟⎠⎦
k ⎛ T r ⎞ kT K (r − n )T r − n −1
≅ − ln⎜⎜ K n ⎟⎟ −
q ⎝ T ⎠ q Tr
K n
T
k ⎡ ⎛ Tr ⎞ ⎤
≅ − ⎢ln⎜⎜ K n ⎟⎟ − (r − n )⎥
q⎣ ⎝ T ⎠ ⎦
kT
VG 0 − VBE + (r − n )
q
=−
T
kT
VG0 − VBE + (r − n )
kT dVBE k q
0=M + =M −
q dT q T
⎡ kT ⎤
⎢VG0 − VBE + (r − n ) q ⎥
⇒M = ⎣ ⎦
kT
q
• Must design for Vout that is a few kT/q higher than VGO
Curvature Compensation
[Palmer]
Offset Voltage
ΔVBE 1 ⎛ kT ⎞
I1 = I 2 = = ⎜⎜ ln(n ) − VOS ⎟⎟
R1 R1 ⎝ q ⎠
R2 ⎛ kT ⎞
Vout = VBE 1 + VOS + ⎜⎜ ln(n ) − VOS ⎟⎟
R1 ⎝ q ⎠
R2 ⎛ kT ⎞ ⎛R ⎞
= VBE 1 + ⎜⎜ ln(n )⎟⎟ − VOS ⎜⎜ 2 − 1 ⎟⎟
R1 ⎝ q ⎠ ⎝ R1 ⎠
Issues
• VOS appears amplified at the bandgap output and can cause a
large absolute error in Vout
– Since R2/R1-1 ≅ 8, this means that for VOS=5mV, the error in
Vout will be about 40mV or roughly 3.3%
• If the bandgap is trimmed after manufacturing, e.g. to yield an
output of VGO+2kT/q, then this is no longer the point of zero TC
in presence of VOS
• In CMOS, VOS drift is typically 1…10μV/K
– This means Vout will drift at least 8μV/K, which corresponds
to about 6.6 ppm/K
• Good CMOS bandgaps achieve about 10…50ppm/K
• Possible solutions
– Mitigate impact of offset by stacking two VBE
– Cancel offset or use low offset BJT differential pair
[Nicollini]
[Brooks]
Sub-1-V Bandgap
≅1.2V
⎛ kT ⎞
⎜ ln( N ) ⎟
V q
Vref = R4 ⎜ BE + ⎟
[Banba] ⎜ R2 R3 ⎟
⎜ ⎟
⎝ ⎠
[Malcovati]
Performance
Lecture 28
Technology Scaling
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Overview
• Introduction
– The trend of continuously shrinking feature sizes in
integrated circuits has resulted in enormous performance
gains in both digital and analog circuits. However, since
device scaling necessitates the use of smaller supply
voltages, it is often argued that noise limited circuits can no
longer benefit from scaling. In this lecture, we will take a
closer look at this argument and also review basic analog
device performance trends in light of feature size reduction.
Smaller
Faster
Cheaper
Misnomer
• The term "Moore's Law" was coined by the press
– Of course, the exponential progress rate is not set by
fundamental law
– Merely a rate of progress that makes sense for the industry
and keeps things predictable for all involved players
• Device technologists
• Makers of manufacturing equipment
• Circuit designers
• Sales and marketing
• The dirty truth is that Moore's law is mostly just a gigantic
economic feedback loop
– With lot's of great innovation fueled by $$$
$$$
[European
Nanotechnology
Roadmap]
State-of-the-Art Chips
Single-Chip 802.11
Transceiver
[Zargari, ISSCC 2004]
Pentium 4 Processor,
125 Million Transistors
[Schutz, ISSCC 2004]
Quotes
List of Concerns
fT [GHz]
90nm
20 80
scaling
10 40
• Very high fT in
0
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
0
0.6
recent technologies
VGS-Vt [V]
– Enables RF
(b)
1200 CMOS
180nm
1000 130nm
(gm /ID)*fT [GHz*S/A]
90nm
800
600
400
200
0
-0.4 -0.2 0 0.2 0.4 0.6
VGS-Vt [V]
3
VDD [V]
0
0.50um 0.35um 0.25um 0.18um 0.12um 90nm 65nm 45nm 32nm
Technology Node
VDD
> 4kT/q
kT
Available Swing < VDD − 8
q
> 4kT/q
g Swing 2
P ∝ VDD ⋅ I D BW ∝ m DR ∝
C kT / C
2
BW ⋅ DR ⎛ Swing ⎞ g m
∝ VDD ⋅ ⎜⎜ ⎟⎟ ⋅
P ⎝ VDD ⎠ I D
Leveraging fT
40 160
30 180nm 120
130nm
gm /ID [S/A]
fT [GHz]
90nm
20 80
10 40
0 0
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 0.6
VGS-Vt [V]
• Example
– fT = 50GHz, 130nm: gm/ID = 8S/A, 90nm: gm/ID = 16S/A
• For "fixed-speed" applications, high fT can be leveraged to mitigate low
VDD penalty
Further Considerations
Intrinsic Gain
(a)
250
180nm
200 130nm • A real issue
90nm
150
– How to design a high-
ID [μA]
100
gain op-amp with devices
(VGS-Vt=100mV) that have intrinsic gain of
50
~10?
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6
VDS [V] • How much worse does this
(b) get at 45nm/65nm?
50
40
30
gm /gds
20
180nm
10 130nm
90nm
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6
VDS [V]
15
10
gm /gds
45nm (TCAD)
5 65nm (TCAD)
(VGS-Vt=100mV)
90nm (BSIM4)
0
0 0.2 0.4 0.6 0.8 1
VDS [V]
• Pretty bad…
• Solutions
– Use non-minimum length device (NML-device)
– Use asymmetric device without drain-side pocket implant (A-
device)
– Or, don't try to build op-amps in these technologies…
• E.g. "Digitally Assisted ADC" research in my group
-0.16
26.58 26.52
23.2 23.2
20.3 20.3
-0.12
-0.12
17.4 17.4
14.5 14.5
11.6 11.6
-0.08
-0.08
8.7 8.7
5.8 5.8
2.9 2.9
-0.04
-0.04
0 0
0
0
0.04
0.04
0.08
0.08
0.12
0.12
0.16
0.16
0.2
0.2
0.24
0.24
0.28
0.28
0.32
0.32
0.36
0.36
0.4
0.4
0.44
0.44
-0.16 -0.12 -0.08 -0.04 0 0.04 0.08 0.12 0.16 -0.16 -0.12 -0.08 -0.04 0 0.04 0.08 0.12 0.16
( )
150
Min. length
NML-device
100 A-device
gm /gds
50 (VGS-Vt=100mV)
(VGS-Vt=100mV)
0
0 0.2 0.4 0.6 0.8 1
VDS [V]
fT [GHz]
NML-device
20 A-device 400
45-nm device
10 200
– But still better
0 0 than minimum
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
VGS-Vt [V] length device in
5000
(b) 90nm…
Minimum length
4000 NML-device
• Who needs fT >
(gm /ID)*fT [GHz*S/A]
A-device
0
-0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5
VGS-Vt [V]
Variability (1)
[Courtesy A. Bowling,
Texas Instruments]
Variability (2)
Variability (3)
Variability (4)
Digital Analog
• A "new" problem • A well known problem
– Significant impact on – Designers are used to
achievable performance, "caring" about mismatch
yield, design
• Lots of options and potential
methodology, EDA, …
solutions
• Big difference compared to – Layout techniques,
analog analog or digital
– Care about millions if not calibration, dynamic
billions of devices! element matching, larger
device area, …
• Usually care about matching
for a few up to a few hundred
transistors
B. Murmann EE 214 Lecture 28 30
347
Bag of
Tricks
A
Lecture 29
Class Summary
Project Discussion
Boris Murmann
Stanford University
murmann@stanford.edu
Copyright © 2007 by Boris Murmann
Transistor Models
• Any model is an approximation of the real world
– Must leave many details out
– Must retain the important details (to be useful)
– Appropriate level depends on questions you want to answer
• BSIM model/Spice
• gm/ID approach
• Long channel equations
• When designing and analyzing circuits, we are usually forced to
use much simpler models than the ones available in Spice
– gm/ID methodology partially closes this gap
• A "good" IC designer is always on the lookout for modeling
limitations!
• Transit Frequency
gm
ωT =
C gg
• Current Efficiency
gm
ID
• Intrinsic Gain
gm
g ds
Circuit Analysis
• Once we have appropriate models, we can in principle analyze
any circuit using KCL/KVL
– Usually too difficult and also won’t allow us to reason about
design choices and tradeoffs
• Crutches for circuit analysis
– Small signal approximation
– Zero value time constant method
– Miller approximation
– Return ratio analysis
– Blackman's impedance formula
– …
• Again, a good designer will always be on the lookout for
potential limitations of the respective analysis method
• Common source
– Basic voltage amplifier
• Common gate
– Good for "shielding"
– Can help boost output impedance, mitigate Miller effect
• Common drain
– Buffer, level shifter
• Differential pair
Feedback (1)
• Desensitizes circuit to (forward-) gain variations
• Modifies port impedances
• Central quantity of interest: Loop gain T
– Quantifies static error
– Used to assess stability, phase and/or gain margin
– Helpful in calculating closed loop port impedances
• Finding T is simple
– E.g. break loop at transconductor, inject test current,
calculate ratio of return and test current
• Typically need a dominant pole
– Hard to use more than 2-3 amplifier stages and maintain
sufficient phase margin
Feedback (2)
• Impact of phase margin on step response
– Excessive "ringing" for phase margin <60°
– Fast settling for phase margin ~70°
• Impact of phase margin on closed loop AC response
– Gain peaking and slightly larger 3-dB bandwidth for small
phase margin
• Compensation techniques
– Can use simple load compensation for single stage OTAs
– Miller compensation is most popular for two-stage designs
• Can push parasitic zero to infinity using nulling resistor
• Beware of tricks such as pushing the zero into the LHP to avoid
pole-zero doublets
– Cascode compensation
• For designers with experience…
Electronic Noise
References
• Self-biasing concept
– Beware of stability issues!
• Current references
– VDD, VGS, ΔVGS, VBE, ΔVBE - based approaches
– To first order, ΔVGS bias yields constant gm over temperature
and process
• Voltage reference
– Bandgap
– Useful as a reference whenever there's a need to convert
"bits to Volts" or "Volts to bits"
– Conceptually simple, but lots of second order issues