Why does timing slack change after routing in OpenROAD?

How-to Last tested 28 November 2026

Timing slack can change after placement because routing changes the wire resistance and capacitance used to calculate when signals arrive. On one register pair in OpenROAD’s public greatest-common-divisor design, setup slack moved from +25.78 ps after placement to −9.86 ps after global routing and +6.71 ps after detailed-route extraction. The clock period stayed at 485 ps.

The same register pair at three stages

The design calculates a greatest common divisor. Its public mapped Verilog supplies the cell instances, including the flip-flop that launches the data at _692_/Q and the one that captures it at _698_/D1. We chose the worst register-to-register setup path at placement, then kept that pair fixed. Slack is the time left to meet the check. A negative setup value means the data arrives after the deadline in that timing model.

Fixed register pair, propagated clock, single library corner. All times are picoseconds.
Wire modelSetup arrivalSetup requiredSetup slackHold slack
Placement estimate478.47504.25+25.78+333.71
Global-route estimate516.42506.55−9.86+354.82
Detailed-route extraction497.85504.57+6.71+345.39

Setup slack is required time minus arrival time. Hold slack is minimum-delay data arrival minus the hold requirement. The hold check uses a different chain of gates between the same registers. We compared the ordered data pins across all three stages separately for setup and hold. The table converts OpenROAD’s printed nanoseconds to picoseconds. OpenROAD rounds each printed number independently.

Read the arrival and the deadline separately

Begin with the arrival-time and required-time lines of an expanded setup report. Follow the launch clock to the first flip-flop, the data through the gates, and the capture clock to the destination. The 485 ps period separates the two ideal rising edges. In the first row, the capture clock takes 50.18 ps to reach its flip-flop. The library requires data 30.93 ps before that edge. Adding the clock delay to the period and subtracting that setup requirement gives a 504.25 ps deadline.

From placement to extraction, the data arrived 19.38 ps later. The deadline moved only 0.32 ps later. Almost all the lost setup margin in this comparison is on the arrival side. The reported slack fell by 19.07 ps. If the capture clock had moved substantially, the same comparison of arrivals alone would have told the wrong story.

One connection illustrates where to look. Find _575_/ZN, a NAND output, then the next inverter input _576_/A. The delay for that connection on the setup path was 2.55 ps in the placement estimate, 11.37 ps in global routing and 10.17 ps after extraction. At the NAND output, the reported load changed from 30.39 fF to 41.00 fF to 36.61 fF. The last value still exceeds the placement estimate. A proposed fix that looks only at the destination flip-flop would miss this upstream change.

Why the middle stage failed

The placement snapshot uses legalized cell locations after clock-tree synthesis. OpenROAD estimates the wiring between those locations. Global routing then assigns coarse routes and layers. The detailed router resolves actual wire and via geometry, and OpenRCX extracts resistance and capacitance from the routed design. We wrote those extracted values to a SPEF file and read it back before taking the last report2. A report taken immediately after routing, with the previous estimate still loaded, answers a different question.

The global-route estimate was the least favorable of these three for the selected setup path. Arrival moved 18.57 ps earlier from that estimate to extraction, while the required time moved 1.98 ps earlier. That recovered 16.57 ps of reported slack. Other designs, endpoints and corners can move in either direction. Treat an intermediate failure as an item to investigate. Inspect the changed nets and clock branches before promising that the sign will reverse at the next stage.

How to compare your own reports

  1. Record the path identity. Keep the launch register, destination pin, clocks, edge and check type. Keep the ordered data pins as well. Several combinational branches can reach the same destination.
  2. Record what changed. Save the clock constraints, library corner and wire model with each snapshot. A clock-period edit, a new buffer or a different library changes the question. Our run kept the placed logic and synthesized clock tree in place throughout the comparisons.
  3. Check both timing directions. Read the maximum-delay report for setup, then the minimum-delay report for hold. The positive hold values here apply to this pair. Other register pairs have their own hold margin.
  4. Keep a separate worst-path report. At global routing the worst register-to-register setup endpoint was _697_/D at −17.82 ps. Tracking only that stage’s worst row would silently switch endpoints. OpenROAD Flow Scripts also supports recording slack for all endpoints by stage3.

Reproduce the comparison

Download the experiment and full timing reports. It contains the run script, pinned input URLs and hashes, both timing checks, and an independent register-to-register worst-endpoint summary. With OpenROAD 26Q3 and Python 3 installed, unzip into a fresh directory and run:

python3 reproduce.py

The script downloads the named upstream inputs, verifies their SHA-256 hashes, then starts a fresh single-threaded flow. It compares the new reports with the reference copies and identifies any differences. The results CSV preserves arrival, required time and reported slack for all six checks. For an example of what a constraint change itself can do, see the setup, hold and timing exceptions guide.

Not covered on this page

Sources

  1. OpenROAD’s GCD mapped design, release 26Q3.
  2. OpenROAD’s test flow, including detailed routing, extraction and SPEF readback.
  3. OpenROAD Flow Scripts, Tracking Endpoint Slack Across Flow Steps.

How we test: methodology. Found a mistake? Corrections.