S2 · Lesson 35 · Analog layout and matching
Gradients, common-centroid placement, parasitics and coupling
Two transistors drawn identically on a chip are never quite identical. Random variation sets a floor described by Pelgrom's law, but on top of it sit systematic errors that layout either creates or cancels: gradients in oxide thickness, doping or stress across the die; etch effects at the edges of arrays; wire resistance in the current paths; and coupling from noisy digital lines next door. A schematic that simulates perfectly can fail on silicon because of how it was placed. This lesson puts numbers on those effects and on the standard countermeasures.
- The curves show the threshold mismatch of a transistor pair against the distance between their centers: a random floor from Pelgrom's area term plus a systematic part from a linear gradient across the die, added in quadrature.
- Side by side, the gradient's contribution grows with separation; in a common-centroid arrangement it cancels to first order and only the random floor remains.
- Raise the gradient and the advantage of common-centroid layout grows.
Predict
Two matched transistors sit 20 µm apart on a die whose threshold drifts 0.5 mV per 100 µm. What systematic mismatch does that add, and what does a common-centroid layout leave?
A linear gradient gives mV between the two centers. Split each device into halves arranged ABBA, or in a 2 × 2 cross-quad, and the two devices share a center: a linear gradient adds equally to both. Only curvature in the gradient remains.
Name it
Systematic mismatch
A gradient G (per unit distance) in any parameter gives devices whose centers are d apart a difference of Gd. Common-centroid placement (ABBA, cross-quad) gives both devices the same center, cancelling linear gradients. Interdigitation (ABAB…) nearly does. Random mismatch adds in quadrature: Pelgrom's law with its distance term is
Edge effects
Devices at the edge of an array see different etching, stress and implant shadowing. Dummy devices on the ends make every active device's neighbors alike.
Wires are resistors
A wire of n squares of sheet resistance drops . In a current path shared by a sensitive signal, that drop becomes an error: Kelvin (force and sense) connections and star grounds keep large currents out of the sense paths. Wires also have capacitance to each other: a digital line running beside a high-impedance node couples its edges in.
Substrate and latch-up
Noisy circuits inject current into the shared substrate; guard rings collect it before it reaches sensitive devices, and well and substrate taps close by prevent the parasitic thyristor in CMOS from latching up.
Worked example
A pair has = 3 mV·µm and WL = 10 µm², placed 500 µm apart with a distance coefficient S = 1 µV/µm. What is the total mismatch spread?
Show the solution
- Area term.
- Distance term.
- Total.
- Reducing each term. Placing matched devices close together removes the second term; making them bigger shrinks only the first.
Answer a total spread of 1.07 mV.
Worked example
A sense amplifier's ground return shares 20 squares of 0.04 Ω/□ metal with a 10 mA output current. What error does it add?
Show the solution
- Drop on the shared return. It appears in series with the sensed signal: enormous next to a 1 mV sense voltage.
- The fix. A separate sense wire from the resistor's own terminals (a Kelvin connection) carries no current and drops nothing.
Answer an 8 mV error.
Worked example
An 8:1 capacitor ratio is built from nine identical unit capacitors rather than one capacitor eight times the area of another. Why?
Show the solution
- Two terms. A capacitor's value has an area term and a perimeter (fringing) term.
- One big plate. A single large plate has relatively less perimeter than a small one, so an 8× area gives less than 8× capacitance.
- Identical units. Nine identical units have identical area-to-perimeter ratios, so eight of them are exactly eight times one, whatever the fringing.
- Gradients. Arranged in common centroid, they cancel gradients too.
Answer identical units share the same area-to-perimeter ratio, so the 8:1 ratio holds whatever the fringing, and a common-centroid arrangement cancels gradients as well.
Check
A parameter drifts 0.5 mV per 100 µm across the die; two devices' centers are 5 µm apart.
(a)
What systematic mismatch does the gradient cause?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
(b)
What does a common-centroid arrangement leave from a linear gradient?
Check
A pair has = 3 mV·µm, WL = 4 µm², distance coefficient S = 2 µV/µm, and its devices are 2000 µm apart.
(a)
What is the total mismatch spread?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
(b)
What would placing them together leave?
Check
A shared return path has 20 squares of 0.02 Ω/□ metal and carries 100 mA.
(a)
What voltage drops along it?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
(b)
What resistance is that?
Check
A digital line couples to a 0.5 pF high-impedance node through 10 fF; it swings 3.3 V.
(a)
What step does each edge put on the node?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
(b)
How much smaller would a grounded shield line make it, if it cuts the coupling capacitance 100 times?
Check
A capacitor's value is its area plus a fringing term along its edges: a square plate of side a has (arbitrary units, p = 0.05). Unit plates are 50 µm on a side; one large plate of side is compared with k unit plates, k = 8.
(a)
What ratio does the single large plate give against one unit?
(b)
What ratio do k identical units give?
Check
Match each layout technique to the error it attacks.
- Aetch and stress differences at the ends
- Blarger supply voltage
- CIR drops in shared current paths
- Dlinear gradients across the die
- Esubstrate noise and latch-up
Check
A device pair has Pelgrom coefficients A (mV·µm) and S (mV/µm), area W (µm²), separation D (µm), and sits in a gradient g (mV/µm).
Step 1
What is the random mismatch spread (mV)?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What systematic offset does the gradient add side by side?
Step 3
What is the total, combining both as spreads?
Check
Write centroid_error(positions_a, positions_b, g): devices A and B are each split into unit segments at the given positions (µm along one axis), and a linear gradient adds g per µm to each segment. Return the difference between A's and B's average added value. Then compare an ABBA arrangement with AABB.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does a common-centroid layout cancel a linear gradient, and what does it fail to cancel?
A linear gradient adds an amount proportional to position to every piece of a device, so each device's total error is proportional to the average position of its pieces, its centroid. If the two devices are split into pieces arranged so their centroids coincide, as in ABBA or a cross-quad, both get exactly the same added amount and their difference cancels. It does nothing for random variation, which only area reduces, and it can't cancel gradients that curve, since then the error isn't a linear function of position and the centroid no longer tells the whole story.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.