Sol 5
Sol 5
Rin Gm vin Ro
where, because our input does not depend in any way on our output (i.e. no feedback)
iout vout
Gm = |v =0VAC Ro = |v =0VAC
vin out iout in
vout
= −Gm Ro
vin
It helps to have some things written out ahead of time (e.g. on your cheat sheet) to use as a reference.
This might seem tedious, but you only have to do it once! Your final answer should have both the full,
unsimplified expression as as well a single simplified answer which uses the assumptions gm ro 1 and
RD ≈ RS ≈ ro
VDD
RD
vd
id
vg
vs
is
RS
id
(a) vg given vd = 0VAC . This is the Gm of a degenerated common source.
Solution:
id gm ro
=
vg ro + RS + gm ro Rs
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
vd
(b) idgiven vg = 0VAC . This is the Ro of a source-degenerated common source.
Solution:
id
= RD ||(ro + RS + gm ro RS )
vd
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
vd
(c) vg assuming RD = ∞Ω. This is the voltage gain of a degenerated common source amplifier.
Solution: Here you can use the answers from parts ?? and ??. For the latter, because RD is infinite,
Ro = ro + RS + gm ro RS
vd
= −gm ro
vg
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
is
(d) vg given vs = 0VAC . This is the Gm of a source follower.
Solution:
is gm ro
=−
vg ro + RD
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
vs
(e) isgiven vg = 0VAC . This is the Ro of a source follower.
Solution:
is ro + R D
= RS ||
vs 1 + gm ro
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
vs
(f) vg assuming RS = ∞Ω. This is the voltage gain of a source follower.
Solution:
vs gm ro
=
vg 1 + gm ro
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
id
(g) vsgiven vd = 0VAC and vg = 0VAC . This is the Gm of a common gate amplifier.
Solution:
id 1 + gm ro
=−
vs ro
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
vd
(h) idgiven vs = 0VAC and vg = 0VAC . This is the Ro of a common gate amplifier.
Solution:
id
= ro ||RD
vd
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
vd
(i) vsgiven vg = 0VAC and assuming RD = ∞Ω. This is the gain of a common gate amplifier.
Solution:
vd
= 1 + gm ro
vs
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
vs
(j) isgiven vg = 0VAC and RS = ∞Ω. This is the Rin of a common gate amplifier.
Solution: Note that even in low frequencies, it’s finite!
ro + RD
1 + gm ro
Rubric: (2 Points)
• +1: Correct sign
• +1: Correct expression (without the sign)
2. Cascode Analysis
For the circuit below, assume that µnCox (W /L)n = µ pCox (W /L) p and λn = λ p for all devices. You may
assume that all devices are biased in saturation and that the quadratic model is appropriate. You may assume
that gm ro 1 for all combinations.
VDD
Vin M1
VS2
VBP M2
Vout
VBN2 M3
VS3
VBN1 M4
(a) Why must all devices have the same overdrive voltage?
Solution:
All devices have the same current running through them, and their µCox (W /L) and λ are all the
same, so their overdrive voltages must all be the same as well.
Rubric: (1 Points)
• +1: Correct explanation
(b) Assuming Vtn = −Vt p = Vt , what are the DC bias voltages on the gates of M1 and M4?
Solution: First, we’ll define k ≡ µn/pCox WL n/p for convenience.
r
2ID
Vov =
k
Because we know the source voltage of both of these devices, we can quickly find the gate bias with
VGSn/SGp = Vt +Vov
s
2ID
VG4 = VDD −Vt −
µCox WL
s
2ID
VG1 = Vt +
µCox WL
Rubric: (2 Points)
• +1: Correct M1 gate bias. Full credit if you just used Vov rather than the full expression with ID ,
etc.
• +1: Correct M4 gate bias. Full credit if you just used Vov rather than the full expression with ID ,
etc.
(c) What is the minimum voltage for the gate of M3 such that M4 stays in saturation? You may leave your
answer in terms of the supply voltage VDD , the threshold voltage Vt , and overdrive voltage Vov .
Solution: To ensure M4 stays in saturation, VDS4 ≥ Vov . In other words, VS3 ≥ Vov
VDS4 ≥ Vov
VS3 ≥ Vov
−VGS3 +VG3 ≥ Vov
−(Vt +Vov ) +VG3 ≥ Vov
VG3 ≥ Vt + 2Vov
VG3 ≥ Vt + 2Vov
Rubric: (2 Points)
• +1: Correct minimum gate voltage
(d) What is the maximum voltage for the gate of M2 such that M1 stays in saturation? You may leave your
answer in terms of the supply voltage VDD , the threshold voltage Vt , and overdrive voltage Vov .
Solution: Following a similar process as ??
Rubric: (1 Points)
• +1: Correct M2 maximum gate voltage
(e) If the gates of M2 and M3 are biased according to your answers above, what is the output swing
(minimum to maximum voltage for both M2 and M3 to remain in saturation)? You may leave your
answer in terms of the supply voltage VDD , the threshold voltage Vt , and overdrive voltage Vov .
Solution: With all the source voltages set appropriately, the output can swing down to 2Vov or up to
VDD − 2Vov
Rubric: (2 Points)
• +1: Correct upper bound
• +1: Correct lower bound
(f) What is the impedance seen “looking up” and “looking down” at the output, and the total impedance?
Solution: From the previous parts, we know gm = 2I 1
Vov and ro = λ ID as the same for all devices, but
D
Rubric: (3 Points)
• +1: Correct looking up impedance
• +1: Correct looking down impedance
• +1: Correct output impedance
(g) What is the impedance looking up and down at the source of M3, and the total impedance?
Solution: Looking up from the source of M3, we see:
ro3 + Rout,up
RS3,up =
1 + gm3 ro3
gm ro2 + 3ro
=
1 + gm ro
And looking down, we simply see
RS3,down = ro4
= ro
Once again, the total impedance is the parallel combination of the two:
gm ro2 + 3ro
RS3 = ro ||
1 + gm ro
−1
1 1 + gm ro
= +
ro gm ro2 + 3ro
−1
gm ro + 3 + 1 + gm ro
=
gm ro2 + 3ro
ro (gm ro + 3)
=
2gm ro + 4
2
m ro +3ro
RS3,up = g1+g m ro
RS3,down = ro
ro (gm ro +3)
RS3 = 2gm ro +4
Rubric: (3 Points)
• +1: Correct looking up impedance
• +1: Correct looking down impedance
• +1: Correct output impedance
(h) Is the total impedance seen at the source of M2 different from the source of M3? If not, why?
Solution:
The two impedances are the same! The same current flows through all devices which have the
same µCox WL .
Rubric: (1 Points)
• +1: Correct expression
(j) What is the DC gain from the input to the source of M2?
Solution:
vS2
= −gm1 RS2
vin
= −gm RS2
gm ro (gm ro + 3)
=−
2gm ro + 4
gm ro (gm ro + 3)
Av0,S2 = −
2gm ro + 4
Rubric: (1 Points)
2 gm ro (gm ro + 3)
Cin ≈ W LCox +WCol + 1 + WCol
3 2gm ro + 4
Rubric: (2 Points)
• +1: Correct Cin equation
• +1: Correct value
(l) Given the total output capacitance of the amplifier is Cout , what are the pole and unity gain frequencies?
Solution: The unity gain frequency:
gm1
ωu =
Cout
The output pole:
1
ωp =
RoutCout
2
=
Cout (gm ro2 + 2ro )
gm1
ωu =
Cout
2
ωp =
Cout (gm ro2 + 2ro )
Rubric: (3 Points)
• +1: Correct pole expression
• +1: Correct unity gain expression
(m) If you double the overdrive voltages on all devices without changing the sizing of the devices, how
does that affect the swing, DC gain, pole frequency, and unity gain frequency?
Solution:
• Swing: Given the new overdrive 2Vov , the output swing is now limited to [4Vov ,VDD − 4Vov ]
• DC Gain: gm = 2I 1
Vov , so gm ↑ 2×. ro = λ ID , so ro ↓ 4×, meaning the overall |Av0 | ↓ 4× (roughly)
D
• Unity Gain Frequency: gm doubles while Cout stays roughly constant, so ωu doubles as well.
Rubric: (4 Points)
• +1: Correct explanation for swing
• +1: Correct explanation for DC gain
• +1: Correct explanation for pole frequency
• +1: Correct explanation for unity gain frequency
3. Gain Error
A0
Given a feedback-only system, we usually approximate the closed loop gain 1+A0 f ≈ 1f .
sfb
How good or bad an estimate is that? Show that the fractional gain error (gain error)/gain is − A10 f
Solution: Finding the gain error:
A0 1 A0 f − 1 − A0 f
− =
1 + A0 f f f (1 + A0 f )
1
=−
f (1 + A0 f )
Consider a system in unity gain feedback with A0 = 1—this means the fractional gain error is − 21 ! That is,
the output is half of what you estimated.
1
Fractional gain error: − 1+A 0f
This is only a good estimate when A0 f 1; when A0 is low, this can lead to fairly significant
systematic error!
Rubric: (5 Points)
V
Aclosed-loop ≈ 99.90
V
1
= 100
f
(c) the fractional gain error − A10 f . Does it agree with your results from parts ?? and ???
Solution:
1
− A10 f = − 1000 by definition agrees
(d) Above the pole frequency, amplifier gain decreases and gain error increases. What is the fractional
gain error at 10ω p ? 100ω p ?
Solution: At 10× and 100× ω p , the amplifier gain decreases by a factor of 10 and 100, respectively.
As such, the fractional gain error − A10 f increases by a factor of 10 and 100 respectively from the DC
error.
1
@10MHz : −
100
1
@100MHz : −
10
Rubric: (5 Points)
5. LM324
Check out the datasheet for the LM324 quad op-amp: http://www.ti.com/lit/ds/symlink/
lm324.pdf.
Rubric: (6 Points)
• +1 Per correct label.
(b)
Assuming the same process parameters (e.g. VA , β ), how will the performance of the LM324 design
compare to the amplifier above with a bias current of 1mA in the following areas
i. Input impedance. How does bias current and Darlington affect this?
Solution:
The LM324 has much higher input impedance. Not only is the bias current significantly lower
(which reduces the input base current and increases input impedance), the input Darlington
pair greatly reduces the base current as well, which further increases input impedance.
ii. Impedance at the output of the first stage? How does the emitter-follower affect this? Rubric: (6
Points)
• +2 per part, a-c.
Solution:
The common-emitter Darlington pair alleviates the loading effect of the second stage on the
first. The level shifter provides an additional factor of β multiplying the impedance looking
into the base of the Darlington pair.
iii. Output impedance of the amplifier. How does output stage affect this?
Solution:
The output impedance of the LM324 is given by teh output impedance of the Darlington
pair, which is very small. In addition, the PMOS emitter follower has much lower output
impedance.
(c) Given a diode-connected NPN transistor Q1 which has a 6µA reference current flowing through it,
design a bipolar circuit to generate all four of the current supplies shown in the LM324 schematic. The
50µAand 100µA currents don’t need to be exactly right, but should be close. Label your transistors as
multiples of each other as appropriate, e.g. Q2 = 5Q1. You may assume infinite β .
Solution:
VDD
54µA ≈ 50µA
Q1 Q2=Q1 Q7=9×Q1
Rubric: (4 Points)
• +1 per correct sizing of 6, 50, and 100uA current sources (3 total).
• +1 for a working mirror schematic (npn vs pnp etc).
(d) (EE240A) For the current supplies that you designed for the LM324 in part ??, estimate the actual
current assuming a transistor β of 100. Use a beta helper to alleviate this problem. How much did the
accuracy improve? Rubric: (2 Points)
• +2 For effort.
VDD
RD
Vo
V+ M1a M1b V−
VTAIL
RTAIL
(a) For the circuit above, estimate the change in VTAIL , ITAIL , ID1a , ID1b , and Vo due to:
i. An increase of ∆V in both V+ and V−
Solution: This is an increase in the common mode signal, so we consider the common mode
characteristics of our amplifier (and in the process assume a linear model).
Because the gain from the inputs to VTAIL is ≈ 1, VTAIL increases by roughly ∆V .
VTAIL ∆V
ITAIL = RTAIL , so ITAIL increases by roughly RTAIL .
ITAIL ∆V
ID1a ≈ ID1b ≈ 2 , and so they increase by roughly 2RTAIL
VTAIL +∆V
ITAIL + R∆V
TAIL
ID1a + 2R∆V
TAIL
ID1b + 2R∆V
TAIL
Vo −∆V 2RRTAIL
D
Rubric: (5 Points)
• +1 Per correct item.
ii. An increase of ∆V ∆V
2 in V+ and − 2 in V−
Solution: This is functionally introducing a differential signal to the amplifier.
Because the gm of the two devices is the same, there’s no net change in current, meaning VTAILL
and ITAIL don’t change.
VTAIL No change
ITAIL No change
ID1a + ∆V
2 gm1a
ID1b − ∆V
2 gm1b
∆V
Vo + 2 gm1b RD
Rubric: (5 Points)
• +1 Per correct item.
iii. An increase of ∆V in just V+
Solution: This is essentially the same as introducing a DC bias of + ∆V
2 on top of a differential
signal, so we can use our answers to parts ?? and ??.
Between the left and right branches, the change in ITAIL will be split evenly for + 4R∆V
TAIL
for both
ID1a and ID1b .
Purely from the differential signal, however, ID1a will increase by +gm1a ∆V
2 and ID1b will shift by
−gm1b ∆V2 .
Finally, Vo will shift by the change in −ID1b RD .
VTAIL + ∆V
2
ITAIL + 2R∆V
TAIL
ID1a + 4R∆V
TAIL
+ gm1a ∆V
2
ID1b + 4R∆V − g ∆V
m1b 2
TAIL
Vo −RD + 4RTAIL − gm1b ∆V
∆V
2
Rubric: (5 Points)
• +1 Per correct item.
(b) What is the common mode rejection ratio of this amplifier?
Rubric: (2 Points)
• +1 Correct definition of CMRR.
• +1 Correct algebra.
(c) What is the common mode input range in terms of Vtn and Vov ?
Solution: We know the input has to be at least one threshold voltage above VTAIL in order for the
devices to be turned on, and if you’re given an overdrive Vov we know the gate voltage has to be another
overdrive above the threshold addition:
On the upper bound, it’s important to note that VTAIL will track the input common mode as a source
follower! on the other hand, as the input common mode increases, Vo decreases by a factor of vtail 2RRTAIL
D
(this refers to the small signal change in Vtail , not the actual DC bias).
This continues until Vo −VTAIL = Vov , after which point one of the devices will fall out of saturation.
Rubric: (4 Points)
• +2 For correct upper bound.
• +2 For correct lower bound.
(d) Sketch Vov vs. VCM over the input range from part ??
Solution: √
Vov ∝ VCM
Vov
Rubric: (2 Points)
• +1 For correct proportionality.
• +1 For correct plot.
(e) Sketch the bounds of the output swing over the input range from part ??
Solution:
VDD
Vov
The outline has been marked in green for greater visibility. Rubric: (4 Points)
• +2 For correct region of output swing.
• +2 For rest of the plot.
VDD
M2a M2b
Vo
V+ M1a M1b V−
VBIAS Mtail
(f) For the circuit above, estimate the change in VTAIL , ITAIL , ID1a , ID1b , and Vo due to an increase of ∆V in
both V+ and V− . Do not assume λ = 0.
Solution: It helps to consider the (sort of) equivalent half circuit:
1
gm2a
V+
2ro3
∆V
ID1a and ID1b change together by half the change in the tail current, + 2ro3
.
1
And lastly, we know the common mode gain ACM = 2ro gm2 , so Vo changes by − 2r∆V
o gm2
VTAIL +∆V
ITAIL + ∆V
ro3
∆V
ID1a + 2r o3
∆V
ID1b + 2r o3
Vo − 2r∆V
o gm2
Rubric: (5 Points)
• +1 Per correct item.
(g) What is the common mode input range in terms of Vtn and Vov ?
Solution: On the low side,
VCM,min = Vov3 +Vov1 +Vtn
Rubric: (4 Points)
• +2 Correct Low side.
• +2 Correct High Side.
(h) Sketch Vov vs. VCM over the input range from part ??
Solution:
Rubric: (2 Points)
• +2 correct plot.
(i) Skech the bounds of the output swing over the input range from part ??
Solution:
VDD −Vov2
Vov
Vov3
Rubric: (4 Points)
7. Two-Stage Amplifier
(a) Design a 2-stage NMOS input CMOS op-amp with the following specs:
• 80µA tail current
• Able to sink 200µA from the load
• Output swing to within 200mV of the rails
• Input common mode range to within 200mV of the top rail
• Up to one resistor in the design
Your process technology has the following specs:
From design specs, ID3 = 80µA, ID4 = ID5 = 200µA (You can leave some margin here for ID4 andID5 ).
|Vov4 | = Vov5 = 200mV
Vov3 = Vov5 = Vov6 = 200mV (You can also leave some margin for Vov’s)
For input common-mode voltage, max value is
Vcm,max = VDD −Vt p − |Vov2 | +Vtn = VDD − 200mV
so, Vov2 = 200mV
To increase gm of input pair, we choose Vov1 = 100mV (You can choose other values)
Then, we can calculate the size of all transistors (we choose L = 1µm for current mirrors, for a larger
output impedance 2 and minimum length for other transistors).
1 W
2 µnC V = 80µA
ox L 3 ov
so, WL 3 = 20um1um . Similarly,
W 50um W 50um W 10um W 20um
L 5 = 1um L 4 = 0.5um L 2 = 0.5um L 1 = 0.5um
We choose reference branch being 40µA,
W 10um
L 6 = 1um
And resistor is R,
R = VDD −VIreov6f −Vtn = 32.5KΩ
The device sizes are
Solution: [2 pts]
Rout = ro4 ||ro5 = 17KΩ
Cout ≈ Cl +Cgd4 +Cgd5 = 150 f F
ω p,out = Rout1Cout = 392Mrad/s
vi. Calculate the input capacitance of the second stage for frequencies below the output pole.
Solution: [2 pts]
Av2 = gm4 ro4 = −34
With Miller effect, Cin2 = Cgd4 (1 − Av2 ) +Cgs4 = 983 f F
vii. Calculate the first stage output pole frequency, assuming that it is lower than the output pole.
Solution: [2 pts]
Rout1 = ro1 ||ro2 = 62.5KΩ
Cout1 = Cin2 +Cgd1 +Cgd2 = 998 f F
ω p,out1 = Rout11Cout1 = 16Mrad/s
viii. Calculate the input capacitance of the second stage above the second stage unity gain frequency.
Solution: [2 pts]
Above second stage unity gain frequency, there’s neglectabe Miller effect, as gain becoming too
small.
Cin2 = Cgd4 +Cgs4 = 133 f F
(c) (EE240A) If the same amplifier were run at Vov = 0V, how would that affect the gains and pole
frequency?
Solution: [10 pts]
When Vov drops, transistor gm will increase. With same current, the gain will also increase. This trend
will go on even when the transistor goes to subthreshold region. We also say that the effeciency of the
transistor is the highest in this region.
But, in subthreshold region, transistor size will become huge to support the same current, the capaci-
tance from the transistors will be very large, the pole frequency will drop dramastically. The speed of
the transistor will be lowest in the region.
You can actually find a Vov that with highest effeciency and pole frequecy product, they will be covered
in EE240A.