---
title: Final exam
heading: "Final exam: analog circuit design"
eyebrow: S2 · Final exam
type: problems
---

::: hook
Twelve problems from the whole course: device models and gm/ID sizing, building blocks and references, bandwidth and feedback, op amp and regulator design, noise, distortion, mismatch and chopping, and filters, sampled-data circuits, converters, PLLs and oscillators. Give yourself three hours and work without the lessons open. $V_T$ = 25.85 mV, k = 1.381 × 10⁻²³ J/K, T = 300 K, $V_{G0}$ = 1.205 V. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: e = 8 | 22; n = 1.3 | 1.5; g = 0.5 | 3

## A MOSFET with slope factor {n} runs at $g_m/I_D$ = {e} /V and must give {g} mS.

::: part
answer: ((2/(e*n*0.02585) - 1)^2 - 1)/4
tolerance: 1%

### Inversion coefficient?

::: misses
- [any] Invert the EKV interpolation.
:::
:::

::: part
answer: g/e*1000
unit: µA
tolerance: 1%

### Current?

::: misses
- [any] $g_m/(g_m/I_D)$.
:::
:::
:::

::: check
kind: parts
given: B = 0.5 | 2; a = 4 | 8; I = 20 | 100; v = 10 | 30; w = 15 | 40

## Translinear circuits: class AB bias at {B} mA with output devices {a}× larger; a Gilbert cell with a 1 mA tail and inputs {v}, {w} mV.

::: part
answer: (B*a)^2/I*1000
unit: µA
tolerance: 1%

### Idle device's current when the other carries {I} mA?

::: misses
- [any] $I_Q^2/I$.
:::
:::

::: part
answer: tanh(v/51.7)*tanh(w/51.7)*1000
unit: µA
tolerance: 1%

### Gilbert output?

::: misses
- [any] $I_{EE}\tanh\frac{v_1}{2V_T}\tanh\frac{v_2}{2V_T}$.
:::
:::
:::

::: check
kind: parts
given: g = 1 | 5; b = 0.1 | 0.5; o = 20 | 80; R = 0.5 | 3; L = 5 | 30

## A stage: $g_m$ = {g} mS, $g_{mb}$ = {b} mS, $r_o$ = {o} kΩ, degeneration {R} kΩ, load {L} kΩ.

::: part
answer: g/(1 + (g + b)*R + R/o)*((o + R + (g + b)*o*R)*L/(o + R + (g + b)*o*R + L))
tolerance: 1%

### Degenerated common-source gain?

::: misses
- [any] $G_m(R_\text{out} \parallel R_L)$.
:::
:::

::: part
answer: g/(g + b + 1/o + 1/L)
tolerance: 1%

### As a source follower into the same load?

::: misses
- [any] $g_m/(g_m + g_{mb} + 1/r_o + 1/R_L)$.
:::
:::
:::

::: check
kind: parts
given: b = 40 | 150; N = 2 | 8; l = 0.05 | 0.2; G = 0.6 | 0.75; D = 1 | 2

## Mirrors: bipolar (β = {b}, ratio {N}); NMOS (λ = {l} V⁻¹, input {G} V, output {D} V).

::: part
answer: N/(1 + (N + 1)/b)
tolerance: 0.1%

### Bipolar ratio?

::: misses
- [any] $N/(1 + (N + 1)/\beta)$.
:::
:::

::: part
answer: (1 + l*D)/(1 + l*G)
tolerance: 0.1%

### NMOS ratio?

::: misses
- [any] $(1 + \lambda V_{DS2})/(1 + \lambda V_{DS1})$.
:::
:::
:::

::: check
kind: parts
given: N = 4 | 16; R = 3 | 15; V = 0.6 | 0.7; e = 2.5 | 3.5

## References: a $\Delta V_{BE}/R$ loop (N = {N}, R = {R} kΩ) and a bandgap with $V_{BE0}$ = {V} V, η − α = {e}.

::: part
answer: 0.02585*ln(N)/(R*1e3)*1e6
unit: µA
tolerance: 1%

### PTAT current at 300 K?

::: misses
- [any] $V_T\ln N/R$.
:::
:::

::: part
answer: 1.205 + e*0.02585
unit: V
tolerance: 0.1%

### Bandgap output when flat at 300 K?

::: misses
- [any] $V_{G0} + (\eta - \alpha)V_T$.
:::
:::

::: part
answer: e*8.617e-5*(233*ln(233/300) + 67)*1000
unit: mV
tolerance: 1%

### Its droop at 233 K?

::: misses
- [any] $(\eta - \alpha)\frac{k}{q}[T\ln(T/T_0) - (T - T_0)]$.
:::
:::
:::

::: check
kind: parts
given: I = 0.2 | 1; v = 10 | 40; T = 2 | 6; o = 0.15 | 0.3; R = 0.5 | 2; g = 5 | 20; S = 30 | 300

## Pairs: a bipolar pair with a {I} mA tail driven by {v} mV; a MOS pair with {T} mV threshold mismatch, $V_{ov}$ = {o} V, {R}% load mismatch; a pair with {g} mS per side and a {S} kΩ tail.

::: part
answer: I*tanh(v/51.7)*1000
unit: µA
tolerance: 1%

### Bipolar current difference?

::: misses
- [any] $I_{EE}\tanh(v/2V_T)$.
:::
:::

::: part
answer: T + o/2*R/100*1000
unit: mV
tolerance: 1%

### MOS offset (adding)?

::: misses
- [any] $\Delta V_T + (V_{ov}/2)\Delta R/R$.
:::
:::

::: part
answer: 20*log(2*g*1e-3*S*1e3/(R/100))
unit: dB
tolerance: 0.5%

### CMRR with that load mismatch?

::: misses
- [any] $20\log(2g_mR_{EE}/(\Delta R/R))$.
:::
:::
:::

::: check
kind: parts
given: g = 0.5 | 2; R = 100 | 300; S = 100 | 300; C = 1 | 3; a = 50 | 150; b = 500 | 2000

## A two-stage amplifier: $R_1$ = {R}, $R_2$ = {S} kΩ, $g_{m2}$ = {g} mS, $C_1$ = {a} fF, $C_2$ = {b} fF, $C_c$ = {C} pF.

::: part
answer: 1/(2*pi*g*1e-3*R*1e3*S*1e3*C*1e-12)/1e3
unit: kHz
tolerance: 1%

### Dominant pole?

::: misses
- [any] $1/2\pi g_{m2}R_1R_2C_c$.
:::
:::

::: part
answer: g*1e-3*C*1e-12/(a*1e-15*b*1e-15 + C*1e-12*(a + b)*1e-15)/(2*pi)/1e6
unit: MHz
tolerance: 1%

### Second pole?

::: misses
- [any] $g_{m2}C_c/(C_1C_2 + C_c(C_1 + C_2))$.
:::
:::

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

### RHP zero?

::: misses
- [any] $g_{m2}/2\pi C_c$.
:::
:::
:::

::: check
kind: parts
given: I = 10 | 40; T = 20 | 200; Z = 1 | 20; o = 100 | 1000

## Feedback: $A_\infty$ = {I}, T = {T}; and a port with $Z_0$ = {Z} kΩ under shunt feedback with $T_{oc}$ = {o}.

::: part
answer: I*T/(1 + T)
tolerance: 0.1%

### Closed-loop gain?

::: misses
- [any] $A_\infty T/(1 + T)$.
:::
:::

::: part
answer: Z/(1 + o)*1000
unit: Ω
tolerance: 1%

### Port impedance?

::: misses
- [any] $Z_0/(1 + T_{oc})$.
:::
:::
:::

::: check
kind: parts
given: r = 0.8 | 1.5 | 3

## An amplifier whose loop's second pole is at {r}$\omega_u$, closed as a follower.

::: part
answer: 90 - atan(sqrt((-r^2 + sqrt(r^4 + 4*r^2))/2)/r)*180/pi
unit: °
tolerance: 1%

### Exact phase margin?

::: misses
- [any] True crossover, then phase.
:::
:::

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

### Overshoot?

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

::: check
kind: parts
given: G = 20 | 80; L = 2 | 6; m = 1 | 3; C = 150 | 400; V = 1.2 | 1.8

## A folded cascode for GBW {G} MHz into {L} pF; folding node {m} mS, {C} fF; supply {V} V at 0.15 V per device.

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

### $g_{m1}$?

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

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

### Phase margin estimate?

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

::: part
answer: V - 4*0.15
unit: V
tolerance: 1%

### Single-ended swing?

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

::: check
kind: parts
given: V = 9 | 15; R = 8 | 32; I = 2 | 10

## A class AB output stage on ±{V} V into {R} Ω, idling at {I} mA.

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

### Worst-case dissipation (ignoring the idle current)?

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

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

### Idle power?

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

::: check
kind: parts
given: g = 0.5 | 3; c = 10 | 200; a = 10 | 100; b = 10 | 100; e = 1 | 5; i = 0.5 | 3; R = 200 | 5000

## Noise: a MOSFET at {g} mS (γ = 2/3) with a {c} kHz flicker corner; a preamp with $e_n$ = {e} nV/√Hz, $i_n$ = {i} pA/√Hz from {R} Ω.

::: part
answer: sqrt(4*1.380649e-23*300*(2/3)/(g*1e-3)*((b*1e3 - a) + c*1e3*ln(b*1e3/a)))*1e6
unit: µV
tolerance: 1%

### MOSFET's rms input noise from {a} Hz to {b} kHz?

::: misses
- [any] $e_n\sqrt{(f_2 - f_1) + f_c\ln(f_2/f_1)}$.
:::
:::

::: part
answer: 10*log(1 + ((e*1e-9)^2 + (i*1e-12*R)^2)/(4*1.380649e-23*300*R))
unit: dB
tolerance: 1%

### Preamp's noise figure?

::: misses
- [any] $10\log(1 + (e_n^2 + i_n^2R_s^2)/4kTR_s)$.
:::
:::
:::

::: check
kind: parts
given: A = 1.5 | 4; W = 5 | 40; L = 0.5 | 2; k = 2 | 3; c = 0.05 | 0.5

## Matching and linearity: a {W} × {L} µm pair with $A_{VT}$ = {A} mV·µm and a {k}σ spec; a stage with $a_1$ = 1 and $|a_3|$ = {c} V⁻².

::: part
answer: k*A/sqrt(W*L)
unit: mV
tolerance: 1%

### Offset spec?

::: misses
- [any] $kA_{VT}/\sqrt{WL}$.
:::
:::

::: part
answer: sqrt(4/3/c)
unit: V
tolerance: 1%

### Input intercept amplitude?

::: misses
- [any] $\sqrt{4a_1/3a_3}$.
:::
:::
:::

::: check
kind: parts
given: f = 0.5 | 4; a = 0.5 | 2; b = 5 | 20; t = 15 | 30; V = 0.01 | 1

## Sampled circuits: an SC integrator ($C_1$ = {a}, $C_2$ = {b} pF, {f} MHz clock) and a latch with τ = {t} ps starting from {V} mV.

::: part
answer: f*1e6*a/(2*pi*b)/1e3
unit: kHz
tolerance: 1%

### Integrator's unity-gain frequency?

::: misses
- [any] $f_sC_1/2\pi C_2$.
:::
:::

::: part
answer: t*ln(1/(V*1e-3))
unit: ps
tolerance: 1%

### Latch's time to 1 V?

::: misses
- [any] $\tau\ln(V_L/V_0)$.
:::
:::
:::

::: check
kind: parts
given: N = 10 | 14; V = 1 | 2; f = 0.1 | 1; s = 50 | 300

## An {N}-bit, {V} V converter sampling a {f} GHz input with {s} fs of jitter.

::: part
answer: V/2^N*1e6
unit: µV
tolerance: 0.1%

### LSB?

::: misses
- [any] $V_{FS}/2^N$.
:::
:::

::: part
answer: -20*log(2*pi*f*1e9*s*1e-15)
unit: dB
tolerance: 0.5%

### Jitter-limited SNR?

::: misses
- [any] $-20\log(2\pi f\sigma_t)$.
:::
:::
:::

::: check
kind: parts
given: L = 1 | 2 | 3; O = 32 | 128; f = 10 | 26; N = 96 | 240

## A one-bit delta-sigma modulator of order {L} at OSR {O}; and a PLL multiplying {f} MHz by {N}.

::: part
answer: 6.02 + 1.76 - 10*log(pi^(2*L)/(2*L + 1)) + (2*L + 1)*10*log(O)
unit: dB
tolerance: 0.5%

### Modulator SQNR?

::: misses
- [any] The SQNR formula.
:::
:::

::: part
answer: 20*log(N)
unit: dB
tolerance: 0.5%

### PLL's rise in in-band reference phase noise?

::: misses
- [any] 20 log N.
:::
:::
:::

::: check
kind: parts
given: s = 0.2 | 0.8; N = 10 | 12; S = 58 | 70

## A SAR ADC of {N} bits with {s}% unit mismatch, measuring {S} dB SINAD.

::: part
answer: s/100*sqrt(2^N - 1)
tolerance: 1%

### Midscale DNL spread?

::: misses
- [any] $\sigma\sqrt{2^N - 1}$.
:::
:::

::: part
answer: (S - 1.76)/6.02
tolerance: 0.5%

### ENOB?

::: misses
- [any] $(S - 1.76)/6.02$.
:::
:::
:::

::: check
kind: parts
given: v = 3.3 | 5; o = 1.8 | 2.5; I = 0.2 | 0.5; q = 50 | 100; a = 25 | 50

## An LDO drops {v} V to {o} V at {I} A. Its package has a junction-to-ambient thermal resistance of {q} K/W, in {a} °C air.

::: part
answer: (v - o)*I
unit: W
tolerance: 0.5%

### How much does the pass transistor dissipate?

::: misses
- [v*I] Only the voltage across the pass device heats it.
- [any] $(V_\text{in} - V_\text{out})I$.
:::
:::

::: part
answer: a + (v - o)*I*q
unit: °C
tolerance: 0.5%

### What junction temperature does it reach?

::: misses
- [any] $T_a + P\theta_{JA}$.
:::
:::
:::

::: check
kind: parts
given: f = 2.4 | 5; Q = 10 | 20; P = 1 | 5

## An LC VCO at {f} GHz runs at {P} mW with a loaded Q of {Q} and a noise factor of 2 (T = 300 K).

::: part
answer: 10*log(2*1.380649e-23*300*2/(P*1e-3)*(1 + (f*1000/(2*Q*1))^2))
unit: dBc/Hz
tolerance: 0.5%

### What phase noise does Leeson's model give 1 MHz from the carrier?

::: misses
- [any] $10\log[(2kTF/P)(1 + (f_0/2Q\Delta f)^2)]$.
:::
:::

::: part
answer: 10*log(2*1.380649e-23*300*2/(P*1e-3)*(1 + (f*1000/(2*2*Q*1))^2))
unit: dBc/Hz
tolerance: 0.5%

### What would doubling the Q give?

::: misses
- [any] Recompute with 2Q: close to 6 dB better.
:::
:::
:::

::: check
kind: parts
given: c = 10 | 50 | 100; f = 0.5 | 1 | 2; A = 40 | 60

## A chopper amplifier's output carries ripple at its {c} kHz chopping frequency; a second-order Butterworth low-pass follows it.

::: part
answer: 10*log(1 + (c/f)^4)
unit: dB
tolerance: 0.5%

### How much does a {f} kHz corner attenuate the ripple?

::: misses
- [10*log(1 + (c/f)^2)] Second order: the fourth power.
- [any] $10\log(1 + (f_\text{ch}/f_c)^4)$.
:::
:::

::: part
answer: c/(10^(A/10) - 1)^(1/4)
unit: kHz
tolerance: 0.5%

### What corner would give {A} dB?

::: misses
- [any] Solve $10\log(1 + (f_\text{ch}/f_c)^4) = A$.
:::
:::
:::
:::
