Networks, and how a solve is checked

The moments a layout has to match

An array's units are not independent: their values drift across the row, and a divider built from them reads the drift as error in proportion to how differently its two legs sit. To first order a ten-to-one divider's ratio moves by 10/11 of the difference between its legs' mean unit errors, exactly, so a linear gradient of 5 ppm a pitch costs 25 ppm with the small leg at the end of a row of eleven and nothing with it at the centre. A bow is a second moment, and no single unit can share it with a chain spread around it: at the centre a bow of 0.5 ppm a pitch² costs 5.0 ppm, ten per ppm a pitch², growing as N(N + 2)/12 with the ratio — 849 at a hundred to one. Four units in series-parallel at ±1.5 and ±5.5 pitches of a row of fourteen share both moments with the chain and cancel both, and their four-way average cuts the random part from 19.1 to 10.8 ppm: 10.8 ppm in all against 19.7 at the centre and 32.3 at the end.

Assumes: The tolerance that is not on any part · The divider, and the thing it does not know about

The small leg of a large ratio built dividers from equal units of one array and found that a ten-to-one ratio spreads as σuN/M\sigma_u\sqrt{N/M}: at any one area it costs 10\sqrt{10} against a halving divider, and the units it needs are the bottom leg’s. Every unit in those builds drew its error independently of where it sat. What a ratio does not see had already shown that parts sharing an error cancel it in a ratio exactly, and the array’s shared error was treated there as a single number common to every unit.

A real array does not share its error uniformly. Its sheet resistance, its film thickness and its temperature vary across the die or the substrate, so a unit’s value depends on its position, and two units far apart differ more than two units side by side. That earlier essay ended by naming this as the next measurement: a ten-to-one divider has an awkward shape for cancelling a gradient, and where its small leg should sit is a question with a definite answer. The answer turns out to be a statement about moments of position, and it says which errors a layout can cancel and which it cannot.

A divider read off a row

The array here is a row of equal unit resistors. Each unit’s value is the nominal times 1+gx+qx2+σn1 + g x + q x^2 + \sigma n, where xx is its position in pitches from the centre of the row, gg a linear gradient in parts per million a pitch, qq a quadratic bow in parts per million a pitch squared, and nn a seeded standard normal draw scaled by the random part σ\sigma. A ten-to-one divider takes ten units in series for its top leg and one unit for its bottom. The ratio is computed exactly from the unit values; nothing is linearised.

A ten-to-one divider from eleven units under a 5 ppm-a-pitch gradient: 25.0 ppm with the small leg at the end, nothing at the centre — and −5.0 ppm there once the row also bowscomputed by solving, not by drawing, every ratio computed exactly from the unit values. Eleven equal units in a row, ten in series for the top leg and one for the bottom, the bottom unit placed at each slot in turn. Under a linear gradient of 5 ppm a pitch alone (solid) the error runs from −25.0 ppm to 25.0 ppm, through zero at the centre, where both legs have the same centroid. With a bow of 0.5 ppm a pitch² added (dashed) the centre reads −5.0 ppm: the top leg's units sit on average 11 pitch² from the centre and the bottom unit at none, and no single slot puts the error at zero for both terms. The moment formula, N/(N + 1) times the difference of the legs' mean errors, agrees with the exact ratio at every slot.-30-20-100102030-5-4-3-2-1012345position of the bottom unit along a row of eleven (pitches from the centre)ratio error of a ten-to-one divider (ppm)gradient 5 ppm a pitchzero at the centreand a bow 0.5 ppm a pitch²−5.0 ppm at the centresolved, then checked — eleven placements, exactthe centroid cancels the slope
Fig. 1 A ten-to-one divider from eleven units in a row, its bottom unit placed at each slot in turn. Under a linear gradient of 5 ppm a pitch alone the error runs from −25.0 ppm with the bottom unit at one end to +25.0 at the other, through zero at the centre. With a bow of 0.5 ppm a pitch² added, the centre reads −5.0 ppm. The exact ratio agrees with the moment formula at every slot.

With a gradient alone the error is a straight line through the centre. At the end of the row the bottom unit sits five pitches from the centre while the ten top units average half a pitch the other way, and the ratio reads 25 parts per million high or low according to which end. At the centre the bottom unit and the chain share a centroid, and the gradient cancels exactly — not approximately, but to the arithmetic, because each leg’s resistance has moved by the same fraction.

Add a bow and no slot is clean. The bottom unit at the centre sits at the bottom of the bow, where its value has not moved at all, while the ten units round it sit on average eleven pitches squared from the centre and have all moved by 11q11q. At half a part per million a pitch squared that is −5.0 ppm, and moving the bottom unit off the centre to trade some gradient against the bow only adds the gradient back.

The slider on the figure at the head of the page sets the gradient to 2, 5 or 10 ppm a pitch, and the line pivots about the centre while the bow’s offset stays put.

Why it is a statement about moments

The divider’s ratio is Rb/(Rt+Rb)R_b/(R_t + R_b), and with each leg’s resistance written as its nominal times one plus its units’ mean error, the ratio’s fractional change is

δ≈NN+1 (εˉb−εˉt),\delta \approx \frac{N}{N+1}\,\left(\bar\varepsilon_b - \bar\varepsilon_t\right),

where εˉ\bar\varepsilon is the mean error of a leg’s units and NN the ratio. That is the same leverage the earlier essay found for random errors, N/(N+1)N/(N+1), applied to the difference between the legs. With the unit error a polynomial in position, a leg’s mean error is the polynomial’s coefficients times the leg’s moments of position — its mean position for the gradient, its mean squared position for the bow. So the ratio error from a gradient is gg times the difference of the legs’ first moments, and from a bow qq times the difference of their second, each scaled by N/(N+1)N/(N+1).

A layout cancels a polynomial error of a given degree exactly when the two legs share every moment up to that degree. That is the whole of the rule, and the common-centroid layouts of integrated-circuit practice are its first-degree case. The rule also says why a single unit is a poor small leg: one point has one position, so its second moment is its first moment squared, and a chain spread around it always has a larger second moment than one point at its centroid can.

Three layouts, three kinds of error

The question is then what it costs to match the second moment, and the cheapest answer is to make the small leg from more than one unit. Four units, two in series and the pair in parallel with another two, have one unit’s resistance; placed symmetrically they share the chain’s centroid at zero, and their positions can be chosen to share its second moment too.

Three layouts of a ten-to-one divider: small leg at the end, 32.3 ppm; small leg at the centre, 19.7 ppm; four units, moments matched, 10.8 ppm of combined error. computed by solving, not by drawing: each layout's ratio error from a 5 ppm-a-pitch gradient, from a 0.5 ppm-a-pitch² bow, and the standard deviation from a random 20 ppm per unit over 20,000 seeded arrays, all computed exactly from unit values. small leg at the end (11 units): gradient 25.0 ppm, bow 7.5 ppm, random 19.1 ppm, root-sum-square 32.3 ppm; small leg at the centre (11 units): gradient 0.0 ppm, bow −5.0 ppm, random 19.1 ppm, root-sum-square 19.7 ppm; four units, moments matched (14 units): gradient 0.0 ppm, bow 0.0 ppm, random 10.8 ppm, root-sum-square 10.8 ppm. The centre cancels the gradient and not the bow. Four units in series-parallel at ±1.5 and ±5.5 pitches of a row of fourteen share both moments with the top leg and cancel both, and their four-way average lowers the random part as well, to σ·N/(N + 1)·√(1/N + 1/4).
Fig. 2 Three layouts of a ten-to-one divider under a 5 ppm-a-pitch gradient, a 0.5 ppm-a-pitch² bow and a random 20 ppm per unit over 20,000 seeded arrays. Small leg at the end (11 units): gradient 25.0 ppm, bow 7.5, random 19.1, in all 32.3. Small leg at the centre (11 units): gradient 0, bow −5.0, random 19.1, in all 19.7. Four units at moment-matched positions (14 units): gradient 0, bow 0, random 10.8, in all 10.8.

Each layout’s three errors are separate quantities and add in quadrature only because the random part is independent of the two systematic ones. The end layout pays all three: 25 ppm of gradient, 7.5 of bow, 19.1 of random spread, 32.3 in all. The centre layout removes the gradient and keeps the bow and the randomness, 19.7. The moment-matched block removes both systematic errors and leaves only its random part — and that part is smaller too, 10.8 ppm against 19.1, because the bottom leg is now an average of four units rather than one. The random spread follows the earlier essay’s law, σ⋅N/(N+1)⋅1/N+1/M\sigma \cdot N/(N+1) \cdot \sqrt{1/N + 1/M}, with MM the bottom leg’s unit count, to within three per cent across the 20,000 arrays.

So the four-unit block is not a cost paid for the bow. It is three more units of area, and it buys the bow’s cancellation and a near-halving of the random spread together; at these numbers the random gain alone is worth more than the bow.

The bow, swept

The bow is the error a centred layout cannot see coming, because it does not move with the small leg’s position and a designer checking a layout for symmetry finds nothing wrong.

As the row bows, the centred small leg drifts −10.0 ppm per ppm a pitch² and the matched block stays at zero: −20.0 ppm against 0.0 ppm at 2 ppm a pitch². computed by solving, not by drawing, exactly from unit values, with a 5 ppm-a-pitch gradient throughout and the bow swept from 0 to 2 ppm a pitch². Centre layout: 0.0, −2.5, −5.0, −10.0, −15.0, −20.0 ppm. Moment-matched four-unit block: 0.000, 0.000, 0.000, 0.000, 0.000, −0.001 ppm. Small leg at the end, for comparison: 25.0, 28.7, 32.5, 40.0, 47.5, 55.0 ppm. The bands are one standard deviation of a random 20 ppm per unit: ±19.1 ppm for the centre layout and ±10.8 for the block. The centre's slope is N/(N + 1) times the top leg's mean squared position, 11 pitch², which is −10 ppm for each ppm a pitch² of bow; the bow outgrows the random spread at about 1.9 ppm a pitch².
Fig. 3 The ratio error against the bow from 0 to 2 ppm a pitch², with a 5 ppm-a-pitch gradient throughout. Small leg at the centre: 0, −2.5, −5.0, −10.0, −15.0 and −20.0 ppm. Moment-matched block: zero to a thousandth of a ppm at every bow. Small leg at the end, for comparison: 25.0 to 55.0 ppm. Bands: one standard deviation of a random 20 ppm per unit, ±19.1 ppm for the centre and ±10.8 for the block.

At the centre the error is a straight line in the bow with a slope of −10 ppm for each ppm a pitch²: ten elevenths of the chain’s mean squared position of eleven pitches squared. The moment-matched block stays at zero to a thousandth of a part per million across the whole sweep, which is the second-order residue of the exact ratio and nothing else. Where the bow passes about two parts per million a pitch squared, the centred layout’s systematic error has grown past its random spread, and the layout is limited by its geometry rather than by its parts.

The layout itself

Ten units of chain and four of block in a row of fourteen, the block at ±1.5 and ±5.5 pitches: both share a centroid at zero and a mean squared position of 16.25 pitch². computed by solving, not by drawing. Fourteen equal unit resistors in a row. The top leg of a ten-to-one divider is the ten unshaded units in series; the bottom is the four shaded units at −5.5, −1.5, +1.5 and +5.5 pitches, joined as two series pairs in parallel, which is one unit's resistance. First moments: block 0, chain 0. Second: block 16.2500, chain 16.2500 pitch². Fourth, which nothing here cancels: block 460.1, chain 476.9 pitch⁴. Any error that is a polynomial of degree two or less in position therefore reaches both legs equally and leaves the ratio untouched; odd terms of every degree cancel by symmetry.
Fig. 4 Fourteen units in a row. The ten unshaded units are the top leg in series; the four shaded units at −5.5, −1.5, +1.5 and +5.5 pitches are the bottom leg, two series pairs in parallel. Both legs have a mean position of 0 and a mean squared position of 16.25 pitch²; their fourth moments, 476.9 and 460.1 pitch⁴, do not match.

The positions follow from two equations. With the block symmetric its first moment is zero, as the chain’s is in a symmetric row. Its second moment must equal the chain’s, and since the row’s total second moment is fixed — 227.5 pitches squared over fourteen slots — that requirement fixes the block’s own sum of squared positions at 65, which a symmetric block at ±a\pm a and ±b\pm b meets when a2+b2=32.5a^2 + b^2 = 32.5. Half-integer slots offer two solutions, ±1.5\pm 1.5 with ±5.5\pm 5.5 and ±3.5\pm 3.5 with ±4.5\pm 4.5. Both cancel the bow exactly; the first spreads the block across the row and the second clusters it, and a layout chosen for a higher-order term would pick between them on the fourth moment.

Every odd moment cancels by symmetry, so a cubic term costs nothing either. The fourth moments differ, 476.9 against 460.1 pitches to the fourth, and a quartic term in the unit error is what this layout leaves, in proportion to that difference of 16.8 pitches to the fourth.

The ratio decides how much a bow costs

The leverage is not the only way the ratio enters. A larger ratio has a longer chain, and a longer chain spreads its units further from its centre.

The bow's error at the centre grows as N(N + 2)/12 — 10.0 ppm per ppm a pitch² at ten to one, 849 at a hundred — and a block of four on whole slots leaves under 1.6 at every ratio. computed by solving, not by drawing, exactly from unit values, for a bow of 1 ppm a pitch² alone. A single bottom unit at the centre of a row of N + 1: N 2, 0.67; N 4, 2.00; N 6, 4.00; N 10, 10.00; N 20, 36.67; N 30, 79.99; N 50, 216.62; N 100, 849.28 ppm, N/(N + 1) times the chain's mean squared position, which is exactly N(N + 2)/12. The best symmetric block of four in a row of N + 4, two series pairs in parallel at ±a and ±b chosen from the whole slots: N 2 at ±0.5, ±2.5: 0.667; N 4 at ±0.5, ±3.5: 1.600; N 6 at ±2.5, ±3.5: 1.429; N 10 at ±3.5, ±4.5: 0.000; N 20 at ±2.5, ±9.5: 0.379; N 30 at ±3.5, ±13.5: 1.090; N 50 at ±13.5, ±17.5: 1.408; N 100 at ±28.5, ±31.5: 1.021 ppm — not always zero, because whole slots do not always allow the second moment to be matched exactly.
Fig. 5 The bow’s ratio error per ppm a pitch², against the ratio N. One bottom unit at the centre of a row of N + 1: 0.67 at N = 2, 2.00 at 4, 10.0 at 10, 36.7 at 20, 217 at 50 and 849 at 100 — exactly N(N + 2)/12. The best symmetric block of four in a row of N + 4, chosen from whole slots: 0.67, 1.60, 1.43, 0, 0.38, 1.09, 1.41 and 1.02.

With the small leg a single unit at the centre, the bow’s cost is N(N+2)/12N(N+2)/12 ppm for each ppm a pitch²: the chain’s mean squared position, which grows as the square of its length, times the leverage. At ten to one it is ten; at a hundred to one it is 849, so a bow that a halving divider would never notice costs a hundred-to-one divider nearly a part in a thousand. The earlier essay found a large ratio costing N\sqrt N in random matching; against a bow it costs N2N^2.

The block of four, placed by searching every symmetric pair of slots, leaves less than 1.6 ppm per ppm a pitch² at every ratio, and zero where whole slots allow the second moment to be met exactly, as they do at ten to one. Elsewhere it is close rather than exact, because the slots are discrete and the equation a2+b2=a^2 + b^2 = target has no solution in them; a fifth or sixth unit in the block, or a dummy unit to shift the row, would close the gap. For a halving divider the block buys nothing at all — at N=2N = 2 it leaves exactly what the centre does — because a two-unit chain has nowhere to spread to.

A gain of a hundred, worked

The earlier essay worked a non-inverting gain of a hundred, which is a hundred-to-one divider in the feedback path, and the same array makes the moments concrete. With the small leg a single unit at the end of a row of a hundred and one, the 5 ppm-a-pitch gradient costs 100101×5×50.5\tfrac{100}{101} \times 5 \times 50.5, about 250 ppm of gain error. At the centre the gradient goes and the bow arrives: half a part per million a pitch squared, times 849, is about 425 ppm — worse than the gradient the centring removed, because a hundred-unit chain spreads fifty pitches either way and the bow grows as the square of that. The random part, at 20 ppm a unit, is 20×100101×1/100+120 \times \tfrac{100}{101} \times \sqrt{1/100 + 1}, about 19.9 ppm, in either place.

With the small leg a block of four at the best whole-slot positions, ±28.5 and ±31.5 pitches of a row of a hundred and four, the bow leaves about half a part per million, the gradient nothing, and the random part falls to about 10.1 ppm because the small leg is now an average of four. The gain error goes from 425 ppm to about ten, for three units of area out of a hundred and four. There is no other change to the array that buys as much: averaging the random part down by the same factor of forty would need sixteen hundred times the units.

That is the shape of the whole result for large ratios. The random part a large ratio pays is N\sqrt N and cannot be removed, only averaged; the systematic part it pays is N2N^2 and can be removed outright by placing a handful of units. A design that treats both as tolerance and buys area against them pays for the wrong one.

What the rule asks of a layout, in order

The moments give a sequence of requirements, each one dearer than the last. A layout that shares the legs’ centroid cancels every linear gradient, which is what common-centroid placement exists for and costs nothing but care. One that also shares their second moment cancels a bow, and needs the small leg to be at least two units placed apart, or four if the leg’s resistance must equal one unit’s. Third-degree terms cancel by symmetry. Fourth-degree terms need a fourth moment matched, which needs more units still.

What decides how far up the sequence a layout should go is the array’s own profile. A film deposited from a source above the centre of a substrate is thickest in the middle and thinner towards the edges, which is a bow; a die with a heat source at one end has a gradient. The trim that takes the drift with it met the same distinction in a pair: an error that has a shape can be cancelled by arranging the parts against the shape, and an error that is random can only be averaged. The mismatch that cancels itself found a current mirror’s errors separating the same way, some cancelling by arrangement and some not, and the trim a lot should get found a production lot behaving differently from any one pair in it — which is what a gradient shared across a wafer does to every divider cut from it.

Where randomness and geometry meet

The random part and the systematic part are measured separately here, and they are not equally expensive to reduce. The random spread falls as one over the square root of the units averaged, so halving it costs four times the units. A systematic error falls to zero once the right moment is matched, at the cost of the units needed to match it. A layout designer is therefore buying two things with area: averaging, which is slow, and moment-matching, which is complete but specific to the error’s shape.

The tolerance that is not on any part separated a divider’s worst case from its spread, and the same distinction is sharper here. A gradient and a bow are not tolerances in the statistical sense at all; on a given array they are fixed numbers, and every divider built in the same place on every array of a batch carries the same systematic error. A batch’s spread can be small while every unit in it is wrong by the same 5 ppm, and only the layout decides whether that 5 ppm reaches the ratio. The shape a tolerance does not print found the shape of a batch’s distribution deciding what a design can do with it; a gradient is the part of a batch’s error that has no distribution at all.

How the numbers were obtained

Each ratio is the bottom leg’s resistance over the sum of the legs, with the units’ values written out and the four-unit block reduced as two series pairs in parallel. The moment formula was then evaluated separately from each leg’s mean position and mean squared position, and held against the exact ratio at every placement: they agree to two per cent at the sizes of error here, the remainder being the second-order terms the formula drops. The random spreads come from 20,000 seeded arrays per layout and are held against the 1/N+1/M\sqrt{1/N + 1/M} law to three per cent.

What the model leaves out

The row is one-dimensional. A real array is two-dimensional, and a gradient can run in any direction across it; a layout that shares moments in one direction and not the other is exposed to the gradient’s other component. The rule generalises directly — the legs must share every moment in both coordinates up to the degree being cancelled — and a two-dimensional common-centroid array is the familiar first-degree case.

The units are identical in everything but value. Real units also differ in their contacts and their ends, and the units at the ends of a row are often worse than the rest because their surroundings differ; dummy units beyond the ends are how layouts deal with that, and they shift the row without changing the rule.

And the divider is unloaded and at one temperature. What matching does about temperature is the reminder that a gradient in temperature is a gradient in value for any part with a temperature coefficient, and that a divider which dissipates unequally makes its own.

The numbers to keep

To first order a divider’s ratio moves by N/(N+1)N/(N+1) times the difference of its legs’ mean unit errors, so a layout cancels a polynomial error exactly when the legs share its moments. A 5 ppm-a-pitch gradient costs a ten-to-one divider 25 ppm with the small leg at the end and nothing at the centre. A bow costs the centred layout N(N+2)/12N(N+2)/12 ppm per ppm a pitch² — ten at ten to one, 849 at a hundred. Four units in series-parallel at ±1.5 and ±5.5 pitches of a row of fourteen share the chain’s first two moments, cancel both errors and cut the random part from 19.1 to 10.8 ppm.

Still open: the second dimension, the voltage coefficient, and two ratios at once

A gradient in any direction. On a two-dimensional array the legs must share their moments in both coordinates. How many units a ten-to-one divider’s small leg needs to share the first two moments in two dimensions, and where they sit, is a search of the same kind on a grid rather than a row.

The voltage coefficient. A film resistor’s value moves with the voltage across it, and in a ten-to-one divider each top unit carries the same voltage as the bottom leg’s units only if the bottom leg is one unit. A four-unit block carries a quarter of the bottom’s voltage on each unit, so it changes the divider’s voltage coefficient as well as its moments, and whether the two help or fight is a measurement with both in the model.

Two ratios that must agree. A difference amplifier’s rejection depends on two dividers matching each other rather than either being right. Built from one array, their errors share the array’s gradient and bow, and a layout that gives both dividers the same moments makes their systematic errors identical — so they cancel in the difference even where neither ratio is right. How much of the array’s profile that tolerates is the next step from one ratio to two.

Part 5 on component tolerance

One argument about Component tolerance, and one of 5 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 toleranceDesign tradeoffDevice matchingDevice mismatchVoltage divider