Devices, and the amplitude they stop being linear at

The copy, and its two errors

Every account of a current mirror leads with the base currents: two are stolen from the reference, so the copy is beta over beta plus two, which is 1.32 per cent at beta of 150 and is what a third transistor is spent on. The Early effect is a footnote and is nine times larger over any useful swing — 11.2 per cent between one volt and ten. Moving beta from 20 to 1000 changes the first by a factor of forty-five and the second by nothing at all.

Assumes: A bias point is a solution, not a choice · How small is small signal

A current mirror is two matched transistors with their bases tied and one of them diode-connected. The reference branch sets a current; the other transistor, seeing the same base-emitter voltage, carries the same current. It is the most used circuit in analogue integrated design and it has one error everybody names and a second error that is larger.

The one everybody names is the base current. Both transistors take theirs from the reference branch, so the copy is β/(β+2)\beta/(\beta+2) of the reference — 1.32% low at β=150\beta = 150 — and the standard repair is a third transistor supplying those base currents from somewhere else.

The one that is usually a footnote is the Early effect. A transistor’s collector current rises with its collector voltage, so the copy is a function of what is connected to it, and over any swing worth having it moves by more than ten per cent.

A copy out by 1.3% for the reason everybody names, and 11% for the one nobody doescomputed by solving, not by drawing at 60 output voltages, with the Early conductance iterated to self-consistency against the current that sets it. Two base currents are stolen from the reference, so the copy is β/(β+2) of it — 1.32% low at β = 150 — and that is exact at exactly one output voltage, 0.7043 V, which is 9.39 mV under the reference's own base-emitter voltage of 0.7137 V — a displacement that goes as 1/(β+2), so that the product of the two is 1.427 V at every β the slider offers. Everywhere else the Early effect is larger: the current rises at 1.21% per volt, so moving the output from one volt to ten changes it by 11.2%. One per cent holds over 0.810 V, which is the Early voltage over a hundred and contains neither the current nor any resistor. The slider is β: it moves the first error by fifty times and the second by nothing at all.11.101.205101520voltage at the output (volts)output current (milliamperes)the reference itselfβ/(β+2) of it — the textbook copyexact at 0.704 V — the one output that copies1% by 1.81 Vβ150Early voltage80 Vreference0.99853 mAβ/(β+2) error1.32%slope1.21% per voltover 1 V to 10 V11.2%1% holds over0.810 Vsolved, then checked — two errors, one copy1% over 0.810 V, whatever the current
Fig. 1 The output current of a mirror against the voltage at its output. The upper flat line is the reference; the lower one is β/(β+2) of it, which is the textbook copy. The curve is the solve. It crosses the textbook value at one output voltage and rises through it at 1.21% per volt. The slider is β.

The solve, and the loop inside it

The base-current error comes straight out of Newton’s method on the netlist: two exponential devices, a reference resistor, a supply, and a source at the output holding it at a stated voltage so that the current through it can be read as a branch quantity.

The Early effect cannot come out of the same solve, and the reason is structural. This site’s nonlinear element is controlled by exactly one pair of nodes, and a transistor’s collector current is controlled by its base-emitter voltage — there is no second controlling pair for the collector-emitter voltage to use.

So it enters as what it is: a conductance from collector to emitter of value IC/VAI_C/V_A. That value is not known until the circuit is solved, and the solution depends on it, so the pair is iterated. Solve; read the collector currents; restamp the two conductances; solve again. It converges in eight passes to the point where the last one moves the output current by 2.7×10142.7\times10^{-14}, because the correction is a part in a few hundred and each pass reduces the residue by that factor.

The figure asserts the convergence rather than assuming it — the iteration count and the last movement are both checked — and it asserts the operating point’s own residual, which is Kirchhoff’s current law rebuilt from the exponentials at the converged voltages and comes out at 2.1×10152.1\times10^{-15}.

A diode fed from 12 V through 1.0 kΩ. computed by solving, not by drawing. The operating point is where the exponential meets the load line: 0.717437 V and 11.2826 mA, reached in 11 damped Newton steps from a cold start. The one-line Newton on Vs = v + R·i(v), which touches no matrix, gives 0.717437 V. The "drop" is not a constant: it moves 59.53 mV per decade of current, measured between two solved operating points.
Fig. 2 What an operating point is on this site, and the machinery every number here rests on. A transcendental equation and a linear network agreeing, found by linearising the whole netlist about a guess and solving the linear result — which is what a simulator does and the only honest way to get a bias point out of a netlist.

Two errors, and only one of them is a design choice

With β=150\beta = 150, VA=80V_A = 80 V, a 9.3 kΩ reference resistor and ten volts of supply, the reference is 0.99853 mA.

output voltage output current against the reference
0.2 V 0.9792 mA −1.93%
0.704 V 0.9854 mA −1.32%
1 V 0.9890 mA −0.95%
5 V 1.0378 mA +3.94%
10 V 1.0989 mA +10.05%
20 V 1.2210 mA +22.28%

The middle column is the mirror. Two of the numbers in the right-hand column are worth separating.

The base-current error is 1.32% and it is constant. It is 2/(β+2)2/(\beta+2), it does not depend on the resistors, the supply or the output voltage, and it is what the third transistor buys back.

The Early error over a one-volt-to-ten-volt output swing is 11.2%. That is nine times the first one, it is what nobody spends a transistor on, and it is the error a circuit actually sees, because a current source that never moves its output voltage is not doing anything.

What a 1% mismatched pair leaves behind, across 150 K. computed by solving, not by drawing. A saturation-current mismatch of 1.0% appears as an input offset of Vₜ·ln(m) — 0.2572 mV at 300 K — which is proportional to absolute temperature and therefore drifts at 0.8575 µV/K, exactly the offset divided by the temperature. That is 3333 ppm per kelvin at every mismatch on the slider, because the ratio is 1/T and contains nothing about the device. One junction on its own drifts 1.828 mV/K, 2132 times harder.
Fig. 3 The error this essay leaves out, in the field’s own figure. Two devices that are not identical show a saturation-current mismatch as an offset of the thermal voltage times its logarithm — which for a one per cent mismatch is 259 µV, and turns into a current error of one per cent in a mirror.

The one output voltage at which the copy is exact

The two transistors have the same base-emitter voltage by construction. They do not have the same collector-emitter voltage: the reference one is diode-connected, so its collector sits at VBEV_{BE}, while the output one sits at whatever is connected to it. The Early correction is 1+VCE/VA1 + V_{CE}/V_A for each, so the two cancel exactly when the output is at the reference’s own VBEV_{BE}.

Bisecting the solve for where the ratio equals β/(β+2)\beta/(\beta+2) gives 0.7043 V, against a measured VBEV_{BE} of 0.7137 V. Nine millivolts under, not at.

The residue is physical rather than sloppy. The reference current is read through the reference resistor, which carries both base currents, so it moves slightly as the output moves — and the crossing shifts by the amount that costs. Which suggests the displacement should go as one over β, and it does:

β crossing VBEV_{BE} displacement × (β+2)
20 0.64692 V 0.71161 V 64.69 mV 1.4232 V
50 0.68562 V 0.71305 V 27.42 mV 1.4258 V
100 0.69955 V 0.71354 V 13.99 mV 1.4270 V
150 0.70432 V 0.71371 V 9.391 mV 1.4274 V
300 0.70915 V 0.71388 V 4.728 mV 1.4278 V
1000 0.71257 V 0.71400 V 1.425 mV 1.4280 V

The last column is constant to four parts in a thousand across a fifty-fold range of β. That was not designed in and the figure asserts it, because a constant that falls out of a solve across a slider is exactly the kind of claim this site exists to make and exactly the kind that is invisible if only one frame is ever drawn.

A copy out by 0.20% for the reason everybody names, and 43% for the one nobody does. computed by solving, not by drawing at 60 output voltages, with the Early conductance iterated to self-consistency against the current that sets it. Two base currents are stolen from the reference, so the copy is β/(β+2) of it — 0.200% low at β = 1000 — and that is exact at exactly one output voltage, 0.7119 V, which is 1.42 mV under the reference's own base-emitter voltage of 0.7133 V — a displacement that goes as 1/(β+2), so that the product of the two is 1.427 V at every β the slider offers. Everywhere else the Early effect is larger: the current rises at 4.37% per volt, so moving the output from one volt to ten changes it by 43.4%. One per cent holds over 0.210 V, which is the Early voltage over a hundred and contains neither the current nor any resistor. The slider is β: it moves the first error by fifty times and the second by nothing at all.
Fig. 4 The same mirror with an Early voltage of 20 V rather than 80. The base-current error is unchanged in kind and the slope has risen from 1.21% per volt to 4.37% — so the output voltage over which the copy is inside one per cent falls from 0.810 V to 0.210 V. The two errors have separate causes and separate parameters, and only one of them is fixed by a better transistor.

The compliance, which contains neither the current nor a resistor

The useful question is not how wrong the mirror is but over what range it is right, and that has a clean answer.

I(V)=I0(1+V/VA)I(V) = I_0(1 + V/V_A), so holding the current to a fraction ϵ\epsilon of its value at some reference voltage needs the output to stay within ϵ(VA+Vref)\epsilon(V_A + V_{ref}) of that voltage. Bisecting the solve from one volt gives 0.810 V for one per cent, against VA/100=0.80V_A/100 = 0.80 V.

So a mirror is a current source to one per cent over about eight hundred millivolts, and that number contains neither the current it is copying nor any resistor in the circuit. Change the reference from a microamp to ten milliamps and it is the same eight hundred millivolts. It is a property of the device, through one parameter, and it is the honest statement of what a current mirror is worth.

The same relation read the other way is where the Early voltage’s name comes from: extrapolating the output characteristic back to zero current hits the voltage axis at VA-V_A. The figure fits that intercept from two points on the solved curve and gets 80.0-80.0 V against the 80 V stamped, which is the definition being checked rather than assumed.

A copy out by 0.20% for the reason everybody names, and 11% for the one nobody does. computed by solving, not by drawing at 60 output voltages, with the Early conductance iterated to self-consistency against the current that sets it. Two base currents are stolen from the reference, so the copy is β/(β+2) of it — 0.200% low at β = 1000 — and that is exact at exactly one output voltage, 0.7126 V, which is 1.43 mV under the reference's own base-emitter voltage of 0.7140 V — a displacement that goes as 1/(β+2), so that the product of the two is 1.427 V at every β the slider offers. Everywhere else the Early effect is larger: the current rises at 1.21% per volt, so moving the output from one volt to ten changes it by 11.2%. One per cent holds over 0.810 V, which is the Early voltage over a hundred and contains neither the current nor any resistor. The slider is β: it moves the first error by fifty times and the second by nothing at all.
Fig. 5 The same mirror with β raised to a thousand — a Darlington, or a helper transistor, or a modern process. The base-current error has fallen from 1.32% to 0.200%, a factor of six and a half, and the slope is 1.21% per volt exactly as before. Every step of the slider does the same thing: the error that is designed against moves and the error that is not does not.
A copy out by 9.1% for the reason everybody names, and 11% for the one nobody does. computed by solving, not by drawing at 60 output voltages, with the Early conductance iterated to self-consistency against the current that sets it. Two base currents are stolen from the reference, so the copy is β/(β+2) of it — 9.09% low at β = 20 — and that is exact at exactly one output voltage, 0.6469 V, which is 64.7 mV under the reference's own base-emitter voltage of 0.7116 V — a displacement that goes as 1/(β+2), so that the product of the two is 1.427 V at every β the slider offers. Everywhere else the Early effect is larger: the current rises at 1.21% per volt, so moving the output from one volt to ten changes it by 11.2%. One per cent holds over 0.810 V, which is the Early voltage over a hundred and contains neither the current nor any resistor. The slider is β: it moves the first error by fifty times and the second by nothing at all.
Fig. 6 A current gain of twenty, which is a large power device or a lateral part. The base-current error is 9.09% — the copy is a tenth low before anything else has gone wrong — while the slope stays at 1.21% per volt and the one per cent compliance window stays 0.810 V wide. The compliance contains neither the current nor a resistor, and it does not contain β either.

What the reference resistor is not doing

It is worth noticing what does not appear in either error, because it is what a designer spends most of the effort on.

The reference resistor sets the current and nothing else. Change it from 9.3 kΩ to 93 kΩ and the reference falls by ten; the base-current error is still 2/(β+2)2/(\beta+2), the slope is still 1/(VA+V)1/(V_A+V) per volt, and the one per cent compliance is still 0.81 V. Every quantity in this essay is a fraction, and the fractions are properties of the devices.

That is a stronger statement than it looks. It means the accuracy of a current mirror cannot be bought with better resistors, more supply voltage or a different operating current — the three things that improve almost everything else in analogue design. What buys accuracy is topology: a helper transistor for the first error, a cascode for the second.

The same reading explains why mirrors are ratioed by emitter area rather than by resistors. Two transistors of different area at the same base-emitter voltage carry currents in the ratio of their areas, exactly, with the base-current error becoming (1+n)/β(1 + n)/\beta for a ratio of nn — so a ten-to-one mirror has ten times the base-current error of a one-to-one, which is the first thing that breaks when a ratio is pushed. Nothing about the Early term changes at all.

Where the model refuses

Below about two-tenths of a volt at the output, a real transistor saturates: its base-collector junction forward-biases, the collector current collapses, and the output stops being a current source in a way that has nothing to do with the Early effect.

The model here has no base-collector junction in it. It would happily return a forward-active current for an output at fifty millivolts, which would be a confident number about a device that is not in that state. So it refuses instead, by name, and the refusal is run rather than described — the figure calls the solver at 0.05 V and requires it to decline.

That is the site’s standing rule and it earns its place here, because the left-hand end of a compliance range is exactly where somebody is tempted to extrapolate. The useful range is bounded below by a saturation this model cannot compute and above by a supply, and the essay says so rather than drawing a curve into a region it has nothing to say about.

A copy out by 3.8% for the reason everybody names, and 11% for the one nobody does. computed by solving, not by drawing at 60 output voltages, with the Early conductance iterated to self-consistency against the current that sets it. Two base currents are stolen from the reference, so the copy is β/(β+2) of it — 3.85% low at β = 50 — and that is exact at exactly one output voltage, 0.6856 V, which is 27.4 mV under the reference's own base-emitter voltage of 0.7130 V — a displacement that goes as 1/(β+2), so that the product of the two is 1.427 V at every β the slider offers. Everywhere else the Early effect is larger: the current rises at 1.21% per volt, so moving the output from one volt to ten changes it by 11.2%. One per cent holds over 0.810 V, which is the Early voltage over a hundred and contains neither the current nor any resistor. The slider is β: it moves the first error by fifty times and the second by nothing at all.
Fig. 7 Fifty: 3.85% of base-current error, the same 1.21% per volt, the same 0.810 V. Between this figure and the one above it the error has fallen by 2.4 times for 2.5 times the current gain, which is the 2/β the closed form gives.

Three consequences

A cascode is not about gain. Stacking a second transistor on the mirror’s output holds the lower one’s collector voltage still, so the Early term stops moving — the compliance for one per cent goes from 0.8 V to tens of volts. Everything a cascode is used for downstream follows from that, and the base-current error is untouched by it.

A current source is a resistance. I/V=I0/VA\partial I/\partial V = I_0/V_A is a conductance, so this whole essay is the statement that the mirror’s output impedance is VA/IV_A/I — 80 kΩ at a milliamp. A “current source” with 80 kΩ across it is what it is, and every gain that depends on it depends on that number rather than on infinity.

Matching does not help with this. Two transistors on the same die have base-emitter voltages matched to a millivolt, which is what makes the mirror work at all. It does nothing for the Early term, because that error is not a mismatch — it is both devices behaving identically at different collector voltages.

A copy out by 2.0% for the reason everybody names, and 11% for the one nobody does. computed by solving, not by drawing at 60 output voltages, with the Early conductance iterated to self-consistency against the current that sets it. Two base currents are stolen from the reference, so the copy is β/(β+2) of it — 1.96% low at β = 100 — and that is exact at exactly one output voltage, 0.6996 V, which is 14.0 mV under the reference's own base-emitter voltage of 0.7135 V — a displacement that goes as 1/(β+2), so that the product of the two is 1.427 V at every β the slider offers. Everywhere else the Early effect is larger: the current rises at 1.21% per volt, so moving the output from one volt to ten changes it by 11.2%. One per cent holds over 0.810 V, which is the Early voltage over a hundred and contains neither the current nor any resistor. The slider is β: it moves the first error by fifty times and the second by nothing at all.
Fig. 8 A hundred: 1.96%. Across the four current gains drawn — 20, 50, 100, 150 and 1000 — the base-current error runs 9.09%, 3.85%, 1.96%, 1.32% and 0.20%, and the slope is 1.21% per volt at every one of them. Three consequences follow, and each is visible as one of the two numbers moving while the other does not.

The two errors have different signatures

They are worth telling apart on a bench, and they are easy to.

The base-current error is a fixed fraction. Measure the reference and the copy at one output voltage and the ratio is a number; move the supply, the resistor or the temperature and the ratio stays put, because both currents scale together. It shows up as a gain error in whatever the mirror is biasing.

The Early error is a slope. It shows up as an output impedance — 80 kΩ at a milliamp — so it appears wherever that impedance is in parallel with something: a gain that is lower than the transconductance times the load resistance predicts, a filter corner that has moved, a current source whose current depends on what the stage it feeds is doing. It also shows up as a dependence on supply voltage, which is what makes it look like poor rejection rather than like a mirror problem.

The distinction matters because the repairs are unrelated and each is useless against the other error.

What this essay does not claim

That VAV_A is a constant. It is not: a real device’s output characteristic is not straight and the extrapolated intercept moves with the current. Eighty volts is a number for one device at one bias, and the linear model built on it is a model with a range like everything else here.

That the iteration is the only way in. It is not; a simulator with a proper Gummel–Poon model solves the whole thing at once. The iteration exists because this site’s nonlinear element takes one controlling pair, and it is written out rather than hidden because a self-consistent loop that nobody mentions is the kind of thing that quietly stops converging.

That the base-current repair is free. The third transistor takes its own base current from the reference, so the error becomes 2/(β2+2β+2)2/(\beta^2 + 2\beta + 2) rather than zero — six parts in a hundred thousand at β=150\beta = 150 — and it costs a base-emitter drop of headroom at the reference. It is an excellent trade and it is a trade.

That this generalises to a Wilson or a Widlar. It does not. Those change the topology and change both errors, and each would need its own solve. What is measured here is the two-transistor mirror, which is the one in every textbook and the one the two errors are usually quoted about.

Where the two errors are paid for

A mirror is the current source every other stage in this field is drawn with, so its two errors turn up everywhere. The device that never sees the swing is biased by one and needs its compliance, which is the second error read as a voltage. The source that is not a source is the ideal this page is a departure from, and A bias point is a solution, not a choice is why the departure is a root rather than a number. Two millivolts a kelvin, and the wrong sign is what happens to both errors when the part gets warm, and The exponent that is a square is the same accounting on a device whose law is not an exponential — where the base current disappears and the second error does not.

The gate

The Early conductance and the current that sets it are iterated to self-consistency, and both the iteration count and the last movement are asserted — eight passes, 2.7×10142.7\times10^{-14} — rather than the loop being run a fixed number of times and trusted.

The operating point’s residual is asserted, rebuilt from the exponentials at the converged voltages and required below 10910^{-9}. A Newton loop that has converged to the wrong thing looks exactly like success from inside the loop, and this is the check that is not inside it.

The Early voltage is checked as an intercept, not as a slope. The fractional slope depends on which current it is normalised to — 1.21% per volt at three volts rather than 1.25%, because I(V)=I0(1+V/VA)I(V) = I_0(1+V/V_A) makes it 1/(VA+V)1/(V_A + V) — and the x-intercept of the same chord has no such choice in it. That distinction cost this figure one wrong assertion before it was noticed.

The displacement of the exact point is asserted to go as 1/(β+2)1/(\beta+2) across the whole slider, to one per cent, because it is an unplanned result and an unplanned result that is not asserted is an anecdote.

And the refusal is run. The mirror is asked for its output current at fifty millivolts and must decline, so that the assertion is still rejecting something rather than having quietly stopped.

Neither of these two is what limits a real mirror

The two errors separated here — one that falls with beta and one that does not — are the two every account of a current mirror leads with, and the rungs above this one find that neither is the binding one.

The error that is a distribution is the finding: two transistors on the same die differ, a fractional difference in saturation current is a fractional difference in collector current with nothing dividing it, and the honest object is a spread rather than a number — mean 3.84 per cent, standard deviation 1.96, worst of three hundred 8.43. Against 1.32 per cent from base currents and 11.2 per cent of Early effect over a ten-volt swing, that is comparable with the second and four times the first, and unlike either it is different in every unit.

The repair for it is degeneration, and where it stops is the sharpest number on that page: divided by one plus gmRg_m R until the resistors’ own tolerance takes over, and where it stops is a voltage — a hundred millivolts across the degeneration resistor, containing nothing but the ratio of two tolerances. Not a resistance, not a current, and not a device parameter.

And the refusal, and what it was protecting is where the model’s own boundary — the two hundred millivolts this essay’s gate exercises — turns out to have been placed conservatively: putting the base-collector junction in shows the forward-active model still right to seven parts in ten thousand there, and locates the mirror’s real failure somewhere else entirely, at six and a half per cent off an output sitting at five volts.

Which leaves this essay’s own result as the one about beta and nothing else, and that is the part worth keeping. Moving beta from 20 to 1000 changes the base-current error by a factor of forty-five and the Early effect by nothing at all — so a designer told that a mirror’s accuracy improves with a better transistor is being told something true about one of the two terms and false about the larger one. The repair for the first is a third transistor; the repair for the second is a cascode, which the source that holds to the supply prices at 0.71 volts of headroom for a factor of ninety in output resistance, with forty-three per cent of what should have been there missing in the reference branch.

The general lesson is about which term an account leads with. Every textbook treatment of a mirror opens on the base currents and files the Early effect as a footnote, and the ratio measured here is nine to one the other way over any useful swing. That ordering is not an error about either quantity; it is an ordering inherited from an era of low supply voltages and small swings, kept because the base current is the term with the tidier expression.

Part 1 on current mirror

One argument about Current mirror, and one of 4 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down, the 8 sharing most with it of 15.

What this makes readable

Essays that name this one as a prerequisite.

The objects named here

The third axis, after the field and the idea: the things themselves, and every essay that touches each one.

Compliance rangeCurrent mirrorEarly effectModel rangeNewton raphsonOperating pointOutput impedance