S2 · Lesson 7 · Current mirrors in depth
Accuracy, output resistance, compliance and matching
Almost every analog IC is biased by copying one reference current to dozens of places with current mirrors. A mirror's job sounds simple, output the same current as the input, but four things spoil it: the output transistor's drain voltage differs from the input's, bipolar transistors steal base current, the two transistors don't quite match, and the output can't hold its current all the way down to zero volts. C6 met the simple mirror and the cascode. This lesson quantifies each error and shows the circuits that fix them: base-current compensation, the Wilson mirror, and the wide-swing cascode that keeps a cascode's accuracy at low supply voltages.
- Output current (÷ the reference) against output voltage for three NMOS mirrors with = 0.4 V at overdrive : a simple mirror, a standard cascode, and a wide-swing cascode.
- The simple mirror works down to but its current tilts with voltage as . The cascodes are almost flat, but the standard one needs before it works; the wide-swing version only .
- Raise λ (shorter channels) and watch the simple mirror's error grow while the cascodes barely move.
Predict
An NMOS mirror's reference side sits at = 0.6 V; its output is at 1.2 V, and λ = 0.1 V⁻¹. How far off is the copied current?
= 1.057: 5.7% high, because the output transistor's drain is 0.6 V higher than the diode-connected input's. Short-channel processes, with λ of 0.1 to 0.3 V⁻¹, make this the dominant error, which is why accurate mirrors are cascoded or why the output's drain voltage is forced to match the input's.
Name it
Systematic errors
- Drain-voltage mismatch (MOS): . The same in bipolar with .
- Base current (bipolar): both bases draw from the reference, so ; with an area ratio N, . A beta helper (an emitter follower supplying the base current) cuts the error to .
- Wilson mirror: a three-transistor feedback mirror with an error of about and output resistance about .
Output resistance and compliance
| Mirror | Minimum output voltage | |
|---|---|---|
| simple | ||
| cascode | ||
| wide-swing (low-voltage) cascode |
The wide-swing cascode biases the cascode transistor's gate at from a separate branch, instead of stacking two diode drops, so the bottom transistor sits right at the edge of saturation.
Random mismatch
Two nominally identical transistors differ in threshold and in , so
with (S1.38). Mirrors use large areas and low (large overdrive) to keep this down.
Worked example
An NMOS mirror ( = 0.6 V, λ = 0.1 V⁻¹) drives an output at 1.2 V. Find the error, and the error after cascoding with transistors of intrinsic gain 50.
Show the solution
- Simple mirror. Compare the factors at 1.2 V and 0.6 V: a 5.7% error.
- Cascoded. Cascoding multiplies the output resistance by about = 50, so the output transistor's drain sees about a fiftieth of the voltage difference, and the error falls to about
- Cascoding both sides. A cascode on both sides, with the input stack matching the output's, removes even that.
Answer the simple mirror has a 5.7% error, and cascoding cuts it to about 0.11%.
Worked example
A bipolar mirror has β = 100. Find its error alone, with a beta helper, and as a Wilson mirror.
Show the solution
- Simple mirror. a 2% error.
- Beta helper. a 0.02% error.
- Wilson mirror. The error is about , also 0.02%, with the bonus of a much higher output resistance.
- Where it matters most. Base current errors scale as 1/β, so they're largest in PNP mirrors, whose β is often only 20 to 50.
Answer a 2% error alone, 0.02% with a beta helper, and about 0.02% as a Wilson mirror.
Worked example
With = 0.5 V and = 0.2 V, how low can the output of a standard cascode mirror go before it drops out of saturation, and a wide-swing cascode?
Show the solution
- Standard cascode. Its gate sits at , so its output needs
- Wide-swing cascode. It biases the cascode gate one up from ground, so its output needs only
- Compare. On a 1.2 V supply that difference is most of the swing.
Answer the standard cascode mirror's output can go down to 0.9 V, and the wide-swing cascode's to 0.4 V.
Check
A bipolar mirror has β = 100. What's its output-to-reference current ratio?
Check
A bipolar mirror with β = 50 gets a beta helper. What's its current ratio?
Check
A MOS mirror's input sits at 0.55 V and its output at 1.8 V, with λ = 0.15 V⁻¹. What's the current ratio?
Check
A standard NMOS cascode mirror has = 0.35 V and runs at = 0.1 V. What's the lowest output voltage at which it still works as a cascode?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A bipolar mirror's output transistor is 4 times the input's area, with β = 50. What's the output-to-reference ratio?
Check
A mirror runs at = 6 /V with = 1 mV and = 1%. What's its current mismatch?
Check
A cascode mirror uses transistors with = 0.5 mS and = 50 kΩ. Roughly what's its output resistance?
Write units the way you normally would: 1.5 MΩ, 1500 kΩ and 0.0015 GΩ are the same answer.
Check
An NMOS mirror has λ = 0.1 V⁻¹, and its output sits 0.3 V above its diode side.
(a)
About how far off is the copy?
(b)
And after cascoding with transistors of intrinsic gain 20?
Check
A bipolar mirror has transistors of current gain b.
Step 1
What fractional error does the simple mirror have, about?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
And with a beta helper?
Step 3
And a Wilson mirror, about?
Explain why
Why does a wide-swing cascode mirror work at a lower output voltage than a standard cascode?
In a standard cascode mirror the cascode transistor's gate is biased by stacking two diode-connected transistors, which puts it at two gate-source voltages, . The cascode device then holds the lower transistor's drain at , far more than the it needs to stay saturated, and the output must sit a further above that. The wide-swing version biases the cascode gate from a separate branch at only , so the lower transistor's drain sits at just , the edge of saturation. That saves a whole threshold voltage of headroom while keeping the cascode's high output resistance.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.