D7 · Lesson 2 · CMOS layout
Turning a transistor schematic into layers on silicon, the layers of an inverter's layout, design rules in units of λ, sizing the pMOS so the inverter switches at mid-supply, sharing diffusion between series transistors, wire resistance in squares, and laying out matched devices for analog circuits
A schematic says what's connected; a layout says exactly where every edge of every layer goes. An inverter's layout is a handful of rectangles: an n-type and a p-type active region, a strip of polysilicon crossing both to make the two gates, metal for power, ground and output, and contacts joining the layers. Get the shapes right and the circuit works; get them a few nanometers too close and the fab can't build it. Layout also decides speed and accuracy, since every wire has resistance and capacitance and every transistor's surroundings affect how well it matches its neighbors.
- The switching threshold of a CMOS inverter (where output equals input) against the pMOS-to-nMOS width ratio, with = 1 V, thresholds of ±0.3 V and electrons twice as mobile as holes.
- With equal widths the nMOS is stronger and pulls below mid-supply. Making the pMOS twice as wide balances the two, putting at exactly 0.5 V and making rise and fall times equal.
- Wider pMOS devices cost area and input capacitance, so many designs settle for a ratio between 1 and 2.
Predict
Electrons are twice as mobile as holes. For an inverter whose rise and fall are equally fast, how wide should the pMOS be compared with the nMOS?
A transistor's current is proportional to its mobility times W/L. Doubling the pMOS width makes up for the holes' halved mobility, so both transistors drive the same current, the output rises as fast as it falls, and the switching threshold sits at mid-supply: 0.5 V here, against 0.466 V with equal widths.
Name it
The layers
A CMOS layout is drawn in layers, each becoming one mask:
- n-well, where the pMOS transistors sit;
- active (diffusion), the regions of silicon that become sources, drains and channels;
- polysilicon (or the metal gate), which forms a transistor wherever it crosses active;
- contacts and vias, joining layers vertically;
- metal 1, metal 2, ..., the wiring.
An inverter is two active regions, one in the n-well, crossed by a single vertical strip of gate, with the drains joined in metal as the output and the sources tied to power and ground rails.
Design rules
Minimum widths, spacings, overlaps and enclosures that the process can reliably build, often taught in units of λ (half the minimum feature): gates 2λ long, metal 3λ wide and 3λ apart. Real processes have thousands of rules, checked by the design-rule checker (DRC).
Sizing
The inverter switches at
with . Equal strengths, , put it at when the thresholds match.
Sharing diffusion
Transistors in series (as in a NAND's nMOS stack) can share a source/drain region, saving area and capacitance. Ordering the gates along an Euler path through the circuit's graph lets one unbroken strip of active serve them all.
Wires and matching
A wire's resistance is its sheet resistance times its length in squares: . Analog layouts place matched transistors close together, in the same orientation, often interleaved in a common-centroid pattern so gradients across the die cancel; random mismatch still follows Pelgrom's law, , so halving it takes four times the area.
Worked example
A 1 mm long wire 50 nm wide has a sheet resistance of 0.1 Ω/□. What's its resistance?
Show the solution
- Count the squares.
- Resistance. enough to slow a signal noticeably, which is why long wires run on the thicker upper metals.
Answer the wire has 2 kΩ of resistance.
Worked example
A process has = 3 mV·µm. What's the threshold mismatch between two 1 × 0.1 µm transistors, and what area brings it to under 3 mV?
Show the solution
- Mismatch of the small pair. Each transistor's area is 0.1 µm²:
- Area for 3 mV. √(WL) must be 1 µm, so WL = 1 µm², ten times the area.
Answer the mismatch is 9.5 mV, and it takes 1 µm² per transistor, ten times the area, to bring it to 3 mV.
Worked example
The 1 mm, 2 kΩ wire also has 0.2 fF of capacitance per µm. About how long does a signal take to cross it?
Show the solution
- Wire capacitance.
- Delay to the 50% point. A distributed RC line gets there after about :
- Long wires. Delay grows with the square of length, so long wires are broken into segments with repeaters, which makes the delay grow only linearly.
Answer a signal takes about 152 ps to cross the wire.
Check
A 1 V inverter has thresholds of ±0.3 V, = 2 and a pMOS 1 times as wide as its nMOS (same lengths). Where does it switch?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A process has = 3.5 mV·µm. What's the standard deviation of the threshold difference between two 0.5 × 0.5 µm transistors?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
A wire 1 mm long and 0.05 µm wide has a sheet resistance of 0.5 Ω/□. What's its resistance?
Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.
Check
A process's electron and hole mobilities are 1350 and 450 cm²/V·s. What pMOS-to-nMOS width ratio gives equal drive?
Check
A wire 1 mm long and 20 nm wide has a sheet resistance of 0.2 Ω/□.
(a)
How many squares long is it?
(b)
What is its resistance?
Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.
Check
A wire has 2 kΩ of resistance per mm and 0.1 fF of capacitance per µm, and is 2 mm long.
(a)
What is its distributed RC delay, 0.38RC?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
And at twice the length?
Check
A process has = 3 mV·µm; a transistor pair is 0.1 µm by 0.5 µm.
(a)
What is the pair's threshold mismatch σ?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
(b)
What area halves it?
Check
A CMOS inverter has = 1 V and thresholds of 0.3 V for both transistors. Its PMOS is 1 times as wide as its NMOS, and holes are 2.5 times less mobile than electrons.
(a)
Where is its switching threshold (square-law estimate)?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What width ratio would put it at 0.5 V?
Explain why
Why are matched analog transistors laid out side by side, often interleaved?
Two transistors that should be identical will differ for two reasons. Systematic variations, such as gradients in oxide thickness, doping or temperature across the die, make a transistor's properties depend on where it sits, so placing the pair far apart builds in a difference. Random variations from the discrete dopant atoms and edge roughness of each device average out over its area, so they shrink only with size. Placing matched devices next to each other, in the same orientation, and splitting each into pieces arranged around a common center makes them sample the same gradients, which cancel, leaving only the random part, which designers then control by choosing the area.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.