---
title: "Problem set 2: mirrors, references and pairs"
heading: "Problem set 2: current mirrors, references, bandgaps and differential pairs"
eyebrow: S2 · Problem set 2
type: problems
---

::: hook
These problems cover lessons 7 to 10: mirror accuracy, output resistance and matching, self-biased references, bandgap design and curvature, and the differential pair's transfer, offset and common-mode rejection. $V_T$ = 25.85 mV at 300 K, k/q = 86.17 µV/K, $V_{G0}$ = 1.205 V.
:::

::: pool
pick: 12

::: check
kind: parts
given: b = 40 | 150; N = 2 | 6

## A bipolar mirror with output area ratio {N} and β = {b}.

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

### Output-to-reference ratio?

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

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

### With a beta helper?

::: misses
- [any] The helper divides the base-current term by β + 1.
:::
:::
:::

::: check
kind: parts
given: l = 0.06 | 0.2; G = 0.55 | 0.7; D = 1 | 2; g = 1 | 3; o = 30 | 80

## An NMOS mirror (λ = {l} V⁻¹, input at {G} V, output at {D} V); its cascoded version uses devices with $g_m$ = {g} mS, $r_o$ = {o} kΩ.

::: part
answer: ((1 + l*D)/(1 + l*G) - 1)*100
unit: %
tolerance: 1%

### Simple mirror's error?

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

::: part
answer: g*o^2/1000
unit: MΩ
tolerance: 1%

### Cascode mirror's output resistance?

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

::: check
kind: parts
given: T = 0.35 | 0.45; v = 0.12 | 0.25; V = 1 | 1.5

## An NMOS cascode mirror: $V_T$ = {T} V, $V_{ov}$ = {v} V, supply {V} V.

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

### Minimum output voltage, standard cascode?

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

::: part
answer: T
unit: V
tolerance: 1%

### How much headroom does the wide-swing version save?

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

::: check
kind: parts
given: e = 5 | 15; s = 1 | 4; B = 0.3 | 1; W = 1 | 16

## A mirror at $g_m/I_D$ = {e} /V; unit transistors have $\sigma_{\Delta V_T}$ = {s} mV and $\sigma_{\Delta\beta}/\beta$ = {B}%.

::: part
answer: sqrt((e*s/10)^2 + B^2)
unit: %
tolerance: 1%

### Current mismatch?

::: misses
- [any] Quadrature sum.
:::
:::

::: part
answer: sqrt((e*s/10)^2 + B^2)/sqrt(W)
unit: %
tolerance: 1%

### If each transistor is made {W} times larger in area?

::: misses
- [any] Both terms fall as $1/\sqrt{\text{area}}$.
:::
:::
:::

::: check
kind: parts
given: N = 4 | 12; R = 3 | 12; T = 250 | 400; C = 500 | 2000

## A $\Delta V_{BE}/R$ reference: {N}:1 ratio, R = {R} kΩ, resistor TC {C} ppm/K.

::: part
answer: 8.617e-5*T*ln(N)/(R*1e3)*1e6
unit: µA
tolerance: 1%

### Current at {T} K?

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

::: part
answer: (1/T - C*1e-6)*1e6
unit: ppm/K
tolerance: 1%

### Its temperature coefficient there?

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

::: check
kind: parts
given: K = 3 | 8; R = 8 | 30; k = 0.3 | 1.5

## A constant-$g_m$ bias: K = {K}, R = {R} kΩ, $\mu C_{ox}W/L$ = {k} mA/V².

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

### Transconductance it sets?

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

::: part
answer: 2/(k*1e-3*(R*1e3)^2)*(1 - 1/sqrt(K))^2*1e6
unit: µA
tolerance: 1%

### Bias current?

::: misses
- [any] $\frac{2}{\mu C_{ox}(W/L)R^2}(1 - 1/\sqrt K)^2$.
:::
:::
:::

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

## A first-order bandgap: $V_{BE0}$ = {V} V at 300 K, η − α = {e}, ratio N = {N}.

::: part
answer: ((1.205 - V)/(300*8.617e-5) + e)/ln(N)
tolerance: 1%

### Resistor gain K?

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

::: part
answer: 1.205 + e*8.617e-5*300
unit: V
tolerance: 0.1%

### Output voltage?

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

::: part
answer: e*8.617e-5*(398*ln(398/300) - 98)*1000
unit: mV
tolerance: 1%

### Droop at 398 K?

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

::: check
kind: parts
given: o = 0.5 | 2; K = 8 | 14; V = 1.2 | 1.25

## A bandgap of {V} V whose op amp has {o} mV of offset, with PTAT gain K = {K}.

::: part
answer: o*(K + 1)
unit: mV
tolerance: 1%

### Output error?

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

::: part
answer: o*(K + 1)/(V*1000)*100
unit: %
tolerance: 1%

### As a percentage of the output?

::: misses
- [any] Divide by the reference voltage.
:::
:::
:::

::: check
kind: parts
given: I = 0.2 | 1; v = 10 | 40; o = 120 | 250

## A bipolar pair with a {I} mA tail and a MOS pair with $V_{ov}$ = {o} mV, both driven by {v} mV.

::: 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: v/o*sqrt(1 - v^2/(4*o^2))
tolerance: 1%

### Fraction of its tail current the MOS pair steers?

::: misses
- [any] $\frac{v}{V_{ov}}\sqrt{1 - v^2/4V_{ov}^2}$.
:::
:::
:::

::: check
kind: parts
given: R = 0.3 | 1.5; S = 0.5 | 2; T = 2 | 6; v = 0.15 | 0.3

## Offsets: a bipolar pair with {R}% load and {S}% $I_S$ mismatch; a MOS pair with {T} mV threshold mismatch, $V_{ov}$ = {v} V, and the same load mismatch.

::: part
answer: 0.02585*(R + S)/100*1e6
unit: µV
tolerance: 1%

### Bipolar offset (errors adding)?

::: misses
- [any] $V_T(\Delta R/R + \Delta I_S/I_S)$.
:::
:::

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

### MOS offset?

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

::: part
answer: 0.02585*(R + S)/100*1e6/300
unit: µV/K
tolerance: 1%

### Bipolar offset drift at 300 K?

::: misses
- [any] $V_{os}/T$.
:::
:::
:::

::: check
kind: parts
given: I = 0.2 | 1; R = 30 | 300; m = 0.5 | 2

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

::: part
answer: I/25.85*1000
unit: mS
tolerance: 1%

### $g_m$ per side?

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

::: part
answer: 20*log(2*I/25.85*R*1e3/(m/100))
unit: dB
tolerance: 0.5%

### CMRR?

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

::: check
kind: parts
given: V = 3.3 | 5; G = 0.65 | 0.75; N = 4 | 8; R = 5 | 20

## Supply dependence: a resistor-fed bias from {V} V into a {G} V diode, against a $\Delta V_{BE}/R$ loop (N = {N}, R = {R} kΩ).

::: part
answer: V/(V - G)
tolerance: 1%

### Resistor bias's supply sensitivity?

::: misses
- [any] $V_{DD}/(V_{DD} - V_{GS})$.
:::
:::

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

### Self-biased loop's current (ideally independent of the supply)?

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

::: check
kind: parts
given: i = 1 | 2; o = 10 | 50 | 100; A = 50 | 100

## A bipolar Widlar source takes {i} mA in its reference transistor and should give {o} µA out; its transistors' Early voltage is {A} V ($V_T$ = 25.85 mV, β large).

::: part
answer: 0.02585*ln(i*1000/o)/(o*1e-6)/1000
unit: kΩ
tolerance: 0.5%

### What emitter resistor does it need?

::: misses
- [any] $I_\text{out}R = V_T\ln(I_\text{in}/I_\text{out})$.
:::
:::

::: part
answer: A/(o*1e-6)*(1 + ln(i*1000/o))/1e6
unit: MΩ
tolerance: 0.5%

### What output resistance does it have, ignoring $r_\pi$?

::: misses
- [A/(o*1e-6)/1e6] The emitter resistor degenerates it: $r_o(1 + g_mR)$.
- [any] $r_o(1 + g_mR)$, and $g_mR = \ln(I_\text{in}/I_\text{out})$.
:::
:::
:::

::: check
kind: parts
given: g = 0.5 | 1 | 2; C = 50 | 100; N = 4 | 8

## An NMOS mirror's diode-connected input has $g_m$ = {g} mS, and each unit-size transistor has $C_{gs}$ = {C} fF.

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

### Where is the mirror's pole for a 1:1 copy?

::: misses
- [g*1e-3/(2*pi*C*1e-15)/1e9] Both gates load the input node.
- [any] $g_m/(2\pi\cdot2C_{gs})$.
:::
:::

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

### And for a 1:{N} copy made with an {N} times wider output transistor?

::: misses
- [any] The output gate adds N times $C_{gs}$.
:::
:::
:::

::: check
kind: parts
given: v = 0.5 | 1 | 3; T = 358 | 398

## A bipolar pair's offset comes from $I_S$ mismatch, so it's proportional to absolute temperature; it measures {v} mV at 300 K.

::: part
answer: v/300*1000
unit: µV/K
tolerance: 0.5%

### What is its drift?

::: misses
- [any] $V_{os}/T$.
:::
:::

::: part
answer: v*T/300
unit: mV
tolerance: 0.5%

### What is the offset at {T} K?

::: misses
- [any] Scale with T.
:::
:::

::: part
answer: 0
unit: µV/K
tolerance: 0

### What drift remains after the offset is trimmed to zero at 300 K?

::: misses
- [any] A PTAT offset trimmed to zero stays at zero: that's why trimming bipolar offsets also nulls their drift.
:::
:::
:::
:::
