---
title: Active loads and cascodes
heading: Gains in the hundreds and thousands from one or two transistors
eyebrow: C6 · Lesson 4 · Active loads and cascodes
xp: 40
---

::: hook
A common-source stage's gain is $g_m$ times the resistance at its drain. With a resistor there, every bit of extra gain costs DC voltage, because the bias current flows through the resistor too: on a 5 V supply you run out of room at a gain of a few tens. Replace the resistor with a current source, which carries the bias current with almost no voltage drop yet looks like a huge resistance to signals, and the gain jumps to the transistor's intrinsic limit. Stack a second transistor on top, a **cascode**, and the output resistance and gain multiply again. This is how op amps reach gains of a million with a handful of transistors.
:::

::: play
- The transfer curve of a common-source stage with a current-source load: output against input, for an NMOS with 0.2 V of overdrive at 100 µA, from 5 V.
- The middle of the curve is nearly vertical: a few millivolts of input swing the output across the supply. The readout gives the slope there, $-1/(\lambda v_{OV})$.
- Lower λ (longer channels): the curve gets steeper and the gain climbs.
:::
:::

```sim plot
view: graph
x: vin = 0.68..0.72 V
y: vout = 0..5 V
slider: lam = 0.01..0.2 step 0.01 = 0.05
plot: (0.2 + (4.8 + (0.1*(1 + lam*5) - 2.5*(vin - 0.5)^2)/(lam*(2.5*(vin - 0.5)^2 + 0.1)) - abs(4.8 - (0.1*(1 + lam*5) - 2.5*(vin - 0.5)^2)/(lam*(2.5*(vin - 0.5)^2 + 0.1))))/2 + abs(0.2 - (4.8 + (0.1*(1 + lam*5) - 2.5*(vin - 0.5)^2)/(lam*(2.5*(vin - 0.5)^2 + 0.1)) - abs(4.8 - (0.1*(1 + lam*5) - 2.5*(vin - 0.5)^2)/(lam*(2.5*(vin - 0.5)^2 + 0.1))))/2))/2 | label: output | samples: 1200
readout: small-signal gain at the middle = -1/(lam*0.2) | digits: 4
readout: one transistor's r_o, kΩ = 1/(lam*0.1) | digits: 4
```

::: predict
## A CS stage at 100 µA with 0.2 V of overdrive has a resistor load dropping 2.5 V. Replaced by a current-source load with the same $r_o$ as the transistor (λ = 0.05 V⁻¹), by what factor does the gain grow?

- [ ] It stays the same
- [ ] Doubles
- [x] About four times, from −25 to −100
- [ ] A hundred times

::: reveal
About four times. With the resistor, $g_mR_D = \frac{2I_D}{v_{OV}} \cdot \frac{2.5\text{ V}}{I_D} = 25$. With the current source, $g_m(r_{o1} \parallel r_{o2}) = 1\text{ mS} \times 100\text{ kΩ} = 100$, and the drain no longer loses 2.5 V of DC to a resistor.
:::
:::

::: nameit
## Why a resistor load runs out

With a resistor $R_D$ carrying the bias current,

$$|A_v| = g_mR_D = \frac{2I_D}{v_{OV}}R_D = \frac{2V_{R_D}}{v_{OV}}$$

so the gain is limited by the DC voltage you can afford across $R_D$: 2.5 V and 0.2 V of overdrive give 25.

## Active load

A current source (a PMOS or PNP mirror) supplies the bias current while presenting its own output resistance $r_{o2}$ to signals. Then

$$A_v = -g_{m1}(r_{o1} \parallel r_{o2})$$

about half the intrinsic gain when the two $r_o$ match: $\frac{1}{\lambda v_{OV}}$ for MOSFETs, $\frac{V_{An}V_{Ap}}{(V_{An} + V_{Ap})V_T}$ for BJTs. The catch: the output's DC level is set by a balance of two nearly ideal current sources, so it must be fixed by feedback around the stage; on its own it swings to a rail.

## The cascode

Stack a common-gate (or common-base) transistor $M_2$ on the common-source $M_1$. $M_1$'s drain is held nearly still by $M_2$'s source, so $M_1$ sees only $1/g_{m2}$ and $M_2$ passes its current through. Looking into $M_2$'s drain,

$$R_\text{out} \approx g_{m2}r_{o2}r_{o1}$$

$g_mr_o$ times higher than one transistor. With an ideal current-source load the gain is $-g_{m1}R_\text{out} \approx -(g_mr_o)^2$; with a cascoded current-source load of equal resistance, half that. For BJTs the cascode's output resistance is limited to about $\beta r_o$ by the base current. The cascode also removes the Miller multiplication of $M_1$'s gate-drain capacitance, so it's faster too (lesson 13).

**The cost** is headroom: each stacked transistor needs about $v_{OV}$ (or 0.3 V) across it, which matters on a 1 V supply.
:::

::: example
## An NPN CE stage at 0.1 mA ($V_A$ = 100 V) has a PNP mirror load ($V_A$ = 50 V). What is its gain?

::: solution
1. **Transconductance.**
   $$\begin{aligned} g_m &= \frac{0.1\ \text{mA}}{0.02585\ \text{V}} \\ &= 3.87\ \text{mS} \end{aligned}$$
2. **Output resistances.** Each is $V_A/I_C$:
   $$\begin{aligned} r_{o1} &= 1\ \text{M}\Omega \\ r_{o2} &= 500\ \text{k}\Omega \end{aligned}$$
   so $r_{o1} \parallel r_{o2}$ = 333 kΩ.
3. **Gain.**
   $$\begin{aligned} A_v &= -g_m(r_{o1} \parallel r_{o2}) \\ &= -1290 \end{aligned}$$
   That's from a single transistor.

**Answer:** the gain is about −1290.
:::
:::

::: example
## A MOSFET cascode at 0.1 mA has $g_m$ = 1 mS and $r_o$ = 200 kΩ for each device. Find its output resistance and its gain with an ideal current-source load and with a matching cascoded load.

::: solution
1. **Output resistance.**
   $$\begin{aligned} R_\text{out} &= 1\ \text{mS} \times 200\ \text{k} \times 200\ \text{k} \\ &= 40\ \text{M}\Omega \end{aligned}$$
2. **Gain with an ideal load.**
   $$\begin{aligned} A_v &= -1\ \text{mS} \times 40\ \text{M}\Omega \\ &= -40{,}000 \end{aligned}$$
3. **Gain with a matching cascoded load.** The 40 MΩ load sits in parallel with the 40 MΩ output, so the gain halves to −20,000.
4. **Compare a simple active load.** It would give −100.

**Answer:** the output resistance is 40 MΩ, and the gain is −40,000 with an ideal load and −20,000 with a matching cascoded load.
:::
:::

::: example
## A telescopic cascode amplifier on 1.8 V stacks a tail device, an input NMOS, a cascode NMOS, a cascode PMOS and a PMOS load, each needing 0.2 V of overdrive to stay saturated. What range can its output cover?

::: solution
1. **Lowest output.** Below the output sit the tail, the input device and the NMOS cascode, each needing its 0.2 V:
   $$3 \times 0.2 = 0.6\ \text{V}$$
2. **Highest output.** Above it sit the PMOS cascode and load:
   $$1.8 - 0.4 = 1.4\ \text{V}$$
3. **Range.** That leaves 0.8 V peak to peak from a 1.8 V supply.
4. **The cascode's price.** Every device stacked for gain takes an overdrive out of the swing. At low supply voltages, designers fold the cascode or use two stages instead.

**Answer:** the output can cover 0.6 V to 1.4 V, 0.8 V peak to peak.
:::
:::

::: check
given: VR = 1 | 2.5 | 5; Vov = 0.1 | 0.25 | 0.5
answer: -2*VR/Vov
tolerance: 0.5%

## A CS stage's resistor load drops {VR} V and the transistor has {Vov} V of overdrive. What is its gain (ignoring $r_o$)?

::: right
Right. $-2V_{R_D}/v_{OV}$ = {answer}.
:::

::: misses
- [-VR/Vov] $g_m = 2I_D/v_{OV}$, so there's a factor of 2.
- [any] Not yet. $g_mR_D$ with $g_m = 2I_D/v_{OV}$ and $R_D = V_{R_D}/I_D$.
:::
:::

::: check
given: gm = 0.5 | 2; ro1 = 50 | 200; ro2 = 50 | 400
answer: -gm*ro1*ro2/(ro1 + ro2)
tolerance: 0.5%

## A CS stage with $g_m$ = {gm} mS and $r_{o1}$ = {ro1} kΩ has an active load of $r_{o2}$ = {ro2} kΩ. What is its gain?

::: right
Right. $-g_m(r_{o1} \parallel r_{o2})$ = {answer}.
:::

::: misses
- [-gm*ro1] Include the load's own output resistance in parallel.
- [any] Not yet. $-g_{m1}(r_{o1} \parallel r_{o2})$.
:::
:::

::: check
given: VAn = 50 | 150; VAp = 30 | 80
answer: -VAn*VAp/((VAn + VAp)*0.02585)
tolerance: 0.5%

## An NPN CE stage ($V_A$ = {VAn} V) has a PNP current-source load ($V_A$ = {VAp} V). What is its gain, at any bias current?

::: right
Right. $-\frac{V_{An}V_{Ap}}{(V_{An} + V_{Ap})V_T}$ = {answer}.
:::

::: misses
- [-VAn/0.02585] That's the intrinsic gain of the NPN alone; the PNP's $r_o$ is in parallel.
- [any] Not yet. $g_m(r_{o1} \parallel r_{o2})$; the current cancels.
:::
:::

::: check
given: gm = 0.5 | 2; ro = 50 | 300
answer: gm*ro*ro/1000
unit: MΩ
tolerance: 0.5%

## A MOSFET cascode has $g_m$ = {gm} mS and $r_o$ = {ro} kΩ for both devices. What is its output resistance?

::: right
Right. $g_{m2}r_{o2}r_{o1}$ = {answer}.
:::

::: misses
- [ro/1000] That's a single transistor; the cascode multiplies by $g_mr_o$.
- [any] Not yet. $g_mr_o \times r_o$.
:::
:::

::: check
given: gm = 0.5 | 2; ro = 50 | 300
answer: -gm*(gm*ro*ro)/2
tolerance: 0.5%

## The same cascode ($g_m$ = {gm} mS, $r_o$ = {ro} kΩ) drives an equal cascoded current-source load. What is its gain?

::: right
Right. $-g_m\frac{R_\text{out}}{2}$ = {answer}.
:::

::: misses
- [-gm*(gm*ro*ro)] That's with an ideal load; the matching load halves the resistance.
- [any] Not yet. The load's resistance is in parallel with the cascode's.
:::
:::

::: check
given: beta = 50 | 200; ro = 100 | 500
answer: beta*ro/1000
unit: MΩ
tolerance: 0.5%

## Roughly what is the most output resistance a BJT cascode can reach, with β = {beta} and $r_o$ = {ro} kΩ?

::: right
Right. About $\beta r_o$ = {answer}.
:::

::: misses
- [any] Not yet. Base current limits a BJT cascode to about $\beta r_o$.
:::
:::

::: check
given: n = 2 | 4; Vov = 0.15 | 0.3; swing = 0.5 | 1
answer: n*Vov + swing
unit: V
tolerance: 0.5%

## An output stack has {n} transistors, each needing {Vov} V. What supply does it need for a {swing} V output swing range?

::: right
Right. {answer}.
:::

::: misses
- [any] Not yet. Add each device's minimum voltage, then the swing.
:::
:::

::: check
kind: parts
given: V = 1.2 | 1.8 | 3.3; ov = 0.1 | 0.15 | 0.2

## A telescopic cascode on {V} V stacks a tail, an input device and an NMOS cascode below the output, and a PMOS cascode and load above it, each needing {ov} V.

::: part
answer: 3*ov
unit: V
tolerance: 0.5%

### What's the lowest the output can go?

::: misses
- [2*ov] The tail device needs its overdrive too.
- [any] Three overdrives.
:::
:::

::: part
answer: V - 5*ov
unit: V
tolerance: 0.5%

### What peak-to-peak swing is left?

::: misses
- [V - 4*ov] Count all five devices.
- [any] $V_{DD} - 5v_{OV}$.
:::
:::
:::

::: check
kind: derivation
vars: g = 0.0001..0.01, r = 10000..10000000, s = 10000..10000000

## A cascode has two devices with transconductance g and output resistance r, loaded by a current source of resistance s.

::: step
answer: g*r*r

### What's the cascode's output resistance, approximately?
:::

::: step
answer: -g*(g*r*r*s/(g*r*r + s))

### What's the gain?
:::

::: step
answer: -g*g*r*r/2

### What's the gain with a matching cascode load ($s = g r^2$)?
:::

::: right
Right. Cascoding both sides gives a gain of $\frac12(g_mr_o)^2$.
:::
:::

::: explain
## Why does a current-source load give so much more gain than a resistor carrying the same current?

::: model
A stage's gain is its transconductance times the resistance at its output. A resistor has to carry the bias current, so its value is fixed by how much DC voltage you can spare across it: a few volts divided by the current. A current source carries the same bias current with only a fraction of a volt across it, but because its current hardly changes when its voltage changes, it looks to signals like a very large resistance, its $r_o$. So the output resistance, and the gain, rise to the transistors' own limit without costing any DC headroom.
:::
:::

::: practice

::: check
given: lam = 0.02 | 0.1; Vov = 0.1 | 0.3
answer: -1/(lam*Vov)
tolerance: 0.5%

## What gain does an active-loaded CS stage with matched $r_o$ (λ = {lam} V⁻¹, {Vov} V overdrive) give?

::: misses
- [any] $-\frac{1}{\lambda v_{OV}}$.
:::
:::

::: check
given: ro1 = 100 | 400; ro2 = 50 | 200
answer: ro1*ro2/(ro1 + ro2)
unit: kΩ
tolerance: 0.5%

## What is $r_{o1} \parallel r_{o2}$ for {ro1} kΩ and {ro2} kΩ?

::: misses
- [any] Product over sum.
:::
:::

::: check
given: gm = 1 | 4; ro = 100 | 250
answer: gm*ro
tolerance: 0.5%

## What is $g_mr_o$ for $g_m$ = {gm} mS and $r_o$ = {ro} kΩ?

::: misses
- [any] Multiply.
:::
:::
:::
