---
title: Midterm exam
heading: "Midterm exam: building blocks, frequency response and feedback"
eyebrow: S2 · Midterm exam
type: problems
---

::: hook
Twelve problems from lessons 1 to 15: device models and gm/ID sizing, single stages and cascodes, mirrors and references, bandgaps, differential pairs, bandwidth estimation, pole splitting, feedback and stability. Give yourself two and a half hours and work without the lessons open. $V_T$ = 25.85 mV, k/q = 86.17 µV/K, $V_{G0}$ = 1.205 V. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: g = 0.4 | 2; e = 8 | 18; A = 6 | 20

## A transistor must deliver {g} mS at $g_m/I_D$ = {e} /V, with $V_A$ = {A} V.

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

### Current?

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

::: part
answer: e*A
tolerance: 1%

### Intrinsic gain?

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

::: part
answer: e*A*e*A/2
tolerance: 1%

### Gain of a telescopic cascode with a matching cascode load built from such devices?

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

::: check
kind: parts
given: I = 0.1 | 1; b = 60 | 200; A = 25 | 80

## A bipolar transistor at {I} mA with β = {b} and $V_A$ = {A} V.

::: part
answer: b*0.02585/(I*1e-3)/1000
unit: kΩ
tolerance: 1%

### $r_\pi$?

::: misses
- [any] $\beta V_T/I_C$.
:::
:::

::: part
answer: A/0.02585
tolerance: 1%

### Intrinsic gain?

::: misses
- [any] $V_A/V_T$.
:::
:::
:::

::: check
kind: parts
given: g = 1 | 4; b = 0.1 | 0.4; o = 25 | 80; R = 0.5 | 4; L = 10 | 50

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

::: part
answer: o + R + (g + b)*o*R
unit: kΩ
tolerance: 1%

### Output resistance?

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

::: 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%

### Gain magnitude?

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

::: check
kind: parts
given: g = 1 | 3; b = 0.15 | 0.4; o = 30 | 90; L = 3 | 30

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

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

### Gain?

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

::: part
answer: 1/(g + b)*1000
unit: Ω
tolerance: 1%

### Approximate output resistance?

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

::: check
kind: parts
given: b = 30 | 120; N = 1 | 4; l = 0.05 | 0.2; G = 0.6 | 0.7; D = 1.2 | 2

## A bipolar mirror (β = {b}, ratio {N}) and an NMOS mirror (λ = {l} V⁻¹, input {G} V, output {D} V).

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

### Bipolar mirror's ratio?

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

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

### NMOS mirror's ratio?

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

::: check
kind: parts
given: N = 4 | 16; R = 4 | 20; C = 600 | 2400; K = 4 | 9; S = 10 | 40

## Bias: a $\Delta V_{BE}/R$ loop (N = {N}, R = {R} kΩ, resistor TC {C} ppm/K) and a β-multiplier (K = {K}, R = {S} kΩ).

::: 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/300 - C*1e-6)*1e6
unit: ppm/K
tolerance: 1%

### Its temperature coefficient?

::: misses
- [any] $1/T - TC_R$.
:::
:::

::: part
answer: 2/(S*1e3)*(1 - 1/sqrt(K))*1e6
unit: µS
tolerance: 1%

### $g_m$ set by the β-multiplier?

::: misses
- [any] $\frac{2}{R}(1 - 1/\sqrt K)$.
:::
:::
:::

::: check
kind: parts
given: V = 0.6 | 0.7; e = 2.5 | 3.5; N = 8 | 24; o = 0.5 | 2

## A bandgap: $V_{BE0}$ = {V} V, η − α = {e}, N = {N}, op-amp offset {o} mV.

::: part
answer: ((1.205 - V)/0.02585 + e)/ln(N)
tolerance: 1%

### Resistor gain K for zero slope at 300 K?

::: misses
- [any] $K\ln N = (V_{G0} - V_{BE0})/V_T + (\eta - \alpha)$.
:::
:::

::: part
answer: o*(((1.205 - V)/0.02585 + e)/ln(N) + 1)
unit: mV
tolerance: 1%

### Output error from the offset?

::: misses
- [any] $(K + 1)V_{os}$.
:::
:::
:::

::: check
kind: parts
given: I = 0.2 | 1; v = 8 | 30; R = 0.5 | 2; T = 2 | 5; o = 0.15 | 0.3

## Differential 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 and {R}% load mismatch.

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

### Bipolar pair's current difference?

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

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

### MOS pair's offset (adding)?

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

::: check
kind: parts
given: g = 5 | 20; R = 30 | 300; m = 0.3 | 2

## A pair with {g} mS per side, a {R} kΩ tail and {m}% load mismatch.

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

### CMRR?

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

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

### If cascoding the tail raises its resistance tenfold?

::: misses
- [any] Add 20 dB.
:::
:::
:::

::: check
kind: parts
given: s = 1 | 4; L = 5 | 25; g = 2 | 6; G = 80 | 250; D = 5 | 15; C = 50 | 200

## A common-source stage: $R_s$ = {s} kΩ, $R_L$ = {L} kΩ, $g_m$ = {g} mS, $C_{gs}$ = {G}, $C_{gd}$ = {D}, $C_L$ = {C} fF.

::: part
answer: 1/(2*pi*(s*G + (s + L + g*s*L)*D + L*C)*1e3*1e-15)/1e6
unit: MHz
tolerance: 1%

### Time-constant bandwidth estimate?

::: misses
- [any] $1/2\pi\sum R_{i0}C_i$.
:::
:::

::: part
answer: g*1e-3/(D*1e-15)/(2*pi)/1e9
unit: GHz
tolerance: 1%

### Right-half-plane zero?

::: misses
- [any] $g_m/2\pi C_{gd}$.
:::
:::
:::

::: check
kind: parts
given: g = 0.5 | 2; R = 80 | 250; S = 100 | 300; C = 1 | 4; a = 40 | 120; b = 400 | 2000

## A two-stage amplifier: $R_1$ = {R} kΩ, $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] Pole-splitting formula.
:::
:::
:::

::: check
kind: parts
given: I = 10 | 50; T = 30 | 300; d = 10 | 40

## A feedback amplifier with $A_\infty$ = {I} and loop gain {T}, no feedthrough.

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

### Gain?

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

::: part
answer: d/(1 + T)
unit: %
tolerance: 1%

### Change if the forward gain changes {d}%?

::: misses
- [any] $d/(1 + T)$.
:::
:::
:::

::: check
kind: parts
given: Z = 2 | 20; o = 99 | 999; s = 9 | 49

## Blackman: a port with $Z_0$ = {Z} kΩ.

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

### With $T_{oc}$ = {o}, $T_{sc}$ = 0?

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

::: part
answer: Z*(1 + s)
unit: kΩ
tolerance: 1%

### With $T_{sc}$ = {s}, $T_{oc}$ = 0?

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

::: check
kind: parts
given: f = 5 | 20; r = 0.8 | 2.5

## An op amp with $\omega_u/2\pi$ = {f} MHz and its second pole at {r}$\omega_u$, 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] Find the crossover, then the 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: B = 0.5 | 1.5; a = 4 | 10; I = 50 | 200; v = 5 | 15; w = 10 | 25

## Translinear circuits: class AB bias diodes at {B} mA with output devices {a}× larger; a Gilbert cell with a 1 mA tail and inputs {v} and {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 cell's output?

::: misses
- [any] $I_{EE}\tanh\tanh$.
:::
:::
:::

::: check
kind: parts
given: N = 2 | 6; b = 30 | 80; T = 0.35 | 0.45; v = 0.1 | 0.2

## A PNP mirror with ratio {N} and β = {b}, and an NMOS wide-swing cascode with $V_T$ = {T} V at $V_{ov}$ = {v} V.

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

### PNP mirror ratio with a beta helper?

::: misses
- [any] Helper divides the error by β + 1.
:::
:::

::: part
answer: 2*v
unit: V
tolerance: 1%

### Wide-swing cascode's minimum output voltage?

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