Devices, and the amplitude they stop being linear at

The error that is a distribution

The rung below solved a mirror and separated two errors — one that falls with beta and one that does not. Neither is what limits a real mirror. 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. Degeneration divides it by one plus gm·R and stops at the resistors' own tolerance, and where it stops is a voltage — a hundred millivolts, containing nothing but the ratio of two tolerances.

Assumes: The copy, and its two errors · What a resistor in the emitter buys

The rung below this one solved a two-transistor mirror with the Early conductance iterated to self-consistency and separated the error that falls with beta from the error that does not. Both come out of a solve, both are properties of the design, and both are what a data sheet’s equations are about.

Neither is what limits a real mirror.

The whole arrangement assumes the two transistors are the same transistor, and they are not. A fractional difference in saturation current is a fractional difference in collector current with nothing to divide it, because the two devices share a base-emitter voltage and the exponential does the rest. Nobody chose that difference and nobody knows it. It is a distribution, and no amount of solving produces one.

A diode fed from 5 V through 1.0 kΩ. computed by solving, not by drawing. The operating point is where the exponential meets the load line: 0.692544 V and 4.3075 mA, reached in 13 damped Newton steps from a cold start. The one-line Newton on Vs = v + R·i(v), which touches no matrix, gives 0.692544 V. The "drop" is not a constant: it moves 59.53 mV per decade of current, measured between two solved operating points.
Fig. 1 The law that passes the mismatch undivided: a current set by an exponential in a shared voltage, whose operating point is a solution rather than a choice.

Why the exponential does not divide it

The reason the mismatch passes through undivided is worth spelling out, because the same circuit divides other things very effectively and the difference is not obvious.

Two transistors with their bases and emitters tied together have the same base-emitter voltage by construction. Each one’s collector current is ISeVBE/VTI_S e^{V_{BE}/V_T}, so the ratio of the two currents is the ratio of the two saturation currents, full stop: the exponential is the same function evaluated at the same argument, and it cancels exactly. There is no feedback anywhere in the arrangement to notice that one device is carrying more current than the other, because nothing in the circuit measures the difference.

Compare that with what the same pair does to a base-emitter voltage error. An offset of ΔV between the two junctions produces a current ratio of eΔV/VTe^{\Delta V/V_T}, which for small offsets is 1+ΔV/VT1 + \Delta V/V_T — so a millivolt of offset is 3.9 per cent of current, and the thermal voltage is the exchange rate. The two statements are the same statement: a two per cent mismatch in saturation current is half a millivolt of built-in offset, and the mirror cannot tell the two apart because there is no measurement that separates them.

Degeneration works precisely by introducing a measurement. Once a resistor carries the current, the emitter voltage moves with it, and the difference in emitter voltages subtracts from the difference the mismatch was trying to impose. The 1+gmR1 + g_m R is the loop gain of that correction, and the thermal voltage appears in the crossing because gmRg_m R is the degeneration drop divided by it — the same exchange rate, arriving in the answer to a different question.

Three hundred mirrors built to one design

300 mirrors built to one design, with 2% device mismatch. computed by solving, not by drawing. Every pair in the population is a full Newton solve of the same netlist with two saturation currents drawn from a normal distribution, the Early conductances iterated to self-consistency for each. The mean is 3.836 per cent, which is the systematic error the rung below computed with identical devices (3.937 per cent) — the mismatch does not move it. The spread about it is 1.955 per cent, which is the device mismatch arriving with nothing dividing it, and the worst pair of the 300 is 8.43 per cent out. A design whose specification is the mean has specified the one mirror nobody has.
Fig. 2 Three hundred pairs, each a full Newton solve of the same netlist with two saturation currents drawn from a normal distribution and the Early conductances iterated for each.

Every pair in the population is solved rather than sampled from an expression, which matters because the mismatch and the two systematic errors interact through the same nonlinear circuit and there is no guarantee they simply add.

They very nearly do. The mean of the population is 3.836 per cent and the systematic error the rung below computes with identical devices is 3.937: the mismatch does not move the mean, to within the sampling error of three hundred draws. That is worth having as a measurement rather than an assumption, because the base current is stolen from the reference by both devices and there was no obvious reason for a difference between them to leave the average alone.

The spread about that mean is 1.955 per cent for a two per cent device mismatch — the mismatch arriving with nothing dividing it, exactly as the shared exponential predicts.

And the worst pair of the three hundred is 8.43 per cent out. That is the number a specification is written against, and it is not three standard deviations from the mean because the mean is not where the design is; it is four and a half per cent from the design’s intent in one direction and worse in the other.

A copy out by 1.3% 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.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.
Fig. 3 The rung below’s own measurement: the two systematic errors separated, one falling with beta and one not, both of them exact for a pair of identical devices.

Which error is the limit

Put the two together and the rung below’s finding changes status.

Which error is the limit, and it is not the one the equation is about. computed by solving, not by drawing. The base-current error a solve gives, against the current gain, with the one-sigma mismatch drawn flat beside it because it does not depend on β at all. The two collector voltages are held equal so that the Early effect is out of the comparison — that is the other half of the rung below's answer, it has a floor rather than falling with β, and it is the half a cascode removes. What is left crosses the mismatch at about β = 150: below that the design error dominates and the rung below's arithmetic is the right thing to look at, and above it the answer is a distribution whose width nothing in that arithmetic contains. Modern devices sit well to the right of it, so what limits a real mirror is the error that cannot be calculated — which is why the fix is degeneration or a larger device rather than a better equation.
Fig. 4 The base-current error against the current gain, with the one-sigma mismatch drawn flat beside it because it does not depend on beta at all. The two collector voltages are held equal so that the Early effect is out of the comparison.

The base-current error is 2/β and falls with every improvement in the device. The mismatch does not depend on β at all. They cross at about β = 150, which is where an ordinary small-signal transistor sits, and every modern device is to the right of it.

So the error the rung below separated so carefully is, for any device anybody would use, not the one that decides the answer. Below the crossing the arithmetic is the right thing to look at; above it, the mirror’s accuracy is a statistical statement whose width appears nowhere in that arithmetic.

The Early half of the systematic error is deliberately held out of that comparison, because it behaves differently: it has a floor rather than falling with β, and it is the half a cascode removes by holding the two collectors at the same voltage. That is the design move rung one’s finding actually motivates. It is also the design move that does nothing whatever about the spread measured here — which is the point. Every cure for a systematic error leaves this one untouched.

300 mirrors built to one design, with 4% device mismatch. computed by solving, not by drawing. Every pair in the population is a full Newton solve of the same netlist with two saturation currents drawn from a normal distribution, the Early conductances iterated to self-consistency for each. The mean is 3.776 per cent, which is the systematic error the rung below computed with identical devices (3.937 per cent) — the mismatch does not move it. The spread about it is 3.902 per cent, which is the device mismatch arriving with nothing dividing it, and the worst pair of the 300 is 13.12 per cent out. A design whose specification is the mean has specified the one mirror nobody has.
Fig. 5 Twice the mismatch, where the spread doubles and the worst pair of three hundred is seventeen per cent out. The mean has not moved.

The one lever, and where it stops working

There is exactly one thing a designer can do about device mismatch inside the circuit, and it is a resistor in each emitter.

The mechanism is the one the degeneration essay measures for a single stage: the shared base-emitter voltage now sets a current through a resistance rather than through an exponential, so a fractional error in the saturation current is divided by 1 + gₘR. That expression is the feedback field’s desensitivity arriving in a circuit with no amplifier in it, which is worth noticing: it is the same algebra because it is the same idea, a loop gain dividing an error, with the loop closed through a resistor instead of through a differential pair.

What degeneration buys, and where the resistors take the job over. computed by solving, not by drawing. A resistor in each emitter divides the device mismatch by 1 + gₘR — which is the feedback field's desensitivity, arriving in a circuit with no amplifier in it — and multiplies the resistors' own tolerance by gₘR/(1 + gₘR). So the spread falls, flattens, and stops at 0.473 per cent, which is the half per cent the resistors were given. The two contributions are equal where gₘR is the ratio of the two tolerances, which is a VOLTAGE — 103 millivolts here — and it contains nothing about the circuit except that ratio: not the current, not the resistance, not the transistor. Past it, more degeneration costs headroom and buys nothing. The dashed curve is that expression; the solid one is 8 sweeps of the solved population.
Fig. 6 The spread of the copy error against the voltage dropped across the degeneration resistors, with the closed form beside it and the resistors’ own tolerance marked.

The spread falls, flattens and stops. It stops at 0.48 per cent, which is the half per cent the resistors were given, because the same degeneration that divides the device mismatch multiplies the resistors’ own by gₘR/(1 + gₘR). Adding more never crosses that floor and the improvement per millivolt collapses long before it.

The crossing — where the two contributions are equal — is at gₘR equal to the ratio of the two tolerances, which makes it a voltage:

Vdegen=VTσdeviceσresistorV_{\text{degen}} = V_T \cdot \frac{\sigma_{\text{device}}}{\sigma_{\text{resistor}}}

For two per cent devices and half per cent resistors that is 103 millivolts, and it contains nothing about the circuit except that ratio. Not the current, not the resistance, not the transistor’s β, not the supply. Past it, more degeneration costs headroom and buys nothing.

The measured spread follows the closed form to within about five per cent across the sweep, and the measurement is consistently below the prediction — the expression uses the nominal transconductance while the solved circuit’s is slightly lower at the degenerated operating point.

What the trade actually is

The design instruction that falls out is more specific than “add degeneration”.

Below a hundred millivolts of drop, degeneration is nearly free: each millivolt divides the dominant error and the resistors contribute almost nothing. Above it, each millivolt costs a millivolt of compliance and buys a diminishing fraction of a floor that is already reached. A mirror with a volt of degeneration is a design decision that has spent a volt of output swing for nothing measurable — and compliance is exactly what a mirror is short of, which is why the cascode’s cost is quoted in the same units.

The second half of the instruction is about the resistors. The floor is their tolerance, so the degeneration is worth having only if they are better matched than the devices. In an integrated circuit that is nearly always true — thin-film resistors match to a fraction of a per cent while bipolar saturation currents do not — and on a circuit board with ordinary one per cent parts the ratio is nearer unity and the crossing is at 25 millivolts, so there is very little to gain.

That is the whole trade, and both of its numbers are ratios of tolerances rather than component values.

What degeneration buys, and where the resistors take the job over. computed by solving, not by drawing. A resistor in each emitter divides the device mismatch by 1 + gₘR — which is the feedback field's desensitivity, arriving in a circuit with no amplifier in it — and multiplies the resistors' own tolerance by gₘR/(1 + gₘR). So the spread falls, flattens, and stops at 0.473 per cent, which is the half per cent the resistors were given. The two contributions are equal where gₘR is the ratio of the two tolerances, which is a VOLTAGE — 52 millivolts here — and it contains nothing about the circuit except that ratio: not the current, not the resistance, not the transistor. Past it, more degeneration costs headroom and buys nothing. The dashed curve is that expression; the solid one is 8 sweeps of the solved population.
Fig. 7 A well-matched integrated pair, where the device mismatch and the resistors’ tolerance are the same size and the crossing has fallen to about a thermal voltage of degeneration.

The population is drawn with a seed, and that is not a detail

Every number above comes from a sample, so it is worth saying what makes a sampled number quotable.

The draws come from a counter-based generator with an explicit seed, and the seed is part of the figure rather than an implementation detail: a sampled figure that changed every time it was drawn would make every assertion about it a one-off, and there would be no way to say that a number quoted in the prose is the number in the drawing. Three hundred pairs at one seed is one experiment, and the summaries — mean, spread, extreme — are statements about it.

That is why the assertions in the site’s gate are written as bounds with slack in them rather than as equalities. The mean is required to be within a quarter of the systematic error and the spread within a fifth of the device mismatch, and both of those tolerances are wider than the effect being claimed and narrower than the effect being excluded. A tighter bound would fail on a different seed and a looser one would pass a circuit whose exponential divided the mismatch, which is exactly the error the assertion exists to catch.

The extreme is the summary that behaves worst under sampling. The worst of three hundred draws from a normal distribution is around 2.9 standard deviations and it moves by a good fraction of one from seed to seed, which is why it is asserted only to exceed two — and why the sentence in the figure’s own description says worst of the three hundred rather than worst case. They are different quantities and only the first one has been measured.

What a designer should take from the width

Three consequences, in the order they bite.

A mirror ratio is not a design parameter below a few per cent. An arrangement that needs two currents to match to a per cent needs either degeneration, or a matched pair on one die with its mismatch specified, or a trim. Building it out of two discrete transistors from the same tape and hoping is a design whose accuracy is 8 per cent worst case, and that is what the population above says.

The specification has to be written on the population. A mean of 3.84 per cent and a spread of 1.96 is not “about four per cent”; it is a distribution whose tail decides the yield. A design that tolerates five per cent passes most of the time and fails about a fifth of the time, and a design that tolerates ten passes essentially always. Which of those two a specification chooses is a commercial decision and it needs the width to make it.

And the two cures are for different errors. A cascode removes the Early half of the systematic error and does nothing about the spread. Degeneration divides the spread and does nothing about the base-current half. They are compatible and often used together, and a designer who applies one to the problem the other solves has spent headroom for no accuracy at all — which is exactly the mistake that follows from reading the rung below and stopping there.

Why this is not the tolerance essay

The tolerance that is not on any part draws the distribution of a divider’s output over its components’ tolerance bands and compares it against the worst case and the root-sum-square bound. This is the same kind of object and a different kind of quantity, and the difference is worth stating.

There, the tolerance is specified. A one per cent resistor is a promise about a distribution, the distribution is roughly known, and the arithmetic connecting it to the answer is linear. Here the mismatch is not specified anywhere on a data sheet for a discrete pair, it depends on geometry and process in ways the buyer cannot see, and the arithmetic connecting it to the answer runs through an exponential.

What the two share is the shape of the conclusion: the honest answer to “how accurate is it” is a distribution, the worst case is far from the mean, and the number a solve returns is a property of a circuit nobody has.

What is not modelled

The mismatch is normal and it is not. A real population of saturation currents is roughly log-normal, and the tail matters more than the width for a specification written at a yield. Using a normal distribution on the fractional difference is close for small mismatches and diverges in the tail, which is exactly where a worst-case number is read.

And it is one number. In an integrated pair the mismatch scales inversely with the square root of the emitter area — a physical law with a great deal behind it — so a designer buys matching with silicon, and the trade against degeneration is really a three-way one between area, headroom and accuracy. That third axis is a process parameter rather than a circuit quantity and is not here.

The betas are drawn independently. They should not be: β and saturation current are correlated on the same die because both depend on the same doping. What that changes is the width of the distribution rather than any of the boundaries, and getting it right needs a joint model this collection has no source for.

The temperature is 300 K everywhere. A mismatch in saturation current appears as a mismatch in base-emitter voltage, and that mismatch has a temperature coefficient of its own — about 3.3 µV per kelvin per millivolt of offset — so a pair trimmed to match at room temperature drifts apart. That is the mechanism the differential-pair drift essay measures and the same treatment applies here unchanged.

And nothing is trimmed. A production mirror can be laser-trimmed or digitally corrected, which removes the mean and part of the spread and leaves the drift. That is a different subject and it is where the interesting modern answer lies.

What the gate checks

The mean of the population is asserted against the systematic error a single solve gives with identical devices, to a quarter — which is the claim that the mismatch does not move the mean, and is not a tautology, because both are computed independently.

The spread is asserted against the device mismatch itself, to a fifth, so a version whose exponential divided the mismatch by something would fail rather than be quietly plotted.

The worst pair is asserted to be beyond two standard deviations, which is what says a specification cannot be written at one.

The degeneration sweep carries three claims: that the spread never rises with added degeneration, that it stops at the resistors’ own tolerance rather than at zero, and that the measured spread tracks σ_Is/(1 + gₘR) and σ_R·gₘR/(1 + gₘR) added in quadrature at every drop on the sweep. The third is what makes the crossing a mechanism rather than a coincidence of two curves.

And the crossing with the base-current error is asserted to exist inside the range of β drawn, which is the assertion that carries this rung’s finding: if it did not, the rung below’s arithmetic would still be the limit and this essay would be about a correction.

300 mirrors built to one design, with 0.5% device mismatch. computed by solving, not by drawing. Every pair in the population is a full Newton solve of the same netlist with two saturation currents drawn from a normal distribution, the Early conductances iterated to self-consistency for each. The mean is 3.906 per cent, which is the systematic error the rung below computed with identical devices (3.937 per cent) — the mismatch does not move it. The spread about it is 0.490 per cent, which is the device mismatch arriving with nothing dividing it, and the worst pair of the 300 is 5.04 per cent out. A design whose specification is the mean has specified the one mirror nobody has.
Fig. 8 A well-matched integrated pair at half a per cent, where the spread is under the systematic error and the rung below’s arithmetic is the right thing to look at again. The boundary between the two regimes is a mismatch, and it is the mismatch a process delivers rather than one a designer chooses.

What a solve is for

It is worth being clear about what has and has not been given up.

Nothing here says the solve was wrong. Every one of the three hundred pairs is the same Newton iteration on the same netlist that the rung below runs, and each returns an exact answer for the devices it was given. What changed is the question: not what does this mirror do but what does a mirror built to this design do, and the second question has an answer with a width.

A bias point is a solution rather than a choice, which is this field’s founding statement, and it remains true. So does the pair that cancels what a single device cannot, for the same reason and with the same caveat attached. It is a solution to a problem whose coefficients are not known to better than a couple of per cent, and a solution computed to twelve digits from coefficients known to two is a description of one instance rather than of a design.

Part 2 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 objects named here

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

Component toleranceCurrent mirrorDesensitivityDesign tradeoffDevice mismatchEarly effectEmitter degenerationOperating point