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.

Left, the forward pass at G4, a NOR2 of 45 ps: its inputs arrive at 115 and 105 ps, so its output arrives at max(115, 105) + 45 = 160 ps. Right, the backward pass at G3: it drives G4 (required 200, delay 45), G5 (required 235, delay 35) and M (required 235, delay 40), so it is required by min(155, 200, 195) = 155 ps. Slack of G3 is 155 − 105 = +50
Forward, a node takes the latest input arrival plus its delay; backward, it takes the tightest of its fanouts.

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.

CellDelayOn the page
Flip-flop clock to Q50 psFF1
INV20 psG1
NAND235 psG3, G5, G7
NOR245 ps (30 ps upsized)G2, G4, G6
MUX240 psM: in0 from G3, in1 from G6, select TM
FF2 setup / hold30 ps / 20 psFF2

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:

NodeFF1G1G2G3G4G5G6MG7FF2
AT5070115105160195240145230230
RT90110155155200235—235270270
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.)

Three bars for T = 250 ps, required time 220 ps. Before: the path arrives at 230, slack −10, violated. G4 upsized from 45 to 30 ps: arrives at 215, slack +5, met. G2 upsized instead: arrives at 220 through G3, slack 0, met with nothing to spare
Speeding up a gate helps only as far as the next-longest path: G4 gains all 15 ps, G2 only 10.

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.

The mux M with in0 from G3 and in1 from G6, select tied to TM = 0. Checked, the path through in1 arrives at FF2 at 315 ps against 270 required, slack −45, a false alarm. Declared false, the arc is cut, the worst real path arrives at 230, slack +40
STA knows only the wires, not the logic values: a path that can never carry data must be told to it.

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).

CheckPassTakesCompared withFixed by
Setuplatest arrivalmax of inputsT − t_setupfaster cells, a slower clock
Holdearliest arrivalmin of inputst_holddelay 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

Open the Computer Architecture mind mapComputerArchitectureAbstraction and numbers: layers and bit patternsAbstraction and numbersCombinational logic: output depends only on inputsCombinational logicSequential logic: state held by a clockSequential logicMIPS software: how C becomes machine wordsMIPS softwareThe processor: datapath plus controlThe processorPipelines and parallelism: more instructions at oncePipelines and parallelismMemory and I/O: small fast near, big slow farMemory and I/OLatches and flip-flopsLatches and flip-flopslatch is level, flip-flop is edgeFlip-flops and counter designFlip-flops and counter designexcitation = characteristic backwardsLatch from transistorsLatch from transistorstransmission gates plus inverter loopCMOS layout, DRC, LVSCMOS layout, DRC, LVSDRC: can it be built? LVS: right circuit?Timing analysisTiming analysissetup limits clock, hold limits short pathsAsync FIFO (CDC)Async FIFO (CDC)Gray pointers cross; flags clear lateStuck-at fault testingStuck-at fault testingActivate, propagate, justify: D-algorithmStatic Timing AnalysisSlack = required − arrival, every nodeLogical effort sizingLogical effort sizingd = gh + p; equal effort F^(1/N)Scan chainsScan chainsShift in, capture once, shift outFinite state machinesFinite state machinesMoore: output from state; Mealy: +inputsASMD chart and datapathASMD chart and datapathTransfers land at the edge leaving the state1011 Sequence Detector1011 Sequence DetectorA wrong bit keeps the longest prefixFSM in SystemVerilogFSM in SystemVerilogenum, always_ff, always_comb; default!Shift registers and countersShift registers and countersChained flip-flops shift or count each clockOpen the Computer Architecture mind mapComputer Architecturestate held by a clockSequential logicLatches and flip-flopsLatches and flip-flopslatch is level, flip-flop is edgeFlip-flops and counter designFlip-flops and counter designexcitation = characteristic backwardsLatch from transistorsLatch from transistorstransmission gates plus inverter loopCMOS layout, DRC, LVSCMOS layout, DRC, LVSDRC: can it be built? LVS: right circuit?Timing analysisTiming analysissetup limits clock, hold limits short pathsAsync FIFO (CDC)Async FIFO (CDC)Gray pointers cross; flags clear lateStuck-at fault testingStuck-at fault testingActivate, propagate, justify: D-algorithmStatic Timing AnalysisSlack = required − arrival, every nodeLogical effort sizingLogical effort sizingd = gh + p; equal effort F^(1/N)Scan chainsScan chainsShift in, capture once, shift outFinite state machinesFinite state machinesMoore: output from state; Mealy: +inputsASMD chart and datapathASMD chart and datapathTransfers land at the edge leaving the state1011 Sequence Detector1011 Sequence DetectorA wrong bit keeps the longest prefixFSM in SystemVerilogFSM in SystemVerilogenum, always_ff, always_comb; default!Shift registers and countersShift registers and countersChained flip-flops shift or count each clock
This page on the Computer Architecture mind map · 76 pages in 7 branches · open it to see the whole map and test yourself in recall mode.