---
title: Mismatch, offset and calibration
heading: Random offsets, yield, and the circuits that cancel them
eyebrow: S2 · Lesson 34 · Mismatch, offset and calibration
xp: 50
---

::: hook
Two transistors drawn identically side by side still differ: a few dopant atoms more in one channel, a slightly rougher edge, a different grain in the gate metal. Those random differences give every op amp an input offset, every comparator a threshold error, every current mirror a ratio error. They can't be designed away, only made smaller with area (Pelgrom's law) or removed after the fact. A designer's job is to predict the spread across a million chips, choose areas so enough of them meet the spec, and use auto-zeroing, chopping or trimming where area alone would cost too much.
:::

::: play
- Five thousand simulated op amps, each with an input offset drawn from a normal distribution whose spread is set by Pelgrom's law, $\sigma = A_{VT}/\sqrt{WL}$, for an input pair of area W × L.
- The dashed curve is the predicted distribution; the readout counts the fraction inside the ±$V_\text{spec}$ window, the yield.
- Quadruple the area and the spread halves. A spec at 3σ passes 99.7% of parts; at 2σ only 95%.
:::
:::

```sim plot
view: random
x: v = -8..8 mV
slider: A = 1..6 = 3 mV·µm
slider: W = 1..100 = 10 µm log
slider: L = 0.2..5 = 1 µm log
slider: Vs = 0.5..5 = 2 mV
sample: A/sqrt(W*L)*randn(1) | sd: S
trials: 5000
bins: 48
density: exp(-v^2/(2*(A/sqrt(W*L))^2))/(A/sqrt(W*L)*sqrt(2*pi))
measure: step(Vs - abs(v)) | name: Y
readout: predicted σ, mV = A/sqrt(W*L) | digits: 3
readout: measured σ, mV = S | digits: 3
readout: yield inside ±Vs = Y*100 % | digits: 3
```

::: predict
## An input pair's offset has σ = 0.95 mV. What fraction of parts meet a ±2 mV spec?

- [ ] About 68%
- [ ] About 90%
- [x] About 96%
- [ ] About 99.7%

::: reveal
±2 mV is ±2.1σ, so the fraction inside is $\text{erf}\left(\frac{2.1}{\sqrt2}\right)$ = 96.5%. One part in thirty fails. To reach 99.7% (±3σ) the spread must fall to 0.67 mV, which by Pelgrom's law needs $(0.95/0.67)^2$ = 2 times the gate area, or a calibration scheme.
:::
:::

::: nameit
## Pelgrom's law

The difference between two nominally identical transistors has

$$\sigma_{\Delta V_T} = \frac{A_{VT}}{\sqrt{WL}}, \qquad \sigma_{\Delta\beta/\beta} = \frac{A_\beta}{\sqrt{WL}}$$

with $A_{VT}$ of 1 to 5 mV·µm depending on the process (thin oxides and undoped channels are better) and $A_\beta$ around 1%·µm. Errors fall only as the square root of area: halving the offset costs four times the area, and with it capacitance and speed.

## Offset of an op amp

Each mismatched pair contributes, referred to the input through the ratio of transconductances. For a differential pair with a mirror load:

$$\sigma_{V_{os}}^2 = \sigma_{\Delta V_{T1}}^2 + \left(\frac{g_{m3}}{g_{m1}}\right)^2\sigma_{\Delta V_{T3}}^2 + \ldots$$

so the load runs at low $g_m/I_D$ (large overdrive) to keep its contribution down.

## Yield

With normal offsets of spread σ, the fraction within ±$V_\text{spec}$ is $\text{erf}\frac{V_\text{spec}}{\sqrt2\sigma}$: 68% at 1σ, 95.4% at 2σ, 99.73% at 3σ.

## Cancelling offset

- **Trimming:** measure each part and adjust (fuses, one-time-programmable memory, laser-trimmed resistors). Corrects offset at one temperature.
- **Auto-zeroing:** periodically connect the inputs together, store the resulting offset on a capacitor, and subtract it during operation. Removes offset and low-frequency noise, but the sampling folds wideband noise down (more kT/C noise in the band).
- **Chopping:** swap the inputs and outputs at a frequency $f_\text{ch}$ above the flicker corner. The signal is modulated up, amplified, and demodulated back; the offset and 1/f noise are modulated up instead and filtered out. Residual offsets come from charge injection by the switches, often microvolts.
- **Dynamic element matching:** in DACs, rotate which unit elements are used so their mismatches average out.
:::

::: example
## An input pair is 10 µm × 1 µm in a process with $A_{VT}$ = 3 mV·µm. Find its offset spread, its yield at ±2 mV, and the area needed for ±2 mV at 3σ.

::: solution
1. **Offset spread.**
   $$\begin{aligned} \sigma &= \frac{3}{\sqrt{10}}\ \text{mV} \\ &= 0.95\ \text{mV} \end{aligned}$$
2. **Yield at ±2 mV.**
   $$\begin{aligned} Y &= \text{erf}\frac{2}{\sqrt2 \times 0.95} \\ &= 96.5\% \end{aligned}$$
3. **Area for ±2 mV at 3σ.** σ must be 0.67 mV, so
   $$\begin{aligned} WL &= \left(\frac{3}{0.67}\right)^2 \\ &= 20\ \text{µm}^2 \end{aligned}$$
   twice the area.
4. **The cost.** Doubling the input capacitance lowers the amplifier's speed for the same current; for a precision part, chopping usually wins.

**Answer:** σ = 0.95 mV with a 96.5% yield at ±2 mV, and ±2 mV at 3σ needs 20 µm², twice the area.
:::
:::

::: example
## A two-stage op amp's input pair has $\sigma_{\Delta V_T}$ = 1 mV and its mirror load 1.5 mV, with $g_{m3}/g_{m1}$ = 0.4. What's the offset spread?

::: solution
1. **Combine in quadrature.**
   $$\begin{aligned} \sigma_{V_{os}} &= \sqrt{1^2 + (0.4 \times 1.5)^2} \\ &= 1.17\ \text{mV} \end{aligned}$$
2. **Why the load counts less.** The load contributes only 0.6 mV in quadrature because its transconductance is lower: its threshold error makes a current error, and dividing by the input pair's $g_m$ refers it back.
3. **Shrinking its share.** Running the load at even lower $g_m/I_D$ would shrink its share further.

**Answer:** an offset spread of 1.17 mV.
:::
:::

::: example
## A pair's offset spread is 2 mV. What area change halves it, by Pelgrom's law?

::: solution
1. **Pelgrom's law.**
   $$\sigma_{\Delta V_T} = \frac{A_{VT}}{\sqrt{WL}}$$
2. **Halving the spread.** That takes four times the area, and four times the input capacitance, which costs bandwidth.
3. **Other ways.** Calibration or chopping breaks that trade when precision matters more than simplicity.

**Answer:** four times the area.
:::
:::

::: check
given: A = 1.5 | 3 | 5; W = 2 | 20; L = 0.1 | 1
answer: A/sqrt(W*L)
unit: mV
tolerance: 1%

## A process has $A_{VT}$ = {A} mV·µm. What threshold mismatch spread does a {W} µm × {L} µm pair have?

::: right
Right. $\frac{A_{VT}}{\sqrt{WL}}$ = {answer} mV.
:::

::: misses
- [A/(W*L)] The spread falls with the square root of area.
- [any] Not yet. Use Pelgrom's law.
:::
:::

::: check
given: A = 2 | 4; s = 0.2 | 0.5 | 1
answer: (A/s)^2
unit: µm^2
tolerance: 1%

## With $A_{VT}$ = {A} mV·µm, what gate area gives a threshold mismatch spread of {s} mV?

::: right
Right. $WL = (A_{VT}/\sigma)^2$ = {answer} µm².
:::

::: misses
- [A/s] Square it: area goes as $1/\sigma^2$.
- [any] Not yet. Invert Pelgrom's law.
:::
:::

::: check
given: k = 1 | 1.5 | 2.5 | 3
answer: erf(k/sqrt(2))*100
unit: %
tolerance: 0.1%

## Offsets are normal with spread σ. What fraction lie within ±{k}σ?

::: right
Right. $\text{erf}\frac{k}{\sqrt2}$ = {answer}%.
:::

::: misses
- [erf(k)*100] Divide by √2 inside the erf.
- [any] Not yet. Integrate the normal density.
:::
:::

::: check
given: a = 0.5 | 1 | 2; b = 0.5 | 2; r = 0.2 | 0.4 | 0.6
answer: sqrt(a^2 + (r*b)^2)
unit: mV
tolerance: 1%

## An op amp's input pair has {a} mV of threshold mismatch spread and its load {b} mV, with $g_{m3}/g_{m1}$ = {r}. What's its offset spread?

::: right
Right. $\sqrt{\sigma_1^2 + (g_{m3}/g_{m1})^2\sigma_3^2}$ = {answer} mV.
:::

::: misses
- [a + r*b] Independent errors add in quadrature.
- [sqrt(a^2 + b^2)] Refer the load's error through $g_{m3}/g_{m1}$.
- [any] Not yet. Refer each to the input and combine.
:::
:::

::: check
given: s = 0.5 | 1 | 2; k = 2 | 3
answer: k*s
unit: mV
tolerance: 1%

## An op amp's offset spread is {s} mV. What spec should the data sheet guarantee for {k}σ coverage?

::: right
Right. ±{answer} mV.
:::

::: misses
- [any] Not yet. k times the spread.
:::
:::

::: check
given: s = 0.5 | 1 | 2; f = 2 | 4 | 16
answer: s/sqrt(f)
unit: mV
tolerance: 1%

## A pair's offset spread is {s} mV. What does it become with {f} times the gate area?

::: right
Right. $\sigma/\sqrt{f}$ = {answer} mV.
:::

::: misses
- [s/f] Area helps only as its square root.
- [any] Not yet. Pelgrom's law in ratio form.
:::
:::

::: check
given: R = 10 | 20 | 50; n = 5 | 8
answer: 2*R/2^n*1000
unit: µV
tolerance: 1%

## A trim circuit can adjust offset over ±{R} mV with an {n}-bit code. What's its trim step?

::: right
Right. The full span of 2 × {R} mV over $2^n$ codes gives a step of {answer} µV.
:::

::: misses
- [any] Not yet. The full span over the number of codes.
:::
:::

::: check
kind: parts
given: A = 2 | 3 | 5; W = 4 | 10 | 40; L = 0.5 | 1 | 2

## An input pair {W} µm × {L} µm is made in a process with $A_{VT}$ = {A} mV·µm.

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

### What is its offset spread?

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

::: part
answer: (3*A/2)^2
unit: µm²
tolerance: 0.5%

### What area holds 3σ under 2 mV?

::: misses
- [any] $(3A_{VT}/2\text{ mV})^2$.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..5, b = 0.5..5, r = 0.1..1

## An op amp's input pair has offset spread a and its load mirror b, with $g_{m3}/g_{m1}$ = r.

::: step
answer: sqrt(a^2 + (r*b)^2)

### What total input-referred offset spread results?
:::

::: step
answer: sqrt(a^2 + (r*b)^2)/2

### What does quadrupling every device's area give?
:::

::: right
Right. Contributions add in quadrature, and a load's offset is scaled down by its transconductance relative to the input pair's.
:::
:::

::: explain
## Why does chopping remove an amplifier's offset and flicker noise but not its signal?

::: model
A chopper swaps the input connections at a frequency well above the amplifier's flicker corner, so the input signal arrives at the amplifier as a square-wave-modulated version of itself, shifted up to the chopping frequency. The amplifier's own offset and low-frequency noise are added after this modulation, so they stay at low frequency. At the output a second chopper, synchronized with the first, swaps back: the signal returns to its original frequency, while the offset and flicker noise are now modulated up to the chopping frequency, where a low-pass filter removes them. Only errors that are themselves modulated, like charge injected by the switches, survive as residual offset.
:::
:::

::: practice

::: check
given: A = 2 | 4.5; W = 5 | 50; L = 0.5 | 2
answer: A/sqrt(W*L)
unit: mV
tolerance: 1%

## Pelgrom σ: {A} mV·µm, {W} × {L} µm?

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

::: check
given: k = 1 | 1.2 | 1.5 | 2 | 2.5 | 2.8 | 3
answer: erf(k/sqrt(2))*100
unit: %
tolerance: 0.1%

## Yield within ±{k}σ?

::: misses
- [any] $\text{erf}(k/\sqrt2)$.
:::
:::

::: check
given: A = 1.5 | 3.5; s = 0.3 | 0.8
answer: (A/s)^2
unit: µm^2
tolerance: 1%

## Area for σ = {s} mV with $A_{VT}$ = {A} mV·µm?

::: misses
- [any] $(A_{VT}/\sigma)^2$.
:::
:::
:::
