Devices, and the amplitude they stop being linear at

The mismatch that cancels itself

A current mirror's copy error is spread by three things the two transistors can differ in, and the population that measures it has always drawn all three at once. Turned on one at a time, a two per cent spread of saturation currents gives 1.910 per cent of copy error and a two per cent spread of current gains gives 0.00022 — because the gains enter only as a sum of reciprocals, which has no first derivative where they are equal. Then the standard cure un-cancels it, by a factor of 86.

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

The error that is a distribution solved three hundred current mirrors built to one design, each with its own devices drawn from a normal distribution, and reported what a population does that a single solve cannot: the mean is the systematic error, and the spread about it is something the systematic calculation contains nowhere. At two per cent device mismatch the mean came out at 3.836 per cent against a systematic 3.937, and the spread at 1.955.

The sentence attached to that spread was that it is the saturation-current mismatch, arriving with nothing dividing it. It is, and it had never been shown to be. Three quantities were drawn on every one of those three hundred solves — the two saturation currents, the two current gains and the two emitter resistors — and the check that ran was that the total spread equals one of the three inputs. A total agreeing with one contribution is consistent with the other two being negligible and equally consistent with two of them cancelling, and neither had been looked at.

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. 1 The population the question is about: three hundred pairs, each a full Newton solve of the same netlist, mean 3.836 per cent against a systematic 3.937 and a spread of 1.955. The worst pair of the three hundred is 8.43 per cent out.

The three ways two transistors differ

A mirror’s two devices are nominally identical and are three separate things in the model. Each has a saturation current, which is proportional to emitter area and carries the process’s own scatter; each has a current gain, which is set by base width and by recombination and is the loosest parameter a bipolar data sheet prints, quoted as a range rather than as a value; and each has whatever emitter resistor is under it, with a tolerance of its own.

Their nominal spreads are not comparable either, which is part of why the question is worth asking. The sizes this collection’s populations have been built with are two per cent on the saturation currents, ten on the current gains and a half on the resistors — area matching on one die being the tightest of the three and the current gain the loosest by a wide margin. A budget that added those three in quadrature at face value would put the current gain first.

Turning them on one at a time is a controlled experiment and costs nothing but the runs. Each point below is a full population — every pair a Newton solve of the netlist, with the Early conductance iterated to self-consistency against the current that sets it, exactly as a bias point is a solution requires. The draws are scaled from one set of standard normal numbers, so the populations at different mismatch sizes are the same population rescaled: the slope of each line is a measurement of an order rather than a fit through sampling noise, which is what makes a slope of 2.003 a statement about the circuit rather than about how many pairs were solved.

Three mismatches, and only one of them reaches the output. computed by solving, not by drawing. Each of the three quantities that can differ between the two transistors is given a spread of its own, one at a time, and 200 pairs are solved at each. The saturation currents produce a spread that follows them exactly — exponent 0.998, so 1.910 per cent of copy error for two per cent of mismatch. The current gains produce a line of slope 2.003, which is second order rather than first, and land at 2.20e-4 per cent for the same two. There is no third line because there is no third component: with no emitter resistors there is nothing for a resistor tolerance to be a tolerance of, and matching a mirror is a statement about emitter area and about nothing else.
Fig. 2 Each mismatch alone, against its own one-sigma size, with two hundred pairs solved at every point. The saturation currents give a line of slope 0.998 that lands on 1.910 per cent of copy error for two per cent of mismatch. The current gains give a line of slope 2.003 that lands on 0.00022 per cent for the same two.

The answer is three orders of magnitude, and it is not a small coefficient. It is a different exponent. Doubling the spread of saturation currents doubles the copy error’s spread; doubling the spread of current gains quadruples it, from a starting point four thousand times lower.

Read the other way round, that is a statement about how much gain mismatch would be needed to matter. For the current gains to contribute as much spread as two per cent of area does, they would have to differ by rather more than a factor of two between the two devices — which is not a mismatch, it is two different transistors. Within any range a real pair can occupy, the term is absent.

There is no third line in that figure, and the reason is worth saying plainly rather than treating as an omission: with no emitter resistors in the circuit there is nothing for a resistor tolerance to be a tolerance of. The population that produced the 1.955 above was drawn with a half per cent resistor spread and no resistors, so that input never reached the output at all.

Why the exponent is two

A population is a blunt instrument for a question about order, so the same statement is made on one pair.

A saturation-current mismatch is first order and a current-gain mismatch is second. computed by solving, not by drawing. One pair of transistors, solved with a stated difference between its two saturation currents and then with the same difference between its two current gains, over two decades of mismatch. The first line has slope 0.982 and sits on the mismatch itself: two per cent of area gives 2.045 percentage points of copy error, undivided by anything. The second has slope 2.002 and sits on d²/2β: two per cent of current gain gives 1.355e-4 percentage points, 15086 times less. The reason is visible in the expression rather than in the size of anything: the copy error contains β₁ and β₂ only through 1/β₁ + 1/β₂, and a sum of reciprocals is stationary where its arguments are equal. So the first-order term is not small — it is absent.
Fig. 3 One pair of devices, given a stated difference between its two saturation currents and then the same difference between its two current gains, over two decades. The first departs with exponent 0.982 and lies on the mismatch itself; the second with exponent 2.002 and lies on d2/2βd^2/2\beta. At two per cent they are 2.0447 and 0.0001355 percentage points — 15,086 times apart.

The mechanism is in the expression rather than in the size of anything. A mirror’s reference branch carries the collector current plus both base currents, so the copy is

IoutIref=11+1/β1+1/β2\frac{I_\mathrm{out}}{I_\mathrm{ref}} = \frac{1}{1 + 1/\beta_1 + 1/\beta_2}

and the two gains appear only through the sum of their reciprocals. Write them as β(1±d/2)\beta(1 \pm d/2) and that sum is (2/β)/(1d2/4)(2/\beta)/(1 - d^2/4): the two first-order terms are equal and opposite and there is no linear term at all. What is left is d2/2βd^2/2\beta, which the solve reproduces to within a twelfth at every mismatch drawn, and to within three per cent across most of the range.

Two things about that derivation are worth separating, because only one of them is the finding. That the base currents subtract is elementary and is the first thing any account of a mirror says. That the difference between them does not subtract is the part nothing says, and it is not visible in the usual form of the expression, which is written with one β\beta because both devices are assumed identical. Assuming them identical is exactly what removes the term the question is about, so the answer had to come from a model that keeps them apart — the schematic naming one device where the netlist has two is the general form of that.

That is a stationary point, not a small number. It is the same shape of argument as what a pair cancels, and what it only halves: a symmetry in the circuit removes a term rather than shrinking it, and what survives is the next one. The distinction matters because a small coefficient can be made large by a different operating point and a missing term cannot.

Checked against β\beta rather than against dd, the same expression holds from a current gain of thirty to one of fifteen hundred, with the measured departure between 0.92 and 1.04 times d2/2βd^2/2\beta across that range. So it is not a coincidence of one bias point — the same standard one step computed twice sets for a transient, applied to an algebraic prediction and a Newton solve of the netlist it describes.

What that says about matching a mirror

The practical statement is short and it contradicts a common instinct.

Matching a current mirror is a statement about emitter area and about nothing else. A pair specified on current gain has bought nothing measurable: at the two per cent that a good layout achieves on area, a matched gain is worth four decimal places of a per cent, and the same two per cent of area is worth two whole points. A device pair on one die, at one temperature, with its transistors interdigitated, is doing something entirely about the first quantity and incidentally about the second.

The layout techniques bear this out, which is the reassuring half. Common-centroid arrangements, dummy devices at the ends of a row, and unit transistors wired in parallel rather than one wide device are all methods of making two areas equal in the presence of a gradient across the wafer. None of them does anything for base width. The practice has been right for a long time; what has been missing is the measurement that says which of the two parameters it is buying, and therefore what a different technique would have to improve to be worth anything.

It also settles a smaller question about what to specify when buying parts. A dual transistor sold as matched quotes a base-emitter voltage difference, in millivolts, and that is a statement about the ratio of the two saturation currents: 26 millivolts of thermal voltage times the logarithm of the ratio, so a one-millivolt part is matched to about four per cent in area. Some also quote a gain match. On this measurement the first number is the whole of the specification and the second is decoration.

That does not make the current gain irrelevant to a mirror; it makes it irrelevant to the spread. The gain still sets the systematic error — the two base currents stolen from the reference are 2/β2/\beta of it, which is 1.32 per cent low at a gain of 150 — and that error is the same in every mirror built, so it is a design error that can be calculated and repaired.

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. 4 The two systematic errors, from the rung at the base of this ladder. The base currents take 1.32 per cent at a gain of 150 and the Early effect adds 1.21 per cent for every volt at the output, which is 11.2 per cent across a nine-volt swing and does not move with the gain at all.

Two errors of the same name and opposite character: one is common to every part and can be designed out, the other differs part to part and cannot. What has just been measured is that the current gain belongs entirely to the first.

The cure un-cancels it

The standard repair for the spread is a resistor in each emitter, and its arithmetic is well settled: the device mismatch is divided by 1+gmR1 + g_m R while the resistors’ own tolerance is multiplied by gmR/(1+gmR)g_m R/(1 + g_m R), so the total falls, flattens, and stops at whatever the resistors were given.

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. 5 What degeneration buys, from the rung below. The spread falls and stops at the resistors’ own half per cent, and the two contributions are equal where the degeneration measured in thermal voltages is the ratio of the two tolerances — a voltage containing nothing else about the circuit.

That account has two terms in it. The measurement has three.

The cure divides one mismatch, multiplies a second, and un-cancels the third. computed by solving, not by drawing. What a two per cent mismatch of each quantity is worth, against how much voltage the emitter resistors drop. The saturation-current term falls as 1/(1 + gₘR) — from 1.695 points to 0.125 — which is what degeneration is for. The resistors' own term rises to meet it and overtakes it at 25.5 millivolts, which for equal tolerances is one thermal voltage and contains nothing else about the circuit. The third line is the one nobody draws: with no resistors the current-gain mismatch enters at second order and is worth 1.355e-4 points, and every resistor added makes it first order — 86 times larger at four hundred millivolts. It is still the smallest of the three by two orders, which is the honest size of the finding: the cure has changed what kind of quantity it is, not what it costs.
Fig. 6 What a two per cent mismatch of each quantity is worth against the voltage dropped across the emitter resistors. The saturation-current term falls from 1.6945 points to 0.12478; the resistors’ own term rises past it at 25.5 millivolts; and the current-gain term, drawn against the 0.0001355 points it costs with no resistors at all, climbs to 0.011653 — 86 times more.

The third line is the finding. With no degeneration, the two current gains reach the output only through the sum of their reciprocals and cancel to first order. With a resistor under each emitter they no longer do, because the emitter current is the collector current times 1+1/β1 + 1/\beta, and that current is what develops a voltage across the resistor. Two different gains now drop two different voltages, the difference appears directly in the base-emitter voltage available to each device, and the transconductance turns it back into a current error. The first-order term that had cancelled is put back by the resistor.

Its size follows the same expression the other two do: σgmR/((1+gmR)β)\sigma\, g_m R/\big((1 + g_m R)\beta\big), which the solve tracks to within an eighth over eighty times the degeneration. All three sensitivities in that figure lie on their own closed forms, which is what makes the reversal a mechanism rather than an anomaly.

The factor gmR/(1+gmR)g_m R/(1 + g_m R) in it is the same one that multiplies the resistors’ own tolerance, and that is not a coincidence: both terms are voltages developed across the emitter resistor rather than across the junction, so both are handed to the output by the same divider. What differs is the size of the voltage. A resistor tolerance moves the whole emitter drop by its own fraction; a gain mismatch moves it by the fraction 1/β1/\beta of that. So the gain term is the resistor term divided by the current gain, which is exactly the ratio the measurement shows — 0.011653 against 1.8591 points at four hundred millivolts, a factor of 160 where β\beta is 150.

The same divider is the desensitivity a feedback loop buys, arriving in a circuit that contains no amplifier. It divides what the devices contribute and multiplies what the resistors contribute, and the third thing it does is put back a term that a symmetry had removed. Two of those three are in every account of degeneration and the third is in none.

What it does not say

It does not say degeneration is a bad idea. The term it revives is still the smallest of the three by two orders: at a hundred millivolts of drop a two per cent gain mismatch costs 0.0102 points where the same two per cent of area costs 0.380 and two per cent of resistor tolerance costs 1.612. The cure has changed what kind of quantity the gain mismatch is, and it has not changed the budget.

It does not say the resistor is worse than the device. At a half per cent tolerance — which is what an ordinary thin-film resistor gives — the resistors’ contribution at a hundred millivolts is 0.403 points against the devices’ 0.380, and the two are comparable rather than one dominating. The crossing is at 25.5 millivolts for equal tolerances, which is one thermal voltage and contains neither the current nor any resistance, in the way the constants that decide collects.

And it does not extend past this circuit unexamined. The cancellation is a property of the reference node being shared — both base currents come out of one branch, so both reciprocals enter one sum. An arrangement that does not share it does not get the cancellation, and a cascoded mirror is exactly such an arrangement: its upper device’s base current is charged twice, once into the inner node and once back into the reference, and 43 per cent of the output resistance the arrangement should have is missing because of it.

A cascoded mirror is 90× the output resistance, and 43% of it goes back into the reference. computed by solving, not by drawing. The output resistance of a two-transistor mirror and of the same mirror with a cascode on each branch, measured by moving the output a little either side of its operating point and reading the current, against the current gain of every device. The plain mirror sits at rₒ = 89 kΩ and does not move. The cascoded one reaches 7.39 MΩ at β = 150 and rises with β until β stops being the smaller of the two quantities, where it saturates on gₘrₒ² = 268 MΩ. The third curve replaces the diode-connected upper device with a held voltage at the same potential and recovers 1.76 times the resistance, which is the upper device's base current being charged a second time — to the reference branch, where it moves the mirror's own bias.
Fig. 7 The other arrangement, for contrast. A cascoded mirror reaches 7.39 megohms of output resistance at a gain of 150 against the plain mirror’s 89 kilohms, and 43 per cent of what it should have is going back into the reference branch as base current. Four devices give the base currents four places to go, and the symmetry that cancels a gain mismatch in two is not available.

What a single solve could not have said

It is worth being clear about which of the two instruments used here did the work, because they answer different questions and the collection has both.

A population says how wide a distribution is. It is the right object for a specification, since a design is built many times and the pair nobody has is the one that fails, and it is what the error that is a distribution exists to produce. What it cannot do is attribute: three inputs go in and one number comes out, and the number is the same whether a contribution is small or cancelled.

A pair says what the mechanism is. Sweeping one difference on one pair over two decades and fitting an exponent is a question a distribution cannot be asked, and the answer — an exponent of 2.002 rather than a coefficient — is what turns “the current gains do not matter here” into “the current gains cannot matter until something breaks the symmetry”.

The two had better agree, and they do: 2.003 from the population and 2.002 from the pair, computed from the same solver on different inputs and with nothing shared but the netlist. That agreement is the check on both, and it is the reason the reversal under degeneration can be believed, because it shows up in both instruments and neither was written expecting it.

With 100 mV across the emitter resistors, all three mismatches are first order. computed by solving, not by drawing. Each of the three quantities that can differ between the two transistors is given a spread of its own, one at a time, and 120 pairs are solved at each. The saturation currents produce a spread that follows them exactly — exponent 1.000, so 0.380 per cent of copy error for two per cent of mismatch. The current gains produce a line of slope 1.001 and land at 1.02e-2 per cent for the same two. The resistors' own tolerance arrives at slope 1.001 and is worth 1.612 per cent — the largest of the three, so the cure has become the dominant error and the matching that mattered is now the resistors'.
Fig. 8 The same three mismatches with a hundred millivolts across the emitter resistors. All three lines now have slope one — 1.000, 1.001 and 1.001 — and the current gains have moved from 0.00022 per cent to 0.0102 for the same two per cent. The resistors’ own tolerance is now the largest of the three.

The population’s answer under degeneration is a slope of 1.001 where it was 2.003, and the pair’s is 1.024 where it was 2.002. Two instruments, one reversal, and it is the resistors that caused it. A figure that had drawn only the total spread would have shown a curve falling and flattening, exactly as expected, with the whole of this underneath it.

What it opens

The first thing is a measurement that is now worth making elsewhere. Every place this collection computes a spread from a population, it draws several parameters at once, and a total that matches one input has not established that the others are absent. The refusal and what it was protecting makes the related point about a guard that never fires; this is the same idea about a check that never separates.

The second is that a stationary point is a thing to look for rather than to notice. Any quantity that enters a network only through a symmetric function of two nominally equal parameters has no first-order sensitivity to their difference, and the list of such places is longer than a mirror: a differential pair’s tail, a bridge’s two arms, two windings of a transformer. Where one exists, the matching requirement on that parameter is loose by a factor of the parameter itself.

The third is the warning that goes with it. A cure applied to one sensitivity is applied to the whole circuit, and it can move a term that was not being looked at — here it moved one from second order to first, and only a sweep that had all three sensitivities in it at once could see that. Every model has an edge is usually about a range in frequency or amplitude; this one is about a range in the design, which is the harder kind to notice, because nothing about the circuit has left its band.

The number worth carrying

Two per cent of area is two points of copy error and two per cent of current gain is a ten-thousandth of one — until a resistor is added under each emitter, at which point the second becomes 0.0102 and rises with every millivolt of degeneration.

And the third number belongs beside them: 86, which is what the second becomes as a multiple of itself once four hundred millivolts of degeneration is in the circuit. A repair applied for one reason has moved a quantity nobody was watching by nearly two orders, and left it still small.

The habit is to ask, of any parameter a specification is written on, not merely how large its effect is but what order it enters at. The two questions have different answers and only the second is stable: a first-order term can be reduced by a factor and remains first order, while a term that cancels is absent until something in the circuit breaks the symmetry that cancelled it — and what breaks it is usually the repair for something else.

Part 4 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.

Current mirrorDesign tradeoffDevice matchingDevice mismatchEarly effectEmitter degenerationModel rangeMonte carloSaturation currentThermal voltage