---
title: "Problem set 4: op amp design"
heading: "Problem set 4: two-stage, folded-cascode and fully differential op amps, and output stages"
eyebrow: S2 · Problem set 4
type: problems
---

::: hook
These problems cover lessons 20 to 24: two-stage Miller op amp design with a nulling resistor, single-stage op amps compensated by their load, fully differential operation with common-mode feedback, and output stage efficiency, dissipation and crossover. $V_T$ = 25.85 mV.
:::

::: pool
pick: 12

::: check
kind: parts
given: G = 10 | 50; L = 2 | 10; k = 2 | 3; C = 1 | 3

## A two-stage op amp for GBW = {G} MHz into {L} pF, with $C_c$ = {C} pF and $p_2$ = {k}·GBW.

::: part
answer: 2*pi*G*1e6*C*1e-12*1000
unit: mS
tolerance: 1%

### $g_{m1}$?

::: misses
- [any] $2\pi\,\text{GBW}\,C_c$.
:::
:::

::: part
answer: k*2*pi*G*1e6*L*1e-12*1000
unit: mS
tolerance: 1%

### $g_{m6}$?

::: misses
- [any] $p_2C_L$ with $p_2 = 2\pi k\,\text{GBW}$.
:::
:::

::: part
answer: (1 + L/C)/(k*2*pi*G*1e6*L*1e-12)/1000
unit: kΩ
tolerance: 1%

### $R_z$ that cancels $p_2$?

::: misses
- [any] $(1 + C_L/C_c)/g_{m6}$.
:::
:::
:::

::: check
kind: parts
given: a = 12 | 20; b = 8 | 12; l = 0.08 | 0.15; G = 20 | 40; C = 1 | 2

## A two-stage op amp: input pair at $g_m/I_D$ = {a} /V, output at {b} /V, λ = {l} V⁻¹, GBW = {G} MHz with $C_c$ = {C} pF.

::: part
answer: a/(2*l)*b/(2*l)
tolerance: 1%

### DC gain?

::: misses
- [any] $\frac{(g_m/I_D)_1}{2\lambda}\cdot\frac{(g_m/I_D)_6}{2\lambda}$.
:::
:::

::: part
answer: 2*2*pi*G*1e6*C*1e-12/a*1e6
unit: µA
tolerance: 1%

### Tail current?

::: misses
- [any] $2g_{m1}/(g_m/I_D)_1$.
:::
:::

::: part
answer: 2*2*pi*G*1e6*C*1e-12/a/(C*1e-12)/1e6
unit: V/µs
tolerance: 1%

### Slew rate?

::: misses
- [any] $I_\text{tail}/C_c$.
:::
:::
:::

::: check
kind: parts
given: u = 20 | 60; p = 50 | 150; z = 150 | 600

## A two-stage op amp with unity-gain frequency {u} MHz, second pole {p} MHz, and RHP zero {z} MHz.

::: part
answer: 90 - atan(u/p)*180/pi - atan(u/z)*180/pi
unit: °
tolerance: 1%

### Phase margin estimate?

::: misses
- [any] $90° - \arctan(\omega_u/p_2) - \arctan(\omega_u/z)$.
:::
:::

::: part
answer: 90 - atan(u/p)*180/pi
unit: °
tolerance: 1%

### With the zero removed by $R_z = 1/g_{m6}$?

::: misses
- [any] Drop the zero's term.
:::
:::
:::

::: check
kind: parts
given: g = 0.5 | 2; L = 1 | 5; m = 1 | 4; C = 100 | 400

## A folded cascode: $g_{m1}$ = {g} mS into {L} pF; folding node {m} mS and {C} fF.

::: part
answer: g*1e-3/(2*pi*L*1e-12)/1e6
unit: MHz
tolerance: 1%

### Unity-gain frequency?

::: misses
- [any] $g_{m1}/2\pi C_L$.
:::
:::

::: part
answer: 90 - atan((g*1e-3/(L*1e-12))/(m*1e-3/(C*1e-15)))*180/pi
unit: °
tolerance: 1%

### Phase margin?

::: misses
- [any] $90° - \arctan(\omega_u/p_2)$.
:::
:::

::: part
answer: 90 - atan((g*1e-3/(2*L*1e-12))/(m*1e-3/(C*1e-15)))*180/pi
unit: °
tolerance: 1%

### With twice the load?

::: misses
- [any] $\omega_u$ halves; $p_2$ stays.
:::
:::
:::

::: check
kind: parts
given: V = 1.2 | 1.8 | 3.3; d = 0.12 | 0.2

## Swing at {V} V with {d} V per saturated device.

::: part
answer: V - 5*d
unit: V
tolerance: 1%

### Telescopic, single-ended?

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

::: part
answer: 2*(V - 4*d)
unit: V
tolerance: 1%

### A fully differential folded cascode's differential output range, twice its single-ended range?

::: misses
- [any] $2(V_{DD} - 4V_{DS,\text{sat}})$.
:::
:::
:::

::: check
kind: parts
given: T = 100 | 300; f = 1.2 | 2; L = 2 | 8

## A folded cascode with a {T} µA tail, folding branches at {f} times an input transistor's current, driving {L} pF.

::: part
answer: T*(1 + f)
unit: µA
tolerance: 1%

### Total current?

::: misses
- [any] $I_\text{tail}(1 + f)$.
:::
:::

::: part
answer: (T + f*T/2 - abs(T - f*T/2))/2*1e-6/(L*1e-12)/1e6
unit: V/µs
tolerance: 1%

### Slew rate (the smaller of tail and folding current, over $C_L$)?

::: misses
- [any] $\min(I_\text{tail}, I_\text{fold})/C_L$.
:::
:::
:::

::: check
kind: parts
given: a = 0.05 | 0.2; c = 0.02 | 0.08; A = 0.3 | 0.8; e = 0.5 | 2

## A half-circuit $y = x + a_2x^2 + a_3x^3$ with $a_2$ = {a}, $a_3$ = {c}, driven with amplitude {A}; the differential version is matched to {e}%.

::: part
answer: 20*log(a*A/2)
unit: dB
tolerance: 0.5%

### Single-ended HD2?

::: misses
- [any] $a_2A/2$.
:::
:::

::: part
answer: 20*log(a*A/2*e/100)
unit: dB
tolerance: 1%

### Differential HD2?

::: misses
- [any] Mismatch times the single-ended level.
:::
:::

::: part
answer: 20*log(c*A^2/4)
unit: dB
tolerance: 0.5%

### HD3 (either version)?

::: misses
- [any] $a_3A^2/4$.
:::
:::
:::

::: check
kind: parts
given: R = 2 | 10; S = 0.5 | 5; g = 0.5 | 2

## A fully differential op amp: {R} MΩ output resistance per side, $g_{m1}$ = {g} mS, resistive CMFB sensing with {S} MΩ per side.

::: part
answer: g*R*1000
tolerance: 1%

### Differential gain without the sensing resistors?

::: misses
- [any] $g_{m1}R_\text{out}$.
:::
:::

::: part
answer: g*R*S/(R + S)*1000
tolerance: 1%

### With them?

::: misses
- [any] $g_{m1}(R_\text{out} \parallel R_\text{sense})$.
:::
:::
:::

::: check
kind: parts
given: V = 9 | 15 | 24; R = 4 | 16

## A class B stage on ±{V} V into {R} Ω.

::: part
answer: V^2/(2*R)
unit: W
tolerance: 1%

### Maximum load power?

::: misses
- [any] $V_{CC}^2/2R_L$.
:::
:::

::: part
answer: 2*V^2/(pi^2*R)
unit: W
tolerance: 1%

### Worst-case total dissipation?

::: misses
- [any] $2V_{CC}^2/\pi^2R_L$.
:::
:::

::: part
answer: 2*V/pi
unit: V
tolerance: 1%

### Amplitude where that happens?

::: misses
- [any] $2V_{CC}/\pi$.
:::
:::
:::

::: check
kind: parts
given: V = 5 | 15; I = 2 | 20; D = 30 | 60; T = 500 | 5000

## A class AB stage idling at {I} mA from ±{V} V, with a {D} mV dead zone inside a loop gain of {T}.

::: part
answer: 2*V*I
unit: mW
tolerance: 1%

### Idle power?

::: misses
- [any] $2V_{CC}I_Q$.
:::
:::

::: part
answer: D/T*1000
unit: µV
tolerance: 1%

### Residual dead zone at the output?

::: misses
- [any] Dead zone over T.
:::
:::
:::

::: check
kind: parts
given: k = 1.5 | 2 | 3; G = 5 | 30

## A two-pole op amp with $p_2$ = {k}$\omega_u$ and GBW {G} MHz, as a follower.

::: part
answer: exp(-pi*0.5*sqrt(k)/sqrt(1 - k/4))*100
unit: %
tolerance: 1%

### Overshoot?

::: misses
- [any] ζ = $\frac{1}{2}\sqrt k$.
:::
:::

::: part
answer: 9.2/(2*pi*k*G*1e6)*1e9
unit: ns
tolerance: 1%

### 1% settling time?

::: misses
- [any] $9.2/p_2$.
:::
:::
:::

::: check
kind: parts
given: G = 15 | 40; V = 1.5 | 3

## A telescopic op amp built from transistors of intrinsic gain {G}, in a fully differential version at {V} V supply with 0.15 V per device.

::: part
answer: G^2/2
tolerance: 1%

### DC gain?

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

::: part
answer: 2*(V - 5*0.15)
unit: V
tolerance: 1%

### Peak differential output swing range?

::: misses
- [any] Twice the single-ended $V_{DD} - 5V_{DS,\text{sat}}$.
:::
:::
:::

::: check
kind: parts
given: V = 1.8 | 3.3; T = 0.4 | 0.5; o = 0.15 | 0.2

## An NMOS input pair with a PMOS mirror load runs from {V} V; every transistor has a {T} V threshold and runs at {o} V overdrive, and the tail needs {o} V too.

::: part
answer: T + 2*o
unit: V
tolerance: 0.5%

### What is the lowest input common mode it accepts?

::: misses
- [any] $V_{GS1} + V_{DS,\text{sat,tail}}$.
:::
:::

::: part
answer: V - o
unit: V
tolerance: 0.5%

### What is the highest?

::: misses
- [any] $V_{DD} - |V_{GS3}| + V_{T1}$.
:::
:::

::: part
answer: V - T - 3*o
unit: V
tolerance: 0.5%

### How wide is the range?

::: misses
- [any] Difference of the two limits.
:::
:::
:::

::: check
kind: parts
given: V = 5 | 12 | 15; R = 4 | 8 | 16

## A class B push-pull stage on ±{V} V drives {R} Ω.

::: part
answer: 2*V/pi
unit: V
tolerance: 0.5%

### At what output amplitude do its transistors dissipate the most?

::: misses
- [any] $2V_{CC}/\pi$.
:::
:::

::: part
answer: 2*V^2/(pi^2*R)
unit: W
tolerance: 0.5%

### What is that worst-case dissipation, both transistors together?

::: misses
- [V^2/(pi^2*R)] That's one transistor; there are two.
- [any] $2V_{CC}^2/(\pi^2R_L)$.
:::
:::
:::

::: check
kind: parts
given: V = 0.5 | 1; C = 1 | 4

## A single-ended sampling stage swings {V} V peak on a {C} pF capacitor; a fully differential version puts the same capacitor on each side, and each side swings {V} V peak in antiphase.

::: part
answer: 10*log((V^2/2)/(1.380649e-23*300/(C*1e-12)))
unit: dB
tolerance: 0.5%

### What SNR does the single-ended stage's kT/C noise allow?

::: misses
- [any] $(V_p^2/2)/(kT/C)$.
:::
:::

::: part
answer: 10*log((V^2/2)/(1.380649e-23*300/(C*1e-12))) + 10*log(2)
unit: dB
tolerance: 0.5%

### And the differential one?

::: misses
- [10*log((V^2/2)/(1.380649e-23*300/(C*1e-12))) + 20*log(2)] The signal power is four times larger, but the noise doubles too.
- [any] 4 times the signal power over 2 times the noise.
:::
:::
:::
:::
