Skip to main content
DD-CAT IDE logoDD-CAT IDE

Article · Tech Insights

A Fairy-Tale Current Mirror: Three Generations of Gatekeepers on Mirror Lake, from a Single Transistor to the Wide-Swing Cascode (Formulas + Worked Examples + Applications)

Favorite

A current mirror really comes down to one sentence: two transistors share one gate voltage, and the current is "copied" in proportion to their width-to-length ratios. Using my one-page sketch as material, I use the fairy tale of Mirror Lake's reflection to explain the trade-offs of three generations: the simple mirror (Iout/Iref = (W/L)₂/(W/L)₁, Rout = ro2 = 100 kΩ, but a 1 V change in Vout makes the current drift 5%), the cascode (Rout = ro2·gm4·ro4 = 20 MΩ, but Vout,min = VTH+2VDSAT = 0.9 V), and the wide-swing cascode (VB pushed down to VTH+2VDSAT, Vout,min = 2VDSAT = 0.4 V). Then I work a complete 1.8 V / 200 µA / ±1% sizing example (how to derive the Rout requirement, and why mismatch pushes the area from 10 µm² to 900 µm²), the two main error sources—channel-length modulation and mismatch—the "stiff only at low frequency" trap, and five real-world scenarios: op-amp biasing, current-steering DACs, bandgaps, sensor constant current, and current sensing.

ShareWeiboXLinkedIn

Key points

The core principle of a current mirror is that two MOSFETs share one gate-source voltage, so the output-to-reference current ratio equals the ratio of their W/L values: Iout/Iref=(W/L)₂/(W/L)₁. A simple current mirror has an output resistance of only ro2 (about 100 kΩ for the 100 µA reference example), so a 1 V output swing causes about 5% current error; a cascode raises the output resistance to roughly gm·ro² (20 MΩ in the example) but lifts the minimum output voltage to VTH+2VDSAT=0.9 V; a wide-swing cascode uses an external bias to set VB=VTH+2VDSAT, lowering the minimum output voltage to 2VDSAT=0.4 V while keeping the same output resistance. In a 1.8 V, 200 µA, ±1% sizing example, the simple mirror fails for lacking 5× output resistance and the plain cascode fails for its 0.9 V minimum output voltage, so the wide-swing cascode is chosen; the real accuracy limit is mismatch—per Pelgrom's law, the device area must grow from 10 µm² to about 350 µm² to reach 3σ≤1%. Practical uses include op-amp active loads, current-steering DACs, bandgap references, sensor constant-current biasing, and current sensing.

Earlier articles were about "how to simplify a circuit" — Thévenin, Norton, Kirchhoff, Superposition, and one that explained the MOSFET as a water gate. This one goes one level deeper: how to create a current that is "exactly what you said it would be" in a circuit, and copy it out in proportion.

This operation is called a current mirror. The name sounds fancy, but it is actually the cheapest and most common building block in analog circuits; three generations of it can be drawn on a single page — I've put my own one-page sketch at the end of the article.

Story: The Copying Trick on Mirror Lake

The castle needed to build a water-distribution tower: a water meter (IrefI_{ref}) on the main channel, and three other channels supplying the water mill, the dye works, and the vegetable garden, each of which had to deliver no more and no less than exactly two, four, and eight times the main channel's flow.

Fox Ali's clumsy idea was to install a water meter on every channel and assign someone to watch and adjust the gate. Grandpa Copper-Nail shook his head: how many meters and how many people would that take?

He took Ali to the edge of Mirror Lake. The surface was as flat as a sheet of glass; the willows on the bank, the tip of the tower, and Ali himself were all reflected clearly in the water.

When you raise your left hand, the reflection raises its left hand; when you step forward, the reflection steps forward. Nobody taught it to do that. Because the water surface is flat, the reflection is guaranteed to be exactly the same.

Ali understood: as long as the two channels have the same gate opening and the same water path behind the gate, then however much water one channel takes in, the other channel will deliver the same amount. The gates are connected by a shared gate rod — no water flows through that rod; it only transmits the "opening".

In circuit terms:

  • Gate opening = gate-source voltage VGSV_{GS};
  • Gate rod = a shared gate trace (which hardly consumes any current);
  • Water flow = drain current IDI_D;
  • Water-path width = width-to-length ratio W/LW/L.

So the entire content of the current mirror is one sentence: share one VGSV_{GS}, and the current is copied over in proportion to W/LW/L.

But the lake surface is not always flat. When the wind blows (when the output voltage VoutV_{out} changes), the reflection distorts. The difference among the three generations of gatekeepers all comes down to "how to make the reflection resist the wind".

1. First, Write the "Copying" as a Formula

A MOSFET in saturation:

ID=12μnCoxWL(VGS−VTH)2(1+λVDS)I_D=\frac{1}{2}\mu_n C_{ox}\frac{W}{L}\left(V_{GS}-V_{TH}\right)^2\left(1+\lambda V_{DS}\right)

Let the overdrive be Vov=VGS−VTHV_{ov}=V_{GS}-V_{TH} and β=μnCoxW/L\beta=\mu_n C_{ox}W/L; the expression above becomes ID=12βVov2(1+λVDS)I_D=\tfrac12\beta V_{ov}^2(1+\lambda V_{DS}).

The transistor on the left (M1) must be connected to itself: its gate is tied to its own drain. In this way it "finds" a VGSV_{GS} by itself, such that the IrefI_{ref} flowing into it can pass through exactly:

Iref=12β1Vov12⟹Vov1=2Irefβ1,VGS=VTH+Vov1I_{ref}=\frac{1}{2}\beta_1 V_{ov1}^2 \quad\Longrightarrow\quad V_{ov1}=\sqrt{\frac{2I_{ref}}{\beta_1}},\qquad V_{GS}=V_{TH}+V_{ov1}

This step is the foundation of the entire current mirror: the reference current needs no "standard" at all; it sets the gate voltage by itself. This also explains why M1 must be diode-connected — without being given a VGSV_{GS}, it doesn't know how far to open.

The transistor on the right (M2) has the same gate voltage and its source is likewise grounded, so VGS2=VGS1V_{GS2}=V_{GS1}; dividing the two equations:

IoutIref=(W/L)2(W/L)1⋅1+λVDS21+λVDS1\frac{I_{out}}{I_{ref}}=\frac{(W/L)_2}{(W/L)_1}\cdot\frac{1+\lambda V_{DS2}}{1+\lambda V_{DS1}}

If λ→0\lambda\to 0 (the transistor is "ideal"), only that clean ratio remains:

 IoutIref=(W/L)2(W/L)1 \boxed{\ \frac{I_{out}}{I_{ref}}=\frac{(W/L)_2}{(W/L)_1}\ }

Figure 1: Simple current mirror, Iref is fed through a current source into diode-connected M1, M1's gate is connected to M2's gate, M2's drain connects to out and outputs Iout; the right side labels the current ratio formula and Rout = ro2

Figure 1: M1 connects to itself and translates IrefI_{ref} into VGSV_{GS}; M2 copies this VGSV_{GS} and outputs IoutI_{out}. The ratio depends only on W/LW/L, and all the error lives in those two 1+λVDS1+\lambda V_{DS} terms.

First calculation: some concrete numbers

Take a set of "textbook process" parameters; all the worked examples below use them:

Parameter Value Notes
μnCox\mu_n C_{ox} 500 μA/V2500\ \mu\mathrm{A/V^2} Mobility × oxide capacitance
VTHV_{TH} 0.5 V0.5\ \mathrm{V} Threshold voltage
λ\lambda 0.05 V−10.05\ \mathrm{V^{-1}} Channel-length modulation coefficient, VA=1/λ=20 VV_A=1/\lambda=20\ \mathrm{V}
IrefI_{ref} 100 μA100\ \mu\mathrm{A} Reference current
(W/L)1(W/L)_1 10/110/1 Unit device
(W/L)2(W/L)_2 20/120/1 Two unit devices in parallel

First calculate M1's overdrive and gate voltage:

Vov1=2×100 μA500 μA/V2×10=0.2 V,VGS=0.5+0.2=0.7 VV_{ov1}=\sqrt{\frac{2\times100\ \mu\mathrm{A}}{500\ \mu\mathrm{A/V^2}\times 10}}=0.2\ \mathrm{V},\qquad V_{GS}=0.5+0.2=0.7\ \mathrm{V}

Ideally Iout=2×100 μA=200 μAI_{out}=2\times100\ \mu\mathrm{A}=200\ \mu\mathrm{A}. That is the "two-times mirror".

Along the way we get two quantities that will be used repeatedly later:

gm2=2IoutVov=2 mA/V,ro2=VAIout=20 V200 μA=100 kΩg_{m2}=\frac{2I_{out}}{V_{ov}}=2\ \mathrm{mA/V},\qquad r_{o2}=\frac{V_A}{I_{out}}=\frac{20\ \mathrm{V}}{200\ \mu\mathrm{A}}=100\ \mathrm{k\Omega}

ror_o is the "leak gap" of this branch: an ideal current source has ro=∞r_o=\infty; the real one only has 100 kΩ100\ \mathrm{k\Omega}.

Second calculation: exactly how accurate is this "two times"

M1's drain voltage is its own VGS=0.7 VV_{GS}=0.7\ \mathrm{V}, while the output is held at 1.5 V1.5\ \mathrm{V} by something else, so:

IoutIref=2010⋅1+0.05×1.51+0.05×0.7=2×1.0751.035=2×1.0386\frac{I_{out}}{I_{ref}}=\frac{20}{10}\cdot\frac{1+0.05\times1.5}{1+0.05\times0.7}=2\times\frac{1.075}{1.035}=2\times1.0386

Iout=207.7 μA(3.9% more than the ideal 200 μA)I_{out}=207.7\ \mu\mathrm{A}\quad(\text{3.9\% more than the ideal }200\ \mu\mathrm{A})

This is not "built wrong"; it is "copied wrong" — because the two transistors have different VDSV_{DS}, channel-length modulation makes their water paths slightly different in width. This is the ceiling of the simple current mirror.

2. Why the Reflection Distorts: Channel-Length Modulation Is a "Leak Gap"

The physical picture is straightforward: the higher the drain voltage, the more the channel pinch-off point moves toward the source, the effective channel length shortens, the equivalent resistance decreases, and the current increases. In terms of λ\lambda, it is exactly that 1+λVDS1+\lambda V_{DS}.

For a current mirror, the most critical quantity is the output resistance, that is, "if the output voltage changes by 1 V, how much does the current change":

ro=∂VDS∂ID=1λID=VAIDr_o=\frac{\partial V_{DS}}{\partial I_D}=\frac{1}{\lambda I_D}=\frac{V_A}{I_D}

ΔIout=ΔVoutro2⟹ΔIoutIout=λ ΔVout\Delta I_{out}=\frac{\Delta V_{out}}{r_{o2}}\quad\Longrightarrow\quad\frac{\Delta I_{out}}{I_{out}}=\lambda\,\Delta V_{out}

Plugging in numbers: the output swings from 0.7 V to 1.7 V (ΔV=1 V\Delta V=1\ \mathrm{V}):

ΔIout=1 V100 kΩ=10 μA⟹10200=5%\Delta I_{out}=\frac{1\ \mathrm{V}}{100\ \mathrm{k\Omega}}=10\ \mu\mathrm{A}\quad\Longrightarrow\quad\frac{10}{200}=5\%

A 1 V swing costs 5% current error. For a current source biasing a DAC or a sensor, this is already unacceptable.

Can we save it by "making the transistor longer"? Yes — λ\lambda roughly decreases as 1/L1/L, and ror_o grows accordingly. But a large LL brings bigger area, parasitic capacitance, and higher minimum operating voltage — and a single transistor's ror_o will always remain on the order of one ror_o; to gain another order of magnitude, you have to change the structure.

3. Hang a Curtain in front of the Mirror: Cascode

Grandpa Copper-Nail's approach is simple: hang a curtain in front of the mirror so the wind only hits the curtain.

Specifically: stack another transistor M3 on top of M1 (also connected to itself), stack M4 on top of M2, and connect M4's gate to M3's gate. M3 and M4 are that curtain, known as cascode.

Figure 2: Cascode current mirror, M3/M1 and M4/M2 are stacked in series, M3 and M4's gates are connected, and the output resistance is raised to ro2·gm4·ro4

Figure 2: M4's source is M2's drain. M4 is in "common-gate" configuration; its source voltage is locked by the gate voltage and barely moves with VoutV_{out} — M2's VDSV_{DS} is thus pinned.

Why the curtain works

M4 operates in the active region; its source voltage is about VB−VGS4V_{B}-V_{GS4}. As long as VoutV_{out} is still high enough, M4 holds this voltage steady. Almost all of the VoutV_{out} change falls across M4's drain-source, not on M2. Since M2's VDSV_{DS} doesn't move, IoutI_{out} naturally doesn't move either.

Seen from a small-signal perspective it is also clean: the resistance looking upward from M2's drain is multiplied by about (1+gm4ro4)(1+g_{m4}r_{o4}) by the common-gate stage:

Rout=ro2+ro4+gm4ro4ro2≈ro2 gm4 ro4R_{out}=r_{o2}+r_{o4}+g_{m4}r_{o4}r_{o2}\approx r_{o2}\,g_{m4}\,r_{o4}

Plugging in numbers (gm4=2 mA/Vg_{m4}=2\ \mathrm{mA/V}, ro4=100 kΩr_{o4}=100\ \mathrm{k\Omega}):

Rout=2 mS×100 kΩ×100 kΩ=20 MΩR_{out}=2\ \mathrm{mS}\times100\ \mathrm{k\Omega}\times100\ \mathrm{k\Omega}=20\ \mathrm{M\Omega}

From 100 kΩ to 20 MΩ, a full 200 times. For the same 1 V swing, the current error drops from 10 μA10\ \mu\mathrm{A} to:

ΔIout=1 V20 MΩ=0.05 μA(0.025% of 200 μA)\Delta I_{out}=\frac{1\ \mathrm{V}}{20\ \mathrm{M\Omega}}=0.05\ \mu\mathrm{A}\quad(\text{0.025\% of }200\ \mu\mathrm{A})

By the way, note a general conclusion: gmrog_m r_o is the transistor's intrinsic gain (here 2 mS×100 kΩ=2002\ \mathrm{mS}\times100\ \mathrm{k\Omega}=200), and the cascode raises the output resistance by "one intrinsic gain". This is the same reason a cascode can boost amplifier gain.

The curtain's price: headroom

The curtain is not free. M3 is connected to itself, so its gate is pushed to 2VGS2V_{GS}; for M4 to stay in saturation, its drain (which is the output) must satisfy

Vout,min=VTH+2VDSAT=0.5+2×0.2=0.9 VV_{out,min}=V_{TH}+2V_{DSAT}=0.5+2\times0.2=0.9\ \mathrm{V}

That is, the output voltage must be at least 0.9 V, otherwise M4 falls into the linear region, the curtain fails, RoutR_{out} collapses in an instant from 20 MΩ to a few kΩ, and the current runs away.

In a 1.8 V supply, 0.9 V means only 0.9 V is left for the signal; in a 1.2 V supply, only 0.3 V remains — basically unusable. This is why in many low-voltage circuits, cascode is actually "worse" than the simple mirror.

4. Hang the Curtain One Notch Lower: Wide-Swing Cascode

The contradiction is clear: the curtain stabilizes the current, but the curtain itself demands a share (it eats headroom).

Where is it eaten? In M3's gate being pushed to 2VGS2V_{GS}: 2×0.7=1.4 V2\times0.7=1.4\ \mathrm{V}, while M4's source only needs VDSAT=0.2 VV_{DSAT}=0.2\ \mathrm{V}. A large part of that 1.4 V1.4\ \mathrm{V} on the gate is given away for nothing.

Grandpa Copper-Nail moved the curtain's hanging point one notch lower: don't let M3 connect to itself; instead, give it a bias voltage that is "just enough".

VB=VTH+2VDSAT=0.5+0.4=0.9 VV_B=V_{TH}+2V_{DSAT}=0.5+0.4=0.9\ \mathrm{V}

In this way M4's gate is only 0.9 V, and its source (M2's drain) only needs 0.2 V, so:

Vout,min=VB−VTH=2VDSAT=0.4 VV_{out,min}=V_B-V_{TH}=2V_{DSAT}=0.4\ \mathrm{V}

The same curtain, the same 20 MΩ output resistance, but the minimum output voltage drops from 0.9 V to 0.4 V — gaining a full VTHV_{TH} of headroom for free. This is the "wide-swing cascode".

Figure 3: Wide-swing cascode current mirror, M3 and M4's gates connect to an external VB bias instead of 2VGS, and the minimum output voltage drops to 2VDSAT

Figure 3: M3's gate is no longer connected to its own drain; instead, an extra bias branch supplies VBV_B. The cost is exactly that extra branch — and all the trouble it brings.

How VB=0.9 VV_B=0.9\ \mathrm{V} Is Made

A clever resistor-free method: take a transistor whose W/L is only 1/4 of the cascode transistor's, and run the same current through it.

Vov=2IμnCoxW/L ∝ 1W/LV_{ov}=\sqrt{\frac{2I}{\mu_n C_{ox}W/L}}\ \propto\ \frac{1}{\sqrt{W/L}}

With W/L scaled down to 1/4, the overdrive exactly doubles: 2Vov=0.4 V2V_{ov}=0.4\ \mathrm{V}, so the gate voltage of this diode-connected transistor is

VGS=VTH+2Vov=0.9 V=VBV_{GS}=V_{TH}+2V_{ov}=0.9\ \mathrm{V}=V_B

A small current branch plus a "deliberately narrow" transistor produces VBV_B. (In practice, engineers also use a "VGSV_{GS} with a resistor in series" or a source-follower version; in essence they all create the VTH+2VDSATV_{TH}+2V_{DSAT} level.)

The Cost List (This Section Matters More Than the Formulas)

  1. One extra bias branch: a bit more current, a bit more noise, a bit more area, and one more trace that must be matched;
  2. VBV_B must track process corner and temperature: if VBV_B is too high, the headroom saved is wasted; if too low, M4 enters the linear region and RoutR_{out} collapses. So that 1/4-width transistor must be the same type, same orientation, and placed closely to the cascode transistors;
  3. The bottom transistor of the reference branch must be handled: in my sketch I drew M1 as connected to itself (schematic drawing). In a rigorous implementation, the bottom transistor of the reference branch should also have its VDSV_{DS} held near VDSATV_{DSAT}; otherwise it pushes its own VDSV_{DS} up to VGSV_{GS} and gives back half of the saved headroom — a common practice is to also route VG1V_{G1} separately from a bias branch.

5. Comparison Table of the Three Generations

Simple Cascode Wide-swing cascode
Transistor count 2 4 4 + bias branch
Mirror ratio (W/L)2/(W/L)1(W/L)_2/(W/L)_1 Same Same
Output resistance RoutR_{out} ro2=100 kΩr_{o2}=100\ \mathrm{k\Omega} gmro2=20 MΩg_{m}r_o^2=20\ \mathrm{M\Omega} 20 MΩ20\ \mathrm{M\Omega}
Vout,minV_{out,min} VDSAT=0.2 VV_{DSAT}=0.2\ \mathrm{V} VTH+2VDSAT=0.9 VV_{TH}+2V_{DSAT}=0.9\ \mathrm{V} 2VDSAT=0.4 V2V_{DSAT}=0.4\ \mathrm{V}
Usable headroom at 1.8 V 1.6 V 0.9 V 1.4 V
Current error for a 1 V swing 10 µA (5%) 0.05 µA (0.025%) 0.05 µA (0.025%)
Extra requirements None None Bias branch + matching
Good for Large headroom, moderate accuracy High-voltage margin, high resistance Low voltage, both stable and wide
Typical uses Digital circuit biasing, rough current limiting High-voltage amplifier loads Low-voltage amplifiers, DACs, sensors

Figure 4: Bar chart comparing the minimum output voltages of the three current-mirror generations — simple 0.2 V, cascode 0.9 V, wide-swing 0.4 V — showing the remaining signal headroom available under a 1.8 V supply

Figure 4: The dark color is the voltage that "must be given up"; the light color is the headroom available for the signal. The cascode's 20 MΩ costs 0.7 V of headroom — in a 1.8 V supply, that trade starts to become unfavorable.

6. Trial: 1.8 V, 200 µA, ±1% Error

Now let's put the above together and make a real choice. Requirements:

  • Supply 1.8 V, output current 200 μA200\ \mu\mathrm{A} (obtained by mirroring Iref=100 μAI_{ref}=100\ \mu\mathrm{A} two times);
  • The output voltage varies between 0.5 V and 1.5 V (determined by the following stage);
  • Current error over the whole range ≤ 1% (i.e., ±2 μA\pm2\ \mu\mathrm{A}).

Step 1: Translate "error" into "output resistance"

ΔIout≤2 μA (for ΔV=1 V) ⟹ Rout≥1 V2 μA=500 kΩ\Delta I_{out}\le 2\ \mu\mathrm{A}\ \text{(for }\Delta V=1\ \mathrm{V}\text{)}\ \Longrightarrow\ R_{out}\ge\frac{1\ \mathrm{V}}{2\ \mu\mathrm{A}}=500\ \mathrm{k\Omega}

Compare the three generations: the simple mirror gives 100 kΩ (short by 5×, disqualified); both cascode and wide-swing give 20 MΩ (40× margin, qualified).

Step 2: Translate "headroom" into "minimum output voltage"

Vout drops as low as 0.5 V ⟹ Vout,min≤0.5 VV_{out}\ \text{drops as low as}\ 0.5\ \mathrm{V}\ \Longrightarrow\ V_{out,min}\le0.5\ \mathrm{V}

Cascode needs 0.9 V (disqualified — at 0.5 V, M4 has already fallen into the linear region); wide-swing needs 0.4 V (qualified).

Conclusion: choose the wide-swing cascode. Note that this conclusion is not "wide-swing is more advanced" but "the 1.8 V supply cannot fit the 0.9 V step". If this circuit ran on 3.3 V and the output went no lower than 1.5 V, a plain cascode would do, and you'd save an entire bias branch.

Step 3: Calculate Device Sizes (with 0.2 V Overdrive)

I=12μnCoxWLVov2 ⟹ WL=2×200 μA500 μA/V2×0.04=20I=\frac{1}{2}\mu_n C_{ox}\frac{W}{L}V_{ov}^2\ \Longrightarrow\ \frac{W}{L}=\frac{2\times200\ \mu\mathrm{A}}{500\ \mu\mathrm{A/V^2}\times0.04}=20

That is, (W/L)2=20/1(W/L)_2=20/1 and (W/L)1=10/1(W/L)_1=10/1; gm=2I/Vov=2 mA/Vg_{m}=2I/V_{ov}=2\ \mathrm{mA/V}, ro=VA/I=100 kΩr_o=V_A/I=100\ \mathrm{k\Omega}, Rout≈gmro2=20 MΩR_{out}\approx g_m r_o^2=20\ \mathrm{M\Omega} ✓.

Step 4: What Really Stops You Is Not λ, but Mismatch

Many people stop here — but all the calculations above assume "the two transistors are identical". In reality they are not; the threshold voltage has random deviation, described by Pelgrom's law:

σ(ΔVTH)=AVTW⋅L,AVT≈5 mV⋅μm\sigma(\Delta V_{TH})=\frac{A_{VT}}{\sqrt{W\cdot L}},\qquad A_{VT}\approx5\ \mathrm{mV\cdot\mu m}

And this deviation becomes current error without attenuation:

σ(ΔI)I=gmI σ(ΔVTH)=2Vov σ(ΔVTH)\frac{\sigma(\Delta I)}{I}=\frac{g_m}{I}\,\sigma(\Delta V_{TH})=\frac{2}{V_{ov}}\,\sigma(\Delta V_{TH})

Note the factor 2Vov\frac{2}{V_{ov}}: the smaller the overdrive, the more deadly the mismatch. At Vov=0.2 VV_{ov}=0.2\ \mathrm{V} it equals 10 V−110\ \mathrm{V^{-1}} — that is, a 1 mV threshold deviation produces a 1% current deviation.

Let's verify with the first step's mirror (area 10 μm210\ \mu\mathrm{m}^2):

σ(ΔVTH)=510=1.58 mV ⟹ σ ⁣(ΔII)=1.58% (1σ)\sigma(\Delta V_{TH})=\frac{5}{\sqrt{10}}=1.58\ \mathrm{mV}\ \Longrightarrow\ \sigma\!\left(\frac{\Delta I}{I}\right)=1.58\%\ (1\sigma)

3σ3\sigma is 4.7% — far from ±1%. To get 3σ ≤ 1%, we need:

σ(ΔVTH)≤1%/310=0.33 mV ⟹ W⋅L≥(50.33)2≈230 μm2\sigma(\Delta V_{TH})\le\frac{1\%/3}{10}=0.33\ \mathrm{mV}\ \Longrightarrow\ W\cdot L\ge\left(\frac{5}{0.33}\right)^2\approx230\ \mu\mathrm{m}^2

On top of that, the 1:2 mirror using three unit devices in parallel (two in M2, one in M1) brings a factor of 1+1/2≈1.22\sqrt{1+1/2}\approx1.22 amplification, so the area needs to be about

W⋅L≈350 μm2 ⟹ L≈6 μm, W≈60 μmW\cdot L\approx 350\ \mu\mathrm{m}^2\ \Longrightarrow\ L\approx6\ \mu\mathrm{m},\ W\approx60\ \mu\mathrm{m}

The transistor goes from 10 µm × 1 µm to 60 µm × 6 µm — a 36× increase in area. And this is the result of "giving the entire budget to mismatch"; if IrefI_{ref} itself only achieves 1%, the error budget must be split and the area grows even more — area grows inversely with the square, and the more aggressive the accuracy target, the more exponential the price.

Three Teaching Points from This Section

  1. Choose the structure by headroom: Vout,minV_{out,min} is a hard threshold; if it doesn't fit, it doesn't fit;
  2. Size by accuracy: λ sets the ceiling of the structure, while mismatch decides whether you can ultimately meet the spec;
  3. Ratio mirrors should be built from "unit devices": 1:2 means two identical devices in parallel, not drawing one device twice as wide — the latter inevitably introduces systematic offset from orientation, stress, and gradient in layout.

7. The Two Main Sources of Error in Current Mirrors (Everything Else Is a Variant of These)

1. Systematic error: channel-length modulation (unequal VDSV_{DS})

The error caused by λ\lambda can be calculated, and it can be compensated:

  • Increase LL (λ∝1/L\lambda\propto1/L, the most direct, but takes area);
  • Use cascode (pin VDSV_{DS}; the error becomes on the order of 1/(gmro)1/(g_m r_o));
  • Or use feedback to force the two transistors' VDSV_{DS} to be equal (the most common trick in current sensing).

2. Random error: mismatch

Mismatch cannot be eliminated; it can only be "traded for area": σ∝1/WL\sigma\propto1/\sqrt{WL}. Engineering practices:

  • Unit device arrays: build all transistors from the same unit cell; 1:N is simply N in parallel;
  • Same orientation, same environment: keep the channel direction of all transistors identical to avoid stress/mobility anisotropy;
  • Common-centroid layout: interleave (ABBA / 2-D interleaving) so that linear process gradients cancel each other;
  • Add dummies: place a non-functional identical transistor at each end so the edge devices have the same neighbor environment;
  • Place them close together: temperature gradient, well potential, and STI stress all decay with distance;
  • Don't cross wells/regions: don't put one transistor in an isolation region and another on the substrate.

An Often-Overlooked Trap: The Current Mirror Is Only "Stiff" at Low Frequencies

20 MΩ looks strong, but there is also capacitance at the output. 20 MΩ20\ \mathrm{M\Omega} with 2 pF2\ \mathrm{pF}:

f−3dB=12πRoutCL=12π×20 MΩ×2 pF≈4 kHzf_{-3dB}=\frac{1}{2\pi R_{out}C_L}=\frac{1}{2\pi\times20\ \mathrm{M\Omega}\times2\ \mathrm{pF}}\approx4\ \mathrm{kHz}

Above 4 kHz, this "20 MΩ constant current source" starts to soften, and by a few hundred kHz it mostly behaves like a few kΩ. So the high-frequency "stiffness" of a current source never comes from the cascode, but from loop bandwidth / decoupling / local feedback. Don't use DC formulas to explain switching-transient behavior.

8. Five Real-World Scenarios

1. Op-amp / OTA biasing and active loads

Every differential pair needs a tail current source (which sets gmg_m and common-mode rejection), and the active load is also a current source. With a cascode load, the gain goes from

Av=gm(ro2∥ro4)≈1 mS×50 kΩ=50 (34 dB)A_v=g_m(r_{o2}\parallel r_{o4})\approx1\ \mathrm{mS}\times50\ \mathrm{k\Omega}=50\ (34\ \mathrm{dB})

to gm×20 MΩ=20000 (86 dB)g_m\times20\ \mathrm{M\Omega}=20000\ (86\ \mathrm{dB}). This is the most classic appearance of the cascode in analog circuits.

2. Current-steering DAC

Each bit is a switch plus a unit current source; the output resistance of the current source directly determines the INL: IoutI_{out} changes with the output node voltage → different codes give different output impedances → nonlinearity. That's why the unit current sources of high-speed DACs are almost universally cascode (or regulated cascode), with matching ensured by "thermometer decoding + unit device arrays".

A rough estimate for a 10-bit requirement: the LSB relative accuracy is about 0.1%0.1\%. Working backward with the formula above,

W⋅L≥(5 mV⋅μm0.1%/10)2≈2500 μm2W\cdot L\ge\left(\frac{5\ \mathrm{mV\cdot\mu m}}{0.1\%/10}\right)^2\approx2500\ \mu\mathrm{m}^2

Each unit current source is 2500 µm², and a 10-bit DAC has 1023 of them — this is why high-resolution DACs use segmentation (thermometer coding for the upper bits) and calibration rather than brute-force stacking of area.

3. Bandgap reference / PTAT biasing

The ΔVBE/R\Delta V_{BE}/R PTAT current in a bandgap needs to be copied by current mirrors to several branches (core, output, buffer). The biggest concern here is startup: a self-biased current mirror has a "zero-current" degenerate solution (all transistors off, the circuit "quietly dies"), so a startup circuit must be added to kick it out of that state.

4. Sensor constant-current biasing

PT100/PT1000 are excited with 1 mA constant current (to limit self-heating), and the same applies to photodiodes, strain bridges, and Hall sensors. The value of a constant-current source is that "lead resistance does not enter the result": with no voltage-drop variation across the series lead resistance, the reading is unaffected by lead length. Here the higher the output resistance the better, and a 1 kΩ lead resistance is completely negligible against 20 MΩ.

5. Current sensing / 1:N mirroring

In load switches and motor drivers, a 1:1000 mirror transistor "peeks at" the current of the power transistor. There is a classic mistake here: the power transistor's VDSV_{DS} is only 50 mV (on-state drop), while the mirror transistor's VDSV_{DS} is 300 mV — a VDSV_{DS} difference of 250 mV. λ alone introduces

1+0.05×0.31+0.05×0.05−1≈1.2%\frac{1+0.05\times0.3}{1+0.05\times0.05}-1\approx1.2\%

of systematic error, larger than the accuracy you want to measure. The industrial practice is to use an op-amp to force the two transistors' drain voltages equal (sense FET), or simply use a cascode to pin both ends to the same potential.

9. Seven Pitfalls Checklist

  1. Only memorizing the ratio formula while ignoring λ\lambda: unequal VDSV_{DS} is a source of hundreds of mV of error.
  2. Thinking cascode raises the accuracy ceiling: it only raises RoutR_{out}; mismatch is not improved at all (gmg_m is unchanged, and the VTHV_{TH} deviation remains).
  3. Forgetting the cascode's "high-frequency failure": the output pole may be only a few kHz.
  4. Forcing cascode on a low supply: once Vout,minV_{out,min} is exceeded, RoutR_{out} collapses from MΩ to kΩ — worse than the simple mirror.
  5. Ignoring the body effect: in an NMOS cascode, the top transistor's source is not grounded, so VTHV_{TH} is raised and VBV_B must be recalculated; either use a deep n-well or switch to a PMOS version.
  6. Forgetting the startup circuit: the zero-current degenerate point of a self-biased current mirror makes the whole chip "quietly not work".
  7. Noise is copied along too: the mirror copies the reference branch's noise proportionally, and the cascode does not make it quieter. For a branch with 100 μA100\ \mu\mathrm{A} and gm=1 mSg_m=1\ \mathrm{mS}, the thermal-noise current density is about

4kTγgm=4×1.66×10−20×23×10−3≈3.3 pA/Hz\sqrt{4kT\gamma g_m}=\sqrt{4\times1.66\times10^{-20}\times\tfrac{2}{3}\times10^{-3}}\approx3.3\ \mathrm{pA/\sqrt{Hz}}

which over a 1 MHz bandwidth is about 3.3 nArms3.3\ \mathrm{nA_{rms}} — for measurements at nA-level accuracy (such as fA-level current measurement), this number is fatal.

10. One-Line Wrap-Up

A current mirror = a shared gate voltage. All the remaining effort goes into handling the fact that "the two transistors are actually not identical":

  • Different VDSV_{DS} → pin it with cascode (cost: headroom);
  • Different VBV_B → use wide-swing bias (cost: one branch);
  • Different VTHV_{TH} → trade for area and layout (cost: bigger and slower);
  • Different frequencies → fill the gap with feedback and decoupling (cost: design complexity).

What's truly hard is never drawing those two transistors, but knowing at which step to concede: if the 0.9 V step doesn't fit in 1.8 V, then honestly draw one more bias branch.


Appendix: My Sketch

Below is the sketch I drew at the time, three diagrams from left to right: simple, cascode, and wide-swing cascode. The formulas and pros/cons are jotted down casually and can be compared with the derivations in the main text.

Sketch: Three generations of current mirrors, with the current-ratio formulas, output resistances, and the pros and cons of each labeled

Sketch: simple (Rout=ro2R_{out}=r_{o2}), cascode (Rout=ro2gm4ro4R_{out}=r_{o2}g_{m4}r_{o4}), wide-swing (VBV_B supplied by an extra branch, Vout,min>VB−VTHV_{out,min}>V_B-V_{TH}).

If you only want to remember one sentence: "Cascode buys output resistance and pays with headroom; wide-swing simply cuts one VTHV_{TH} off that bill."

Get new articles by email

Enter your email — we notify you about new articles and releases (unsubscribe anytime).