S3 · Lesson 47 · Physical design and timing closure
Placement and wire length, power grids and IR drop, electromigration, on-chip variation and closing timing
After synthesis, a design is a netlist that meets timing on paper, with wire delays estimated. Physical design makes it real: cells get places, wires get lengths, and the power grid has to carry amps of current to every cell without letting the supply sag. Timing that looked fine often fails once real wires appear, and the last weeks of a chip project are spent on timing closure: resizing gates, adding buffers, swapping threshold voltages, nudging clocks and rerouting, corner by corner, until every path at every process, voltage and temperature corner has positive slack.
- The voltage drop along a power rail of total resistance R carrying a total current I drawn evenly along its length, against position. Solid: fed from one end. Dashed: fed from both ends.
- Fed from one end, the far end sags by IR/2. Fed from both, the worst point is the middle, at only IR/8: a quarter of the drop for the same metal.
- Real power grids are meshes fed from hundreds of bumps across the die, for the same reason.
Predict
A rail of total resistance 10 Ω feeds 50 mA drawn evenly along it. It's fed from one end and the far end sags 250 mV. If it's fed from both ends instead, what's the worst drop?
62.5 mV, at the middle. Feeding both ends halves the length each half carries current over, and halves the current each half carries: a quarter of the drop. With a 0.8 V supply, 250 mV would slow the far cells drastically (or stop them); 62.5 mV is still about 8%, more than a typical 5% budget, so the grid needs more straps or more feed points.
Name it
Placement and wire length
Placement tools minimize total wire length, estimated per net by the half-perimeter wire length (HPWL): the width plus height of the box around the net's pins. For three pins at x coordinates a, b and c, the width is . They also spread cells to avoid congestion, regions where nets need more routing tracks than exist.
Power delivery
- A rail of resistance R with current I drawn evenly drops fed from one end and fed from both.
- Static IR drop budgets are typically 5% or less of ; dynamic drop (from simultaneous switching) is handled with decoupling capacitance near the cells.
- Electromigration: sustained current pushes metal atoms along a wire until it opens. Each layer has a maximum current density, so a wire of width w carries at most (quoted per µm of width).
Variation and sign-off timing
- Corners: timing is checked at slow, typical and fast process, at low and high voltage and temperature, and in each mode of operation (MCMM).
- On-chip variation (OCV): within one die, a path can be a little slower or faster than its neighbors. Setup analysis derates the launch clock and data paths late (×, such as 1.08) and the capture clock early (×, such as 0.92):
- Common path pessimism removal (CRPR): the clock path shared by launch and capture can't be both slow and fast at once, so is credited back.
Closing timing
Upsize gates on critical paths, add buffers or split fanout, swap cells to low-threshold (faster, leakier) versions, move registers (retiming) or clocks (useful skew), and fix hold by adding delay on short paths. Late changes are made as small ECOs (engineering change orders) to avoid re-running the whole flow.
Worked example
A launch clock path of 400 ps, a data path of 600 ps and a capture clock path of 380 ps, with a 1000 ps clock and 30 ps setup. What's the setup slack without derating, and with derates of 1.08 late and 0.92 early? The two clock paths share their first 300 ps.
Show the solution
- Without derating.
- Derated arrival. The launch side is late:
- Derated required time. The capture side is early: so the slack is ps.
- CRPR. Removing the pessimism on the shared 300 ps credits back for 287.6 ps of slack.
Answer 350 ps without derating, 239.6 ps with the derates, and 287.6 ps after CRPR.
Worked example
A block draws 1.2 W at 0.75 V. How much current is that, and how wide must a single feeding wire be if its layer allows 2 mA per µm of width?
Show the solution
- Current.
- Wire width. At 2 mA/µm: of total wire width.
- What designs do. That's why power comes in through many wide straps on the thick top metal layers and hundreds of bumps.
Answer 1.6 A, which would need a wire 800 µm wide.
Worked example
A net connects pins at (0, 0), (30, 10), (10, 40) and (50, 20) µm. What half-perimeter wire length does the placer estimate, and what if the last pin moves to (20, 20)?
Show the solution
- Bounding box. It spans 0 to 50 in x and 0 to 40 in y:
- After the move. With the last pin at (20, 20), x spans only 0 to 30:
- How placers use it. Moving one cell shortened the estimate by 20 µm; placers make millions of such moves, guided by HPWL because it's quick to update.
Answer 90 µm, and 70 µm after the move.
Check
A net connects pins at (40, 30), (25, 15) and (55, 50) µm. What's its half-perimeter wire length?
Write units the way you normally would: 1.5 µm, 1500 nm and 0.0015 mm are the same answer.
Check
A rail of 2 Ω carries 20 mA drawn evenly along it, fed from one end. What's the drop at the far end?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
The same kind of rail, 2 Ω with 20 mA drawn evenly, is fed from both ends. What's the worst drop?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
A block draws 2 W at 0.7 V. If the metal allows 2.5 mA per µm of width, how much total wire width must carry its current?
Write units the way you normally would: 1.5 µm, 1500 nm and 0.0015 mm are the same answer.
Check
With an 800 ps clock, a launch clock path of 300 ps, a data path of 700 ps, a capture clock path of 420 ps and 25 ps setup, what's the setup slack under OCV derates of 1.05 late and 0.9 early?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
Launch and capture clock paths share their first 150 ps. With derates 1.05 late and 0.95 early, how much pessimism does CRPR remove?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A launch clock path of 350 ps feeds a 400 ps data path; the capture clock path is 380 ps, with the first 150 ps shared with the launch path. The clock is 800 ps and setup is 30 ps.
(a)
What is the setup slack without derating?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
With OCV derates of 1.08 late and 0.92 early?
(c)
And after common path pessimism removal?
Check
A power rail of resistance R carries a current I drawn evenly along it; the layer allows a current density J per µm of width.
Step 1
What does it drop if fed from one end?
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
And if fed from both ends?
Step 3
How wide must the feed be for electromigration, in µm?
Explain why
Why are power grids fed from many points across the die instead of from the edges?
Cells draw current all over the die, and every bit of supply metal between a feed point and a cell drops voltage in proportion to the current through it. Fed from the edges, current for the center cells has to cross half the die on thin on-chip metal, through resistance that grows with the distance, while carrying more and more of the accumulated current, so the drop grows roughly with the square of the distance. Feeding from both ends of a rail already cuts the worst drop to a quarter; feeding through hundreds of bumps spread over the die makes every cell close to a feed point, so the on-chip metal only carries current a short way and the drop stays within a few percent of the supply.
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.