The idea: check every path by adding delays, not by simulating
A chip has millions of paths from one flip-flop to the next. Simulating them would need the right input values to make each path switch. Static timing analysis (STA) skips the values. It takes the netlist (the cells and the wires between them), gives each cell a delay, and adds delays along the wires. Two passes are enough: one forward, one backward. Every path gets checked, in time linear in the size of the netlist.
The page shows one register-to-register stage of a real netlist. Timing Analysis covers the setup and hold formulas, clock skew and synchronizers on a single path; this page shows how a tool finds the worst path among many.
The netlist and its delays
FF1 launches data at a clock edge. Seven gates and one mux (M) sit between FF1 and FF2. All times are counted from the clock edge at FF1.
| Cell | Delay | On the page |
|---|---|---|
| Flip-flop clock to Q | 50 ps | FF1 |
| INV | 20 ps | G1 |
| NAND2 | 35 ps | G3, G5, G7 |
| NOR2 | 45 ps (30 ps upsized) | G2, G4, G6 |
| MUX2 | 40 ps | M: in0 from G3, in1 from G6, select TM |
| FF2 setup / hold | 30 ps / 20 ps | FF2 |
A NOR2 is the slowest gate here because its two pull-up transistors are in series. Where those delays come from, and why a wider gate is faster, is the subject of gate sizing; the page only uses the result: an upsized NOR2 switches in 30 ps.
Arrival times: the forward pass
Visit the nodes in an order where each comes after the nodes that drive it. The arrival time AT of a node is when its output is stable at the latest:
AT = max(AT of its inputs) + its delay.
G4 is a NOR2 driven by G2 (115 ps) and G3 (105 ps), so AT[G4] = max(115, 105) + 45 = 160 ps. Only the latest input counts: the output is not final until every input is. At the end, the data reaches FF2/D at 230 ps. (Demo: STA at T = 300 ps.)
Required times: the backward pass
FF2 needs its D input stable t_setup before the next clock edge, so the required time at FF2/D is RT = T − t_setup = 300 − 30 = 270 ps. Walk back from there. A node must be ready early enough for each cell it drives to switch in time:
RT = min over the cells it drives of (their RT − their delay).
G3 drives G4 (200 − 45 = 155), G5 (235 − 35 = 200) and M (235 − 40 = 195), so RT[G3] = 155 ps. These are the same two passes as the earliest and latest times in the Critical Path Method, run on gates instead of project tasks.
Slack and the critical path
The slack of a node is RT − AT: how much later its signal could come without breaking timing. Positive slack is room to spare; negative slack is a setup violation. At T = 300 ps:
| Node | FF1 | G1 | G2 | G3 | G4 | G5 | G6 | M | G7 | FF2 |
|---|---|---|---|---|---|---|---|---|---|---|
| AT | 50 | 70 | 115 | 105 | 160 | 195 | 240 | 145 | 230 | 230 |
| RT | 90 | 110 | 155 | 155 | 200 | 235 | — | 235 | 270 | 270 |
| slack | +40 | +40 | +40 | +50 | +40 | +40 | — | +90 | +40 | +40 |
The nodes with the worst slack form the critical path: FF1 → G1 → G2 → G4 → G5 → G7 → FF2, 50 + 20 + 45 + 45 + 35 + 35 = 230 ps. It sets the fastest clock: T can shrink by its slack, to 260 ps. The panel on the right prints it the way an STA tool's report_timing does: each cell's increment, the running total, the required time and the slack.
A setup violation, and a fix
At T = 250 ps the required time at FF2/D drops to 220 ps. The arrivals do not change at all, so every slack drops by 50: the critical path now has slack −10 ps. (Demo: T = 250 ps.)
To fix it, make a cell on the critical path faster. Upsizing G4 (a NOR2 with wider transistors) cuts it from 45 to 30 ps. The critical path loses 15 ps and arrives at 215: slack +5 ps ✓. (Demo: upsize G4.) Upsizing G2 instead gains only 10 ps: G4 then waits for G3 (105 ps) rather than G2 (100 ps), and the path FF1 → G1 → G3 → G4 → G5 → G7 → FF2 is critical with slack 0 ✓, met but with nothing to spare. (Demo: upsize G2.) Upsizing a gate off the critical path gains nothing at all. A bigger gate also costs area and power, and it loads the gate before it more, which is why real tools re-run STA after every change.
False paths
M is a mux whose select TM (test mode) is tied to 0 in normal use, so M always passes in0. The path through G6 into in1 is drawn in the netlist, but no data can ever travel along it. It is a false path.
STA does not look at values, so by default it checks this path too. It arrives at 315 ps and reports slack −45 ps at T = 300: a violation that can never happen in the chip. (Demo: check the mux test path.) The designer adds a constraint, set_false_path -through M/in1, or tells the tool the constant with set_case_analysis 0 TM. The arc is then cut in both passes. G6 only feeds that input, so it gets no required time and is not checked at all.
False paths must be declared with care: if the path can in fact be used (TM is not really constant), the tool stops checking a path that can fail.
The hold check
Hold asks the opposite question: does new data reach FF2 too soon, while FF2 is still capturing the old value at the same edge? The same forward pass with min instead of max gives the earliest arrival: FF1 → G3 → G5 → G7 → FF2, 50 + 35 + 35 + 35 = 155 ps. FF2 needs t_hold = 20 ps, so the hold slack is 155 − 20 = +135 ps ✓. (Demo: hold check.) T does not appear, so a slower clock never fixes a hold violation; adding delay to the short path does (see the hold constraint).
| Check | Pass | Takes | Compared with | Fixed by |
|---|---|---|---|---|
| Setup | latest arrival | max of inputs | T − t_setup | faster cells, a slower clock |
| Hold | earliest arrival | min of inputs | t_hold | delay on the short path |
Where STA sits
In a chip design flow, STA runs after synthesis and again after placement and routing, when wire delays are known; a design is signed off only when every path has slack ≥ 0. Choosing gate sizes along a path follows the method of logical effort. Turning a logic netlist into the cells of a library is technology mapping. For how logic becomes gates in the first place, see Verilog to Hardware and Combinational Logic.
See also The ASIC Design Flow, which shows where STA runs in a chip flow and how the worst slack shrinks from synthesis to signoff.
See also Technology Mapping, which produces the netlist of library cells whose delays static timing analysis adds up.
See also Asynchronous FIFO: Gray Pointers Across Two Clock Domains for the clock domain crossing paths that timing analysis cannot check.
See also Gate Delay and Logical Effort for why an upsized NOR2 is faster and how to size every gate on a path.
See also Standard-Cell Place and Route, which shows where the wires come from and why a crowded net can take a long detour that adds delay.
What the page leaves out
- Real cell delays come from tables indexed by input slew and output load, and differ for rising and falling edges; the page uses one delay per cell, the same for setup and hold.
- Wire delay, clock skew, jitter, on-chip variation and multiple corners (slow and fast process, voltage, temperature) are not modelled.
- Multicycle paths, latches with time borrowing, multiple clocks and clock gating checks are left out.
- Tools find false paths only from constraints the designer writes; finding them automatically (sensitization) is not shown.
On the mind map
References
Static timing analysis (Wikipedia)
J. Bhasker and Rakesh Chadha, Static Timing Analysis for Nanometer Designs: A Practical Approach, Springer, 2009: arrival and required times, slack, false paths, hold checks
Neil Weste and David Harris, CMOS VLSI Design, 4th ed., chapter 4 (delay) and section 10.2 (sequencing)
OpenSTA, an open-source static timing analyzer (report_timing, set_false_path, set_case_analysis)