---
title: Cascodes and gain boosting
heading: Stacking transistors for output resistance, and what it costs in swing
eyebrow: S2 · Lesson 4 · Cascodes and gain boosting
xp: 50
---

::: hook
A single transistor's gain is capped at its intrinsic gain $g_mr_o$, tens to a couple of hundred in a modern CMOS process. To build an op amp with a gain of $10^4$ to $10^6$, designers stack transistors. A cascode puts a common-gate transistor on top of the amplifying one, and the lesson-3 degeneration argument, with a transistor as the "resistor", multiplies the output resistance by $g_mr_o$ again. Gain boosting wraps a small amplifier around the cascode for yet another factor. Each layer costs headroom: every stacked transistor needs its own saturation voltage, and at a 1 V supply there isn't much to spare.
:::

::: play
- Gain against the transistors' intrinsic gain $g_mr_o$, log-log, for three ways of building one stage: a common-source stage with a current-source load (gain $g_mr_o/2$), a telescopic cascode with a cascode load (about $(g_mr_o)^2/2$) and the same with gain boosting by a booster of gain A.
- Each step adds a factor of $g_mr_o$ or A. Starting from an intrinsic gain of 20, one stage goes from 10 to 200 to about 10⁴.
- The readouts show the output swing each structure leaves at a given supply, with each transistor needing $V_{DS,\text{sat}}$.
:::
:::

```sim plot
view: graph
x: G = 5..200 log
y: A = 1..1e7 log
slider: B = 1..200 = 50 log
slider: VDD = 0.8..3.3 = 1.2 V
slider: Vd = 0.05..0.3 = 0.15 V
plot: G/2 | label: common source, current-source load
plot: G^2/2 | color: ch2 | label: telescopic cascode, cascode load
plot: G^2*B/2 | color: ch3 | label: gain-boosted cascode
readout: swing, common source = VDD - 2*Vd V
readout: swing, telescopic cascode = VDD - 4*Vd V
```

::: predict
## Two identical transistors, each with $g_m$ = 2 mS and $r_o$ = 50 kΩ, are stacked as a cascode. Roughly what's the output resistance?

- [ ] 100 kΩ
- [ ] 1 MΩ
- [x] About 5 MΩ
- [ ] 500 MΩ

::: reveal
About $g_mr_o \cdot r_o$ = 100 × 50 kΩ = 5 MΩ (5.1 MΩ exactly). The bottom transistor's $r_o$ acts as a source resistor for the top one, and lesson 3's degeneration formula multiplies it by $1 + g_mr_o$. One extra transistor buys a factor of a hundred in output resistance, at the cost of one more saturation voltage of headroom.
:::
:::

::: nameit
## The cascode

A common-gate transistor M2 on top of M1 sees $r_{o1}$ in its source, so

$$R_\text{out} = r_{o1} + r_{o2} + (g_{m2} + g_{mb2})r_{o1}r_{o2} \approx g_{m2}r_{o2}r_{o1}$$

M1 still sets the transconductance, so the cascode amplifier's gain is $g_{m1}(R_\text{out} \parallel R_L)$. With an ideal load that's about $(g_mr_o)^2$, and with a matching cascode current-source load (same $R_\text{out}$), half that. The cascode also shields M1's drain from the output swing, which kills the Miller effect on M1's gate-drain capacitance (lesson 13).

In a bipolar cascode, the base current of the top transistor limits the output resistance to about $\beta r_o$, however large $g_mr_o$ is.

## Headroom

Every transistor in saturation needs $V_{DS} \geq V_{DS,\text{sat}}$, about $V_{ov}$ (or a few $V_T$ in weak inversion). A telescopic cascode with a cascode load stacks four transistors between the rails, so the output can swing over about $V_{DD} - 4V_{DS,\text{sat}}$, before counting the tail and the input common-mode range. At a 1 V supply that's what pushes designers to folded cascodes (lesson 21) and two-stage amplifiers (lesson 20).

## Gain boosting

An auxiliary amplifier of gain A senses M2's source and drives its gate to hold M1's drain still (the regulated cascode). The feedback multiplies the cascode's output resistance by about $A + 1$:

$$R_\text{out} \approx (A + 1)g_{m2}r_{o2}r_{o1}$$

A one-stage op amp can then reach $10^4$ to $10^5$ without adding stages or swing. The booster must be fast enough not to add a slow settling component (a pole-zero doublet).
:::

::: example
## Two transistors with $g_m$ = 2 mS, $g_{mb}$ = 0.3 mS and $r_o$ = 50 kΩ form a cascode. Find the output resistance, the gain into an ideal load and into a matching cascode load, and the boosted output resistance with A = 50.

::: solution
1. **Output resistance.** In kilohms:
   $$\begin{aligned} R_\text{out} &= 50 + 50 \\ &\quad + 2.3 \times 50 \times 50 \\ &= 5850\ \text{k}\Omega \\ &= 5.85\ \text{M}\Omega \end{aligned}$$
   Ignoring the body effect it would be 5.1 MΩ.
2. **Gain into an ideal load.**
   $$\begin{aligned} A_v &= g_{m1}R_\text{out} \\ &= 2\ \text{mS} \times 5.85\ \text{M}\Omega \\ &= 11\,700 \end{aligned}$$
3. **Into a matching cascode load.** The gain is half as much, 5850.
4. **Boosted output resistance.** With a booster gain of 50:
   $$\begin{aligned} R_\text{out} &\approx 51 \times 5.85\ \text{M}\Omega \\ &= 300\ \text{M}\Omega \end{aligned}$$
5. **Boosted gain.** With an equally boosted load the gain is about 300,000.

**Answer:** $R_\text{out}$ = 5.85 MΩ (5.1 MΩ ignoring the body effect), with gains of 11,700 into an ideal load and 5850 into a cascode load; boosting gives about 300 MΩ and a gain of about 300,000.
:::
:::

::: example
## At $V_{DD}$ = 1.2 V with every transistor needing 0.15 V, how much output swing does a common-source stage leave, and a telescopic cascode?

::: solution
1. **Common-source stage.** With a current-source load it stacks two transistors:
   $$1.2 - 0.3 = 0.9\ \text{V}$$
2. **Telescopic cascode.** It stacks four:
   $$1.2 - 0.6 = 0.6\ \text{V}$$
   and the input pair's own common-mode range takes more.
3. **Getting swing back.** Dropping $V_{DS,\text{sat}}$ by running in moderate inversion (lesson 1) buys swing back at the cost of speed.

**Answer:** the common-source stage leaves 0.9 V of swing and the telescopic cascode 0.6 V.
:::
:::

::: example
## The cascode with $g_m$ = 2 mS and $r_o$ = 50 kΩ (ignoring body effect) gets a gain-boosting amplifier of gain 30 on its cascode device. What output resistance results?

::: solution
1. **Without boosting.**
   $$\begin{aligned} R_\text{out} &\approx g_mr_o^2 \\ &= 5\ \text{M}\Omega \end{aligned}$$
2. **With boosting.** The booster multiplies the cascode device's effective $g_m$ by 1 + A = 31:
   $$\begin{aligned} R_\text{out} &\approx 31 \times 5\ \text{M}\Omega \\ &= 155\ \text{M}\Omega \end{aligned}$$
3. **What it's for.** That gives gains of tens of thousands in one stage, as used in high-precision switched-capacitor amplifiers.

**Answer:** about 155 MΩ.
:::
:::

::: check
given: g = 1 | 3; b = 0 | 0.3; o = 20 | 50 | 100
answer: (2*o + (g + b)*o^2)/1000
unit: MΩ
tolerance: 1%

## Two identical transistors ($g_m$ = {g} mS, $g_{mb}$ = {b} mS, $r_o$ = {o} kΩ) form a cascode. What's its output resistance?

::: right
Right. $r_{o1} + r_{o2} + (g_m + g_{mb})r_{o1}r_{o2}$ = {answer} MΩ.
:::

::: misses
- [2*o/1000] The top transistor multiplies $r_{o1}$ by its own gain: add $(g_m + g_{mb})r_o^2$.
- [any] Not yet. The bottom $r_o$ degenerates the top transistor.
:::
:::

::: check
given: G = 10 | 30 | 80
answer: G^2/2
tolerance: 1%

## A telescopic cascode with a matching cascode load uses transistors of intrinsic gain {G}. What's its gain?

::: right
Right. About $(g_mr_o)^2/2$ = {answer}.
:::

::: misses
- [G^2] The load's resistance equals the cascode's, halving the gain.
- [G/2] That's the plain common-source stage.
- [any] Not yet. $g_m(R_\text{out} \parallel R_L)$ with both near $g_mr_o^2$.
:::
:::

::: check
given: R = 2 | 10; A = 10 | 30
answer: (A + 1)*R
unit: MΩ
tolerance: 1%

## A cascode with {R} MΩ of output resistance gets a booster amplifier of gain {A}. What's the boosted output resistance?

::: right
Right. $(A + 1)R_\text{out}$ = {answer} MΩ.
:::

::: misses
- [A*R] The factor is the loop gain plus one.
- [any] Not yet. The booster's feedback multiplies the resistance by A + 1.
:::
:::

::: check
given: V = 1 | 1.8 | 3.3; d = 0.1 | 0.2; n = 2 | 4 | 5
answer: V - n*d
unit: V
tolerance: 1%

## A stage at $V_{DD}$ = {V} V stacks {n} transistors, each needing {d} V to stay saturated. How much output swing is left?

::: right
Right. $V_{DD} - nV_{DS,\text{sat}}$ = {answer} V.
:::

::: misses
- [any] Not yet. Each stacked device needs its own saturation voltage.
:::
:::

::: check
given: b = 50 | 150; o = 20 | 80
answer: b*o/1000
unit: MΩ
tolerance: 1%

## What output resistance can a bipolar cascode reach at most, with β = {b} and $r_o$ = {o} kΩ?

::: right
Right. About $\beta r_o$ = {answer} MΩ: the top transistor's base current sets the limit.
:::

::: misses
- [any] Not yet. Base current leaks the signal around the feedback.
:::
:::

::: check
given: A = 1000 | 10000 | 100000
answer: sqrt(2*A)
tolerance: 1%

## What intrinsic gain do the transistors need for a telescopic cascode with a cascode load to reach a gain of {A}?

::: right
Right. $(g_mr_o)^2/2 = A$, so $g_mr_o = \sqrt{2A}$ = {answer}.
:::

::: misses
- [sqrt(A)] Include the factor of 2 from the load.
- [any] Not yet. Invert the cascode's gain.
:::
:::

::: check
given: g = 0.5 | 1; o = 20 | 50
answer: 1 + g*o
tolerance: 1%

## By what factor does adding a cascode transistor ($g_m$ = {g} mS, $r_o$ = {o} kΩ, no body effect) raise a current source's output resistance?

::: right
Right. About $1 + g_mr_o$ = {answer}.
:::

::: misses
- [g*o] Add 1, since the resistor $r_o$ adds too.
- [any] Not yet. Lesson 3's degeneration with $R_S = r_o$.
:::
:::

::: check
kind: parts
given: g = 1 | 2 | 5; r = 20 | 50; A = 10 | 30 | 100

## A cascode's devices have $g_m$ = {g} mS and $r_o$ = {r} kΩ (no body effect); a gain-boost amplifier of gain {A} is added.

::: part
answer: g*1e-3*(r*1e3)^2/1e6
unit: MΩ
tolerance: 0.5%

### What is the cascode's output resistance without boosting?

::: misses
- [any] $g_mr_o^2$.
:::
:::

::: part
answer: (1 + A)*g*1e-3*(r*1e3)^2/1e6
unit: MΩ
tolerance: 0.5%

### And with it?

::: misses
- [any] × (1 + A).
:::
:::
:::

::: check
kind: derivation
vars: V = 1..3.3, v = 0.1..0.3, n = 2..6

## A supply of V volts hosts a stack of n saturated transistors each needing v volts, in a differential output.

::: step
answer: V - n*v

### What single-ended swing is left?
:::

::: step
answer: 2*(V - n*v)

### What differential peak-to-peak swing does each output's swing allow, counting both outputs moving oppositely?
:::

::: right
Right. Every stacked device costs headroom, which is why low-voltage designs fold their cascodes or give them up.
:::
:::

::: explain
## Why does a cascode raise the output resistance by about the transistor's intrinsic gain?

::: model
The cascode transistor's source sits on the drain of the transistor below it, which has resistance $r_o$. If the output voltage rises and tries to push more current, that current flows through the lower transistor's $r_o$, raising the cascode transistor's source voltage. That cuts its gate-source voltage, and its transconductance pulls the current back. The feedback is as strong as $g_m$ times the resistance in the source, which is $g_mr_o$, the intrinsic gain, so the output resistance is multiplied by roughly that much. Meanwhile the lower transistor's drain barely moves, so it keeps its full transconductance and the stage's gain rises by the same factor.
:::
:::

::: practice

::: check
given: g = 1.5 | 4; b = 0.1 | 0.4; o = 30 | 90
answer: (2*o + (g + b)*o^2)/1000
unit: MΩ
tolerance: 1%

## Cascode $R_\text{out}$: {g}, {b} mS, $r_o$ = {o} kΩ?

::: misses
- [any] $2r_o + (g_m + g_{mb})r_o^2$.
:::
:::

::: check
given: G = 10 | 15 | 20 | 30 | 50 | 80
answer: G^2/2
tolerance: 1%

## Telescopic cascode gain, intrinsic gain {G}?

::: misses
- [any] $(g_mr_o)^2/2$.
:::
:::

::: check
given: V = 1.2 | 2.5; d = 0.12 | 0.25; n = 3 | 4
answer: V - n*d
unit: V
tolerance: 1%

## Swing: {V} V supply, {n} devices at {d} V each?

::: misses
- [any] $V_{DD} - nV_{DS,\text{sat}}$.
:::
:::
:::
