Timing Model and Timing Analysis

RapidWright includes lightweight timing models for UltraScale+ and Versal devices and a static timing analysis (STA) engine. Together they let TimingManager analyze the timing of placed and (partially) routed designs, and let RWRoute route them timing-driven, with clock skew, multiple clocks, multi-SLR timing and a hold report.

The interconnect model builds on the FPT‘19 paper "An Open-source Lightweight Timing Model for RapidWright" (Slides, see also RapidWright Publications), with parameters fitted for UltraScale+ and Versal devices.

This page first describes what you can do with the timing model and how, then how the model works, how accurate it is, the options that control it, its known limitations and how to add a model for a new device family.

Supported Devices and Timing Families

Everything about timing that differs between device series sits behind the TimingFamily interface (package com.xilinx.rapidwright.timing.family); TimingFamilies.of(device) gives the family of a device.

Series

Family

Model

UltraScale+

UltraScalePlusTimingFamily

The fitted class-based model.

Versal

VersalTimingFamily

The fitted class-based model, with one data set per generation: gen1 (AI Core, Premium, Prime, AI Edge, HBM) and gen2 (AI Edge Gen 2, Prime Gen 2).

7 series

Series7TimingFamily

None: its factories throw UnsupportedOperationException.

UltraScale

none

None.

TimingFamilies.getSupportedSeries() gives the series that have a timing model (UltraScale+ and Versal), TimingFamilies.isSupported(series) tells whether a series has one, and TimingFamilies.checkSupported(device) throws an UnsupportedOperationException (with the message of TimingFamilies.getUnsupportedMessage(series)) for a device without one. TimingManager throws that exception on a device of another series.

RWRoute routes UltraScale, UltraScale+ and Versal devices. Timing-driven routing uses the timing family of the device; asked to route an UltraScale design timing-driven (the default), RWRoute prints one warning and routes it non-timing-driven.

Timing-driven Routing with RWRoute

Timing-driven routing is RWRoute’s default mode (--nonTimingDriven turns it off), so no option is needed:

rapidwright RWRoute design.dcp design_routed.dcp

See RWRoute Timing-driven Routing for a complete example and RWRoute Timing Options below for the options.

The timing analysis reads the design’s clock constraints from the XDC constraints of the checkpoint (see Supported Timing Constraints). During timing-driven routing, RWRoute updates the route delay of each connection it routes, TimingManager re-times the design, and the criticality of each connection (from its worst setup slack over all clock groups, including clock skew) weighs delay against congestion in the cost of its next route. Partial routing (PartialRouter) times all nets of the design, including those it preserves, so that timing paths through them stay whole.

The critical path delay that RWRoute prints after each iteration (column “CPD”) is the data path delay of the worst setup check. At the end, RWRoute prints a timing report (see Contents of the Timing Report): the critical path and, with modeled clocks, the setup and hold slacks per clock group.

Note

Hold is reported only: RWRoute reports WHS and THS per clock group at the end of routing, but it does not fix hold violations.

Reporting the Timing of a Design

Timing Reports from the Command Line

TimingAndWirelengthReport times a placed or routed checkpoint as the router does, prints the same timing report as RWRoute and the design’s wirelength. It accepts RWRoute’s options after the checkpoint name:

rapidwright com.xilinx.rapidwright.rwroute.TimingAndWirelengthReport design_routed.dcp

RapidWright Report Timing Example shows a minimal program that prints the critical path of a design.

System properties (see Timing System Properties) are set on the Java virtual machine, e.g. with java -D<name>=<value>, or through the _JAVA_OPTIONS environment variable with the rapidwright launcher:

_JAVA_OPTIONS="-Drapidwright.timing.clocks=ideal" rapidwright RWRoute design.dcp design_routed.dcp

Timing Reports from the Java API

import java.util.List;

import com.xilinx.rapidwright.design.Design;
import com.xilinx.rapidwright.timing.TimingManager;
import com.xilinx.rapidwright.timing.clock.Clock;
import com.xilinx.rapidwright.timing.sta.StaClockAnalysis;
import com.xilinx.rapidwright.timing.sta.StaClockReport;

Design design = Design.readCheckpoint("design_routed.dcp");
// Builds the timing graph and binds the design's clocks
TimingManager timing = new TimingManager(design);
// Prints the requirement, the critical path delay and slack, the delays along the critical path
// and, with modeled clocks, the setup and hold slacks per clock group
timing.getCriticalPathInfo();

if (!timing.isSingleClock()) {
    StaClockAnalysis analysis = timing.getStaClockAnalysis();
    // The clocks, WNS/TNS/WHS/THS per clock group and the 5 worst setup and hold checks,
    // with their clock skew, CRPR and uncertainty (times in ns)
    System.out.print(StaClockReport.format(analysis));
    // Or the numbers themselves (in ps), per group of launch and capture clocks
    analysis.updateHold();
    List<Clock> clocks = analysis.getBinding().getClocks();
    for (StaClockAnalysis.GroupSummary s : analysis.getGroupSummaries()) {
        System.out.println(clocks.get(s.getLaunchClock()).getName() + " -> "
                + clocks.get(s.getCaptureClock()).getName() + ": WNS " + s.getWNS() + " ps, WHS "
                + s.getWHS() + " ps");
    }
}

TimingManager.getStaGraph() gives the timing graph and getStaClockAnalysis() the timing analysis (with the design’s clocks, or the single ideal clock of a design without clocks). The period of a single ideal clock is the timing requirement, which new TimingManager(design) leaves at 0 (RWRoute sets it from the constraints). Set it before reading slacks, with setTimingRequirement() (the largest period of the design’s primary clocks) or setTimingRequirementPs(ps) (for a design without clocks). TimingReport (package com.xilinx.rapidwright.timing.sta) reports an analysis:

  • getWorstSetupCheck(), the worst setup check (StaClockAnalysis.Check: its slack, which is the WNS, its requirement, clock skew, uncertainty, setup time and data path delay), and getCriticalPath(), its data path, as edge ids from the startpoint;

  • getMaxDelayPath(from, to), the path of largest delay between two pins, whatever their clocks (pin ids from StaGraph.getPin(name), with names such as u0/data_reg[3]/Q), and getPathDelay(path), the delay of a path;

  • getLogicDelay(edge) and getNetDelay(edge), the two parts of an edge’s delay;

  • getEndpoints(), getEndpointSlacks(), getWNS() and getTNS(), the setup slacks.

With a single ideal clock, an endpoint’s slack is the requirement less its arrival time, and the critical path is the path of largest arrival time. TimingManager.prettyPrintPathDelays(path) prints a path edge by edge, and TimingManager.getNetOfEdge(edge) gives the physical net of an edge. For example:

import com.xilinx.rapidwright.timing.sta.StaClockAnalysis;
import com.xilinx.rapidwright.timing.sta.TimingReport;

TimingManager tm = new TimingManager(design);
TimingReport report = new TimingReport(tm.getStaClockAnalysis());
int[] criticalPath = report.getCriticalPath();
StaClockAnalysis.Check worst = report.getWorstSetupCheck();
System.out.println(report.getPathDelay(criticalPath) + " ps, WNS " + report.getWNS() + " ps");
if (worst != null) {
    System.out.println("requirement " + worst.getRelation() + " ps, clock skew " + worst.getSkew()
            + " ps, uncertainty " + worst.getUncertainty() + " ps");
}
tm.prettyPrintPathDelays(criticalPath);

DelayEstimator.create(design, useUTurnNodes) (package com.xilinx.rapidwright.timing.delayestimator) gives the interconnect delay estimator of a design’s part, e.g. for the delay of a node (getDelayOf(node)).

Supported Timing Constraints

With modeled clocks (-Drapidwright.timing.clocks=modeled, the default), the analysis uses the clocks of the design’s constraints. TimingConstraints reads the XDC constraints of the design (its EARLY, NORMAL and LATE groups, in Vivado’s processing order) with a small Tcl interpreter. The supported core set is:

  • create_clock -name -period -waveform -add on ports, pins or nets, or virtual;

  • create_generated_clock -name -source -master_clock -divide_by -multiply_by -edges -edge_shift -duty_cycle -invert -add;

  • set_clock_groups -asynchronous|-logically_exclusive|-physically_exclusive -group;

  • set_false_path and set_multicycle_path with -from/-to (clocks, cells, pins, ports), -through (cells, pins, nets, ports; see below) and -setup/-hold/-start/-end;

  • set_clock_uncertainty (-setup/-hold, -from/-to or a list of clocks, -add), set_system_jitter and set_input_jitter;

  • set_clock_latency [-source] [-min|-max] [-early|-late] on clocks (see Clock Model);

  • set_case_analysis 0|1 on pins, only to derive clocks (e.g. the PLL and divider selections of GT channels and BUFG_GT), not to propagate constants through the data paths;

  • the Vivado names of auto-derived clocks, which the design stores in its TOOL_DERIVED_CLK_NAMES property;

  • the object queries get_clocks (-of_objects, -include_generated_clocks), get_cells, get_pins, get_ports and get_nets (with -hierarchical, -regexp, -nocase, -of_objects and simple -filter expressions), all_clocks, current_instance, list, Tcl variables set by set, and expr. Options may be abbreviated to any unique prefix, as in Vivado.

Details of the object queries:

  • As in Vivado, a -hierarchical pattern is compared to the local names of the cells, pins or nets at every level of the hierarchy, so a pattern containing / only matches names from a flattened hierarchy.

  • -filter expressions compare properties with ==, !=, =~ and !~, combined with !, &&, || and parentheses. The properties are NAME, REF_NAME, REF_PIN_NAME, DIRECTION (pins and ports), IS_CONNECTED (pins), IS_SEQUENTIAL, IS_PRIMITIVE, IS_LEAF, PARENT, ORIG_REF_NAME, PRIMITIVE_TYPE, PRIMITIVE_GROUP and PRIMITIVE_SUBGROUP, and other properties of a cell as the netlist holds them. A property that no object has (e.g. one that Vivado computes) matches nothing, also when negated, with a warning.

  • get_pins -filter {NAME =~ <glob>} without a pattern returns the pins whose full name matches the glob; get_pins -of_objects <net> gives the pins on the net (its leaf pins with -leaf).

  • get_ports matches a one-bit bus port held as a scalar (e.g. clk_p[0]) by its bus name, and a bus name given to get_ports or get_pins stands for its bits, as in Vivado. get_ports -scoped_to_current_instance (used by IP constraints) gives the top-level ports that the pins of the current instance connect to, unless -no_traverse; get_ports -of_objects gives the top-level ports of nets and pins.

  • An unquoted bus index in an object name (e.g. u0/g[1].b/O) is part of the name, as in Vivado.

  • Clock objects given as text to create_clock and create_generated_clock (and -source) are a top-level port of that name, else a pin, else a net. A create_clock on objects that match nothing is not applied.

  • set_clock_uncertainty with -rise_from, -fall_from, -rise_to or -fall_to: the same-edge entries (rise to rise, fall to fall) set the uncertainty of the clock pair, the larger of the two; the opposite-edge entries are reported and not modeled.

  • A single -through whose objects end every path through them (leaf pins that are endpoints without fanout, nets whose loads all are, and hierarchical input pins whose net branch below the pin only ends at such pins) applies as -to those pins. -through objects that paths pass through (e.g. a pin in the middle of a path) are not applied, and an exception with several -through options, or with -through and -to clocks, is ignored, with a warning.

Any other command is ignored with one warning per kind. A command is ignored as a whole, with a warning, when Vivado would reject it (an unknown or ambiguous option, an undefined Tcl variable, a -filter expression that does not parse, a pattern given with -of_objects), when it uses a Tcl command that the reader does not evaluate (e.g. lindex), or when an unsupported option would change its meaning (e.g. -rise_from, -rise_through). See Timing Model Limitations for set_max_delay, set_input_delay and set_output_delay.

TimingManager (and so RWRoute) prints the warnings of the constraints, of the clock network, of the clock model, of the uncertainties and of the binding of the clocks to the timing graph once, one line per kind with its number of occurrences, e.g.

WARNING: Clock binding: exception -through objects other than endpoints without fanout (not applied to them) (2 times)

With RWRoute’s --verbose, the objects of each kind (e.g. the clock pins or cells) are listed below it.

Contents of the Timing Report

The Timing Report section that RWRoute prints at the end of timing-driven routing (and that TimingManager.getCriticalPathInfo() and TimingAndWirelengthReport print) contains:

  • the timing requirement, the critical path delay and the slack, in ps, and, with modeled clocks, the clock skew, clock uncertainty and setup time of the worst setup check. The critical path is the data path of the worst setup check: its slack is the WNS of the clock group table, its requirement the time between the launch and capture clock edges, and the clock skew, uncertainty and setup time make up the difference. Without clocks, the critical path is the path of largest arrival time, against the timing requirement;

  • the same delay and slack adjusted by the pessimism factors --pessimismA and --pessimismB (“With timing closure guarantee”; these options are deprecated and will be removed in the next release);

  • the logic and net delays of each edge of the critical path, and with --verbose the delays of the nodes of its connections;

  • with modeled clocks and at least one clock in the design (in ns):

    • the clocks, with their period, waveform, source latency and master clock;

    • for each group of launch and capture clocks: the requirement, WNS, TNS and the number of failing and total endpoints for setup, and WHS, THS and the number of failing endpoints for hold;

    • whether the design has paths between unrelated clocks, which are not timed (see Clock Model);

    • with --verbose, the 5 worst setup and hold checks with their data path delay, clock skew (source and destination insertion delays and latencies, CRPR), uncertainty and setup or hold time.

For example, the timing report of the design of RWRoute Timing-driven Routing (one clock, with a period of 3 ns), routed by RWRoute:

Timing requirement (ps):               3000.00
Critical path delay (ps):                 2620
Slack (ps):                                369
Clock skew (ps):                             0
Clock uncertainty (ps):                     36
Setup time (ps):                           -25
With timing closure guarantee:
Critical path delay (ps):                 2799
Slack (ps):                                191

Detail delays:
------------------------------------------------------------------------------
Logic (ps)  Net (ps)  (intrasite (ps))  Total (ps)    Netlist Resource(s)
----------  --------------------------  ----------    ------------------------
         0         0                 0           0    superSource
        78         0                 0          78    FD_n/C
         0       753                 0         753    FD_n/Q
                                                      net: opr[57]
        90         0                 0          90    LUT5_1b7/I0
         0        54                 0          54    LUT5_1b7/O
                                                      net: nfd6
       123         0                 0         123    LUT3_1b6/I1
         0       234                 0         234    LUT3_1b6/O
                                                      net: nfd7
        36         0                 0          36    LUT5_1bd/I3
         0       182                 0         182    LUT5_1bd/O
                                                      net: n100c
       110         0                 0         110    LUT6_2_a4/LUT5/I2
         0       218                23         218    LUT6_2_a4/LUT5/O
                                                      net: LUT6_2_a4/O5
       116         0                 0         116    LUT6_2_a5/LUT5/I2
         0       212                24         212    LUT6_2_a5/LUT5/O
                                                      net: LUT6_2_a5/O5
       100         0                 0         100    LUT5_1bc/I3
         0       162                24         162    LUT5_1bc/O
                                                      net: n1012
       100         0                 0         100    LUT2_1b5/I1
         0        51                51          51    LUT2_1b5/O
                                                      net: nfea
         0         0                 0           0    FD_jmm/D
----------  --------------------------  ----------    ------------------------
Arrival time:                                 2620
------------------------------------------------------------------------------

Clocks
  Clock                                Period  Waveform                Latency  Master
  clk                                   3.000  {0.000 1.500}             0.000  -

Clock groups (launch -> capture)
  From Clock               To Clock                   Req(ns)   WNS(ns)     TNS(ns)  Failing    Total   WHS(ns)     THS(ns)  Failing
  clk                      clk                          3.000     0.369       0.000        0     1082     0.041       0.000        0

With --verbose, each of the worst checks reads:

Worst setup checks
  Slack 0.369 ns: FD_n/C -> FD_jmm/D
    launch clk, capture clk, requirement 3.000
    data path 2.620 (16 edges), clock skew 0.000 (source 0.000 + 0.000, destination 0.000 + 0.000, CRPR 0.000), uncertainty 0.036, setup -0.025

How the Timing Model Works

The timing model has four parts:

  • An interconnect model gives the delay of each routing node, of the fanout of a net at a node, and of the last hop into each site pin (DelayEstimator, created by the device’s timing family). RWRoute uses it to cost routing nodes and to estimate the remaining delay to a sink.

  • Cell arcs give the logic delays, clock-to-output delays and setup and hold times of cells, and the configuration delays between site pins and BEL pins (FittedCellArcLibrary).

  • A static timing analysis (STA) engine times a design over an array-based timing graph (StaGraph, StaClockAnalysis), incrementally as the router changes route delays.

  • A clock model reads the design’s clock constraints, derives the generated clocks, and gives clock insertion delays, pessimism removal (CRPR) and uncertainty (package com.xilinx.rapidwright.timing.clock).

Interconnect Delay Model

Versal Interconnect

Every routing node belongs to a class: a general wire of a given type and direction (e.g. HQUAD_E, VLONG12_S), or a local or site-adjacent node (SDQNODE, INODE, IMUX, CLE_BNODE, INTF2, IRI, SLL_DATA, …). Nodes of site pins carry no delay. A node of class c driven by a node of class p has the delay (ClassBasedDelayEstimator)

delay = (base[c] + l[c] * length + sum_j w[c][j] * crossings[j] + trans[p][c]) * scale
  • base[c] is the delay of the class, including its driving PIP.

  • length is the number of INT columns plus INT rows the node spans, weighted by l[c]: the k1*L term of the FPT‘19 model. Most general wires have a single length, so this mainly matters for super long lines and wires cut short at device edges.

  • crossings[j] counts the gaps of class j between consecutive INT columns (DSP, BRAM, URAM, VNOC, hard blocks, …) or rows (RCLK, clock region and SLR boundaries, …) that the node spans, weighted by w[c][j]: the k2*d term of the FPT‘19 model. CrossingIndex builds the cumulative counts once per device at runtime, shared by the estimators of all corners, from the tile types matching the regular expressions of the column and row classes, so no per-device data is stored. On devices whose SLRs each have their own tile coordinates (e.g. xcvp1902), the counts are kept per SLR, and a node whose wires lie in more than one SLR (a super long line) is measured in device-wide coordinates.

  • trans[p][c] corrects for the context of the node: a general wire and the INODE or SDQNODE it drives behave as one stage whose delay depends on both.

  • scale adjusts for the speed grade and the device, per corner.

Some bases, length weights and transitions are negative (they correct wires cut short at device edges and the split of a stage’s delay between its nodes): a node’s delay is taken as at least 0, and so is the delay RWRoute charges for a hop (node delay plus transition).

The fanout of a net adds delay to every connection routed through a node, in up to three ways (the last two are optional terms of the data, which the UltraScale+ and Versal gen1 data have):

  • a fanout delay of the node’s class per extra branch of the net at the node;

  • a fanout crossing delay per extra branch, per gap of a column or row class that the node spans, e.g. for a wire across an I/O column that branches;

  • a fanout load delay of the node’s class per doubling of the number of sink pins that the net’s routing reaches through the node (DelayEstimator.getFanoutLoadDelay), which mainly charges the trunks of nets with many loads.

The timing analysis and RWRoute count the branches and the sink pins below each node of a net’s routing and charge the same delays.

From one speed grade to another, the fanout delays do not change in proportion to the other delays. The Versal gen1 data therefore has a second speed grade factor per corner for the fanout delays (ClassBasedDelayEstimator.getFanoutScale()); a grade without one scales its fanout delays like its other delays.

A device with a routing wire that the node classes of its family do not know is rejected with an IllegalStateException when its delay estimator is created, so that no such wire is timed as 0 ps.

The parameters were fitted, by least squares, to the route delays of sampled source-to-sink interconnect paths on gen1 devices (xcv80, xcvc1902, xcve2302, xcvm1802, xcvp1002, xcvp1202, xcvp1552) and on xc2ve3858 (gen2), at the four corners of the reference speed grade (-2MP), and checked against the connections of routed designs on xcvc1902, xcvp1202, xcv80 and xc2ve3858. The gen1 parameters were then refitted with the connections of designs routed by Vivado and by RWRoute on xcvp1002 and xcvp1552: the routes that a timing-driven router picks, such as the trunks of nets with thousands of loads, are rare among sampled paths. The fit used delay data only; no Vivado device or speed files were read.

A gen1 wire that crosses a column or row gap (a hard block, memory, DSP, NoC, configuration or I/O column, or a row break) either only passes the gap or also has a wire in the gap’s interface tiles, and the second kind is slower by up to about 100 ps. No node class tells them apart, so the gen1 data has track deltas (InterconnectParams.getTrackDeltas()), as the UltraScale+ data has for its I/O columns (see below): a delta per interface tile wire (about 1,500 wires per corner), which a node that crosses a gap of any of these classes adds for its wires in those tiles. The deltas were fitted together with the crossing weights, to the connections of routed designs and of synthetic nets, keeping the crossing part of every node’s delay at least 0, so that the lookahead delays stay a lower bound.

UltraScale+ Interconnect

The class-based model of UltraScale+ devices uses node classes for general wires (by type and direction), local, pin, interface and Laguna nodes, column classes for Laguna, BRAM, DSP, URAM, I/O, hard block, configuration, PS, GT and RF columns, and row classes for RCLK rows, clock region and SLR boundaries (UltraScalePlusDelayEstimator). It was fitted, at all four corners, to the route delays of sampled interconnect paths on xcvu3p, xcvu9p, xczu7ev and xcau25p (speed grade -2) and of the connections of designs routed by Vivado and by RWRoute on xcvu3p, xcvu9p, xcvu29p, xcvu37p, xczu7ev, xczu28dr, xcau25p and xcku5p, with speed grade and device scales per corner (fast corners barely depend on the speed grade).

Unlike Versal slice pins, UltraScale+ slice pins share their node with the interconnect, and the last hop into a pin differs per pin (e.g. LUT input 1 versus 6) in a way no node class captures. The model therefore adds a delta per source and sink site pin to each connection (DelayEstimator.getPinDelay(source, sink)): that of the pin, plus, outside slices, that of its bus.

A wire that crosses one of the wide I/O columns takes one of several physical tracks through the column, and the tracks differ in delay: for the same node class and span, the delays fall into two groups about 190 ps apart. No node class tells the tracks apart, but the node’s wire in the column’s interface tile does. The UltraScale+ data therefore has track deltas (InterconnectParams.getTrackDeltas()): a delta per interface tile wire (843 to 845 wires per corner), which a node that crosses an I/O column adds for its wires in those tiles. They were fitted to the delays of the nodes across the I/O columns of designs routed by Vivado on six devices. Wires across the configuration and hard block columns show no such structure.

Lookahead and Pre-route Delays

A delay estimator has two kinds of delays per INT column and row:

  • The admissible lookahead delays (DelayEstimator.getAdmissibleLookaheadDelayPerTileX/Y), the least delay per INT column and row of any route. RWRoute’s search (an A* search) estimates the remaining delay to a sink with them, so that the estimate stays a lower bound.

  • The pre-route lookahead delays (DelayEstimator.getLookaheadDelayPerTileX/Y), estimates of a route’s delay per INT column and row that are not lower bounds (three times the admissible ones). The timing analysis assumes, for a connection that is not routed yet, a base pre-route delay plus these delays for the columns and rows between its pins.

Both are fitted at SLOW_MAX and scaled to the other corners by the ratio of the summed class base delays. The admissible delays are a lower bound at SLOW_MAX, the corner that RWRoute’s search uses.

With -Drapidwright.rwroute.lookahead=anisotropic, RWRoute’s search uses instead the delays per INT column and row of the best route on an empty device: the admissible delays times the ratios of the family’s router knobs (UltraScale+: 1.85 per column and 1.1 per row; Versal: 2.0 and 1.0), times -Drapidwright.rwroute.lookahead.weight (default 1). This estimate is not a lower bound; it trades QoR for runtime.

Cell Timing Arcs

FittedCellArcLibrary holds the fitted cell arcs of a family: the logic delays, clock-to-output delays and timing checks (setup, hold, recovery, removal) of cells and the configuration delays between site pins and BEL pins, at the four corners, with speed grade and device factors. The arc provider of the STA, FamilyArcProvider, builds the timing graph’s cell arcs from it.

The speed grade factors are per category and cell type. An arc whose delay changes from one grade to another unlike the other arcs of its cell type (by more than 1% and 0.5 ps; e.g. some carry arcs of LOOKAHEAD8, the clock-to-output arcs of PS9 ports, the sub-arcs of DSP48E2) has a factor of its own, the same on every instance and device.

  • Lookup. Arcs are keyed by cell type, role and pins (physical BEL pins in slices, logical bus names elsewhere). Among the arcs of a key, those of the cell’s BEL and site type are preferred, and the one whose configuration (cell and macro properties) matches best wins, mismatches of register properties weighing 4 and others 1. Bus arcs may have per-bit values. Duplicate arcs between the same two pins are merged, with the largest max and the smallest min delay.

  • Gating. Register and mode properties (e.g. AREG, A_INPUT, CREG, AMULTSEL, the LOOK* properties of LOOKAHEAD8) decide whether an arc exists: an arc whose gate properties do not match the cell’s is skipped, so the combinational arcs of a registered DSP input do not exist. If no arc remains, the arc is absent only when the cell’s gate values were seen without it; otherwise the nearest arc is kept (conservatively).

  • Unset properties take their UNISIM defaults (Design.getDefaultCellProperties), so a cell created without properties is timed in its default configuration.

  • DSP control inputs. The bits of a DSP’s OPMODE, ALUMODE, CARRYINSEL and INMODE ports that constants drive are decoded (DSP48E2 and DSP58): the arcs of the ALU multiplexers, adder and pre-adder inputs they deselect are dropped, as Vivado does not time them. A bit driven by logic is dynamic, and an arc is kept if any value of the dynamic bits selects it.

  • LUT inputs. A LUT has no arc from an input its function does not depend on, after constant inputs are propagated through its equation.

Some paths are not timed:

  • An input buffer has no arc from a pad that an output buffer of the design also drives (e.g. the INBUF and OBUFT of an IOBUF): the loopback from the output buffer through the pad back into the design is not timed.

  • The clock enable of a DSP48E2 register that is bypassed (e.g. CEA1 and CEA2 with AREG=0; with AREG=1, both are checked when logic drives them), or whose register feeds nothing, has no check, and a DSP48E2 register group whose clock enables are all tied to ground has neither checks nor clock-to-output arcs.

  • On UltraScale+ block RAMs, a port whose clock pin is tied to ground or power, or unconnected, has neither checks against that clock nor clock-to-output arcs from it; logical pins wired to no physical pin have no check; and the reset and clock enable of an unused output register (RSTREG and REGCE of a port whose DOA_REG or DOB_REG is 0) have no check.

Some paths get special care:

  • On UltraScale+ block RAMs without the output register, the clock-to-output delay depends on the read width of the port: in true dual port mode it is up to about 140 ps longer than in simple dual port mode. These arcs are keyed by the output register and the read width.

  • A RAMB36E2 logical pin wired to a site pin of each of its RAMB18 halves is timed through every site pin, each with its own route.

  • A global clock buffer driven by fabric logic (BUFGCE, BUFGCE_DIV, BUFGCTRL, BUFG; not BUFG_GT or BUFG_PS), e.g. one inserted on a high-fanout clock enable or reset net, carries data: the path from the logic driving the buffer, through the buffer, to the loads of its output net is timed. Once that net is routed on the global clock network, its route delays come from the device family’s clock delay model.

  • The address of a LUT RAM is timed through the site pin of its own LUT (its read address) and through the site pin of the site’s write address, so that its read path and its write check take the larger of the two routes.

  • The registers of the Versal XPHY bus logic interface (BEL type BLI_DFF) are clocked through their CLK BEL pin.

A net edge’s delay is the configuration delay from the source BEL pin to its site pin, the route delay, and the configuration delay from the sink site pin to the sink BEL pin. The route delay walks the routed nodes with the family’s delay estimator (node, transition, fanout and pin delays); an unrouted connection gets the delay of its dedicated path if it has one (e.g. a carry or DSP cascade), else the pre-route estimate from the site pin that the router routes it from.

A placed design whose nets have no site pins yet (as Vivado writes a placed, unrouted checkpoint) is timed through the site pins that its site routing uses, as if they existed: new TimingManager(design) times it as after DesignTools.createMissingSitePinInsts(design), without changing the design.

Static Timing Analysis Engine

The STA engine is in package com.xilinx.rapidwright.timing.sta.

  • Graph. StaGraph is a struct-of-arrays, compressed sparse row (CSR) directed acyclic graph with int ids. StaGraphBuilder builds it from a design in one pass over the placed cells (their arcs from FamilyArcProvider, in parallel) and one over the nets (an edge from each source pin to each sink pin, through the routing connection to the sink’s site pin). The assembly merges duplicate edges, cuts combinational cycles (reporting them), marks start and endpoints, and levelizes the graph: pins are numbered level by level, so a forward pass is a linear sweep. The topology is fixed once built; only the route delays of connections change. An edge’s delay is a fixed part (logic and intra-site delays) plus the route delay of its connection, at a max and a min corner.

  • Propagation. StaClockAnalysis sweeps the levels forward (arrival times) and backward (required times), each level in parallel chunks. Each pin only depends on earlier levels, so the results are deterministic: they do not depend on the number of threads. Pins without fanout that are not endpoints have an infinite required time. The clocks are those of the design, or, for a design without clocks (or with ideal clocks and at most one clock), a single ideal clock of the timing requirement: every startpoint launches at 0, every endpoint is checked against the requirement, and the criticalities are normalized to the larger of the requirement and the largest arrival time.

  • Multi-clock. Times are kept per tag (a launch clock edge and the path exceptions whose -from matches the startpoint), in flat arrays per pin. Checks are grouped by launch and capture clock; a connection’s criticality is the maximum over its tags of its slack relative to its group’s requirement, shifted by the group’s WNS.

  • Incremental updates. The router sets the route delays of the connections it changed; a pass only runs if a delay changed since the last one, recomputes the arrival times of the fan-out cone of the changed connections only, and reuses its buffers. Hold times are only computed on demand.

TimingManager ties the parts together. It times all nets, including those that a partial routing preserves, so that paths through them stay whole. Each router connection sets the route delay of the timing connection of its own sink site pin; a router connection to a site pin without a timing connection of its own shares that of the site pin its cell pin is routed from, which gets the larger of their delays. The STA uses an estimator that does not mask U-turn nodes even when the router’s does, as existing routes may use them.

Clock Model

Clock network. ClockNetwork propagates the clocks through the netlist to the clock pins, with the clocks that MMCM, PLL, XPLL, X5PLL and DPLL generators, BUFGCE_DIV dividers, the O1 to O4 outputs of MBUFGCE, MBUFGCE_DIV and MBUFG_GT buffers, the ODIV2 output of IBUFDS_GTE buffers and GT transceivers derive, named and aligned as Vivado does. On Versal, the read clock of an XPHY nibble is derived at its FIFO_WR_CLK output from the strobe received on DATAIN[0] (the strobe divided by 4, named <cell>/RX_DQS_DIV4_0 as in Vivado), so that the registers reading the nibble’s data and the clocks that an XPLL derives from it are timed. It is derived for nibbles on their own strobe with an RX data width of 8 and read FIFOs in BYPASS mode; other configurations get a warning and no clock. Clock pins clocked through an inversion (an inverter, the programmable inversion of a clock buffer, divider or generator input such as IS_I_INVERTED, IS_I0_INVERTED or IS_CLKIN1_INVERTED, or the clock pin’s own IS_C_INVERTED) launch and capture on the falling edge; a divider or generator with an inverted input derives its clocks from the falling edges. A generator whose CLKINSEL is constant derives the clocks of the selected input only. The phase shifts of MMCM and PLL outputs are latencies (PHASESHIFT_MODE LATENCY, the default on UltraScale+ and Versal) or shifts of the output waveforms (WAVEFORM). COMPENSATION AUTO is resolved as Vivado does: INTERNAL with a direct feedback; with a feedback through a clock buffer, ZHOLD if the MMCM’s input clock comes straight from an input buffer, else BUF_IN (always BUF_IN on Versal).

Insertion delay and CRPR. ClockModel times the clock routes of the design (a tree of the clock nodes, timed with the family’s ClockData) for the insertion delay of each clock pin at the four corners, and gives the clock pessimism removal (CRPR) of each launch and capture pair from their common node. set_clock_latency -source adds to the insertion delays of a clock and of the clocks generated from it that have no source latency of their own. Without -source, a network latency makes the clock ideal, as in Vivado: its latency replaces the insertion delays, with no CRPR, and a source latency still adds to it. -min/-early set the min corners’ value, -max/-late the max corners’, neither both (so -min alone leaves an ideal clock a max latency of 0, as in Vivado).

Uncertainty. UncertaintyModel combines system, input and discrete jitter, phase error and user uncertainty for each pair of clocks. The discrete jitter depends on the kind of the clock’s source (MMCM, PLL, PS, GT or port). On 35 Versal gen1 devices, the jitter of a clock that enters on a port depends on its period and on the clock regions that its clock pins span (the larger of a term by the number of clock region rows and one by the number of columns), per group of devices (UncertaintyModel.PortJitter), as in Vivado. Vivado’s jitter also grows with the design’s RAM activity above 40 MHz, which is not modeled: a design whose block RAMs and UltraRAMs may switch at more than 40 MHz, averaged over the RAMs of the device, gets a fixed port clock jitter instead (182 ps), with a warning. Where a family’s data has no jitter for a kind, that of the closest kind is used, with a warning: the PLL’s for the MMCM (Versal gen1), the MMCM’s for the PLL (XPLL and DPLL on Versal gen2), and the port clocks’ for GT clocks (UltraScale+). On Versal, a clock that reaches its clock pins through no clock buffer (e.g. an out-of-context clock port driving its flip-flops directly, a create_clock on a register output, or a clock generated from such a clock by a register divider) is a FABRIC clock, with a clock jitter of 600 ps, as Vivado charges (two such clocks combine as two clocks of different sources, sqrt(600^2 + 600^2)); and the system jitter adds to the discrete jitter before the input jitter is combined in quadrature: sqrt((SJ + DJ)^2 + IJ^2).

Inter-SLR compensation. On multi-SLR devices, a check whose launch and capture clock pins are in different SLRs, or whose data path crosses an SLR boundary, gets Vivado’s inter-SLR compensation, a fraction of the clock delay difference after the common node (0.15 on UltraScale+, 0.10 on Versal gen1, none on Versal gen2).

Unrelated clocks are false paths. Paths between clocks with no common primary clock or source are not timed. Vivado times them (as unsafe clock interactions) unless clock groups or false paths say otherwise; most such crossings are asynchronous, and timing them would charge the router with requirements the design does not have. The clock report says when a design has such clocks. RWRoute and TimingManager always treat them as false paths; an analysis built with the API times them as Vivado does with ClockRelations.setUnrelatedFalse(false) on its relations before StaClockBinding.build.

Ideal clocks. With ideal clocks (-Drapidwright.timing.clocks=ideal) there are no insertion delays, skew, uncertainty nor setup and hold times; a design with at most one clock is timed against its single requirement, as a design without clocks is (see Static Timing Analysis Engine). A TimingManager created with new TimingManager(design) needs setTimingRequirement() for that requirement (see Timing Reports from the Java API).

Hold Analysis

With modeled clocks, hold is analyzed with the min delays, at the fast corner (FAST_MIN data and launch insertion, FAST_MAX capture insertion) and at the slow corner (SLOW_MIN data and launch, SLOW_MAX capture); a hold slack is the minimum over the two. Endpoints with little hold slack (below 500 ps) get the exact worst launch, among those arriving within 600 ps of the earliest, rather than the bound of the propagation. Hold is reported only: the router reports WHS and THS per clock group at the end of routing, but does not fix hold violations.

Multi-SLR Timing

SLR crossings are part of the interconnect model: SLL (super long line) and Laguna nodes are node classes, and SLR boundaries are row crossings. Laguna flip-flops have fitted arcs. Clock insertion delays cover pins in every SLR, and checks get the inter-SLR compensation above.

For each SLR still to cross, timing-driven RWRoute charges the delay of the cheapest SLL crossing (SlrModel) or, if less, the delay of the rows that an SLL spans at the lookahead’s rate, so that its estimate stays a lower bound across SLRs; the same delay is charged on entering the chain of nodes that leads to an SLL. Only the SLLs that join two SLRs count: on Versal devices most SLL nodes start and end in one SLR and cost less than half of any crossing. --sllLookahead always charges the SLL crossing’s delay, the tighter of the two on UltraScale+ (about 750 ps against about 380 ps for the 60 rows) and on Versal (on xcv80, about 590 ps against about 420 ps for the 75 rows).

Speed Grades and Timing Corners

All delays come at four corners (Corner): SLOW_MAX, SLOW_MIN, FAST_MAX and FAST_MIN.

The data of each table is for a reference grade (-2 on UltraScale+, -2MP on Versal), with factors for the other grades it lists (per corner; for cell arcs per category, check kind and cell type, and per arc for the arcs that scale unlike their cell type; for Versal gen1 interconnect, one for the fanout delays and one for the other delays). A grade the table does not list uses the nearest listed one (SpeedGrade.nearest):

  1. a grade of the same voltage class (the letters after the speed digit, e.g. L, LV, LHP) with the nearest speed digit, the slower one on a tie;

  2. else a grade of the same speed digit whose voltage class shares the longest prefix with the grade’s, then the shortest;

  3. else the reference grade.

Each table warns once per grade it substitutes.

Timing Model Accuracy and Runtime

All comparisons are with Vivado 2026.1.

Timing-driven Routing Results

Timing-driven RWRoute (the default mode) was run on 26 designs:

  • 15 UltraScale+ xcvu3p designs: benchmarks of the FPL‘26 optimization contest, under their published names.

  • 11 Versal designs: 9 benchmarks of the FPGA‘24 routing contest, implemented again on Versal devices (the contest published them for xcvu3p; the Versal implementations are not published), and 2 test designs, picoblaze_2022.2 of RapidWright’s test data and a small design that spans the SLRs of a multi-SLR device.

RWRoute routed the signal nets of the placed designs (partial routing), except on the two Versal test designs, which it routed in full. Route time is RWRoute’s “Route design” time, the median of 3 runs on 8 threads of an AMD EPYC 9684X host (the 3 runs of a design differ by a median of about 14%); non-timing-driven routes ran once. Memory is the live heap, the largest heap after a garbage collection. WNS and WHS are from Vivado 2026.1 report_timing_summary on the routed designs; the 4 Versal designs without clock constraints (boom_soc, koios_dla_like_large, picoblaze_2022.2 and vtr_mcml) were timed with a 2.0 ns clock.

A timing-driven route is sensitive to small changes of the delays. Routed again with all interconnect delays changed by 0.1%, a design’s Vivado WNS moves by 40 to 70 ps (standard deviation, measured on 4 Versal designs), and by about 0.2 ns on rosetta_optical-flow, whose critical path delay still changes between the last routing iterations. The WNS values below are those of one route per design, so differences of that size between two routes of a design are not significant.

Two comparisons are made. On UltraScale+, timing-driven RWRoute with this timing model is compared with timing-driven RWRoute with the previous (FPT‘19) UltraScale+ timing model of earlier releases; timing-driven routing of Versal was not available with the previous model. On both families, timing-driven RWRoute is compared with non-timing-driven RWRoute, both with the current timing model. Ratios are per design, then the median over the designs; a WNS gain is the Vivado WNS of the first minus that of the second.

Comparison

Family

Designs

Median route-time ratio

Median live-heap ratio

Vivado WNS

This timing model / previous model

UltraScale+

15

0.73 (geomean 0.58)

0.86

better on 14 of 15; gain median +1374 ps, mean +1396 ps

Timing-driven / non-timing-driven

Versal

11

1.44

1.11

better on 10 of 11; gain median +1259 ps, mean +1969 ps

Timing-driven / non-timing-driven

UltraScale+

15

1.85

1.09

not measured

Per design (timing-driven RWRoute with this timing model; the WNS gain is over non-timing-driven RWRoute on Versal and over the previous timing model on UltraScale+):

Design

Family

Route time (s)

Ratio to non-timing-driven

Vivado WNS (ns)

WNS gain (ps)

boom_med_pb

Versal

37.5

0.97

0.441

+2198

boom_soc

Versal

510.8

1.74

-18.469

+6728

corescore_500

Versal

80.5

1.04

30.312

-84

corescore_500_pb

Versal

87.4

1.10

30.401

+76

finn_radioml

Versal

55.4

1.36

-0.050

+1259

koios_dla_like_large

Versal

184.6

1.72

-3.275

+1807

logicnets_jscl

Versal

30.8

2.24

-2.839

+809

picoblaze_2022.2

Versal

0.9

1.53

-0.559

+91

multi-SLR Versal test design

Versal

3.5

1.73

-0.572

+84

vtr_lu64peeng

Versal

75.8

1.17

0.218

+5237

vtr_mcml

Versal

45.9

1.44

-17.984

+3454

amd_mini-isp

UltraScale+

6.8

1.85

-1.820

+131

boom_soc

UltraScale+

1098.9

2.64

-18.354

+2337

corescore_500_mod

UltraScale+

74.7

1.15

-1.307

+1374

finn_radioml

UltraScale+

60.7

1.23

-2.093

+263

fir_symmetric_systolic_routed

UltraScale+

77.5

1.97

-0.982

+2812

fir_systolic_transposed_routed

UltraScale+

20.2

1.74

-0.453

+802

ispd16_example2

UltraScale+

1355.8

5.64

-7.895

+3087

logicnets_jscl

UltraScale+

76.1

4.82

-1.193

+365

rosetta_3d-rendering

UltraScale+

127.4

2.89

-2.725

+2585

rosetta_digit-recognition

UltraScale+

106.8

3.50

-1.561

+771

rosetta_optical-flow

UltraScale+

41.0

1.35

-1.892

-250

rosetta_spam-filter

UltraScale+

49.5

1.08

-1.240

+2136

vexriscv_re-place

UltraScale+

7.2

2.19

-1.183

+912

vtr_mcml

UltraScale+

122.2

1.30

-14.296

+1431

vtr_mcml_v2

UltraScale+

109.6

1.03

-12.765

+2185

RWRoute’s own timing of the routed designs is close to Vivado’s on most designs and optimistic on some: on 20 designs with clock constraints, its WNS differs from Vivado’s by a median of 0.06 ns (0.03 ns on the 15 UltraScale+ designs, 0.07 ns on 5 Versal designs). The median signed difference is +0.02 ns (RWRoute’s WNS above Vivado’s; +0.02 ns on UltraScale+, +0.05 ns on Versal), ranging from 0.33 ns below to 0.39 ns above. Two more Versal designs are left out of this comparison: their worst path in Vivado is a net that Vivado marks as delayed for hold fixing. What is left is mostly route delay: on Versal, that of nets with tens to hundreds of loads, underestimated near their sinks; on UltraScale+, that of the nets on the worst paths of the larger designs. On the multi-SLR Versal design, RWRoute’s WNS is below Vivado’s, mostly from the clock skew between its SLRs. RWRoute’s WHS is close to Vivado’s: on the 22 designs with clock constraints, it differs by a median of 0.01 ns (from 0.04 ns below to 0.04 ns above). RWRoute reports hold but does not fix it: Vivado reports hold violations (negative WHS) on 19 of the 26 routed designs, down to -0.305 ns.

Modeled clocks (the default) against ideal clocks (-Drapidwright.timing.clocks=ideal), both timing-driven: the Vivado WNS with modeled clocks minus that with ideal clocks has a median of 0 ps on the Versal designs (better on 5, worse on 1, by more than 20 ps) and +233 ps on the UltraScale+ designs (better on 10, worse on 2).

Interconnect Delay Accuracy

Route delay of each connection of routed designs (mean absolute error, Spearman’s rho):

Family

Corner

Designs

Mean abs. error

rho

UltraScale+

SLOW_MAX

fitted devices

2.44%

0.9987

UltraScale+

FAST_MIN

fitted devices

2.15%

0.9989

UltraScale+

SLOW_MAX

independent designs (1.9M connections)

3.43% (2.32% without dedicated cascades)

0.9994

UltraScale+

SLOW_MAX

held-out devices

2.69%

0.9985

Versal gen1

SLOW_MAX

2.74%

0.9965

Versal gen1

FAST_MIN

2.84%

0.9956

Versal gen2

SLOW_MAX

3.18%

0.9958

Versal gen2

FAST_MIN

3.04%

0.9954

The held-out devices are evaluated without the track deltas, because their samples do not name the nodes of their routes (0.8% of them cross an I/O column). On Vivado’s routes, the UltraScale+ model is slightly pessimistic: its mean signed error is +1.1% on the fitted devices and +1.3% on the independent designs. A fit without the pin deltas has an UltraScale+ error of 4.3% at SLOW_MAX (2.5% with them, on the same connections).

Datapath Delay Accuracy

Test

Result

Versal: net delay of 2.17M connections of 102 routed designs on 5 devices

rho 0.997, mean absolute error 2.31%

Versal: maximum datapath delay of 399 synthetic designs at 2.0 ns

mean absolute error 0.86%

Versal: maximum datapath delay of 397 synthetic designs at 1.3 ns

mean absolute error 0.85%

Versal: maximum datapath delay of 14 benchmark designs on xcvp1002 and xcvp1552

within 1.8%

Maximum datapath delay with the fitted cell arcs and Vivado’s routes

UltraScale+ 0.58% (synthetic 0.15%), gen1 0.09% (synthetic 0.08%), gen2 1.25%

The synthetic designs are the FPT‘19 GNL designs (2000 to 8000 LUTs, Rent exponents 0.3 to 0.8, logic depths 3 to 7), placed and routed by Vivado.

Cell Arc Accuracy

Family

Arcs of Vivado’s paths found

Mean abs. error per arc (SLOW_MAX)

UltraScale+

99.84%

LUT 0.63 ps, carry 0.64 ps, flip-flop 0.36 ps

Versal gen1

99.65%

Versal gen2

99.81%

Clock Accuracy

Clock insertion delay per clock pin, mean absolute error:

Family

SLOW_MAX

SLOW_MIN

FAST_MIN

FAST_MAX

UltraScale+

1.10%

0.80%

0.73%

1.07%

Versal gen1

0.67%

0.67%

0.66%

0.74%

Versal gen2

0.51%

0.54%

0.49%

0.46%

Clock components of reported paths, mean absolute error in ps (source and destination clock delays, CRPR, skew):

Family

Check

Source clock

Destination clock

CRPR

Skew

UltraScale+

setup

26.0

23.5

13.0

24.2

UltraScale+

hold

11.5

27.4

35.0

13.4

Versal gen1

setup

35.1

38.2

12.8

37.2

Versal gen1

hold

23.5

28.7

12.1

13.8

Versal gen2

setup

18.7

28.5

29.5

51.7

Versal gen2

hold

12.6

28.6

18.0

29.8

Endpoints: of the 3.31M endpoints that Vivado times in 16 routed designs (UltraScale+, multi-SLR, Versal gen1 and gen2, with PS, GT, NoC, memory and PCIe interfaces), 3,453 (0.10%) are not timed; they are listed in Timing Model Limitations. 86 have a setup slack more than 2 ns below Vivado’s, all with large positive slack.

Multi-SLR Accuracy

Test

UltraScale+

Versal

SLR-crossing connections, mean abs. error (four corners)

1.61 to 2.14%

1.11 to 1.58%

SLR-crossing connections, rho

0.993 to 0.998

0.998 to 0.999

Laguna flip-flop arcs

all found, mean abs. error at most 0.7 ps

Clock insertion of pins outside the clock buffer’s SLR

0.61 to 1.76%

0.60 to 0.73%

Inter-SLR compensation, setup / hold

1.1% / 0.8%

6.0% / 1.7%

Timing Options and System Properties

RWRoute Timing Options

The options of RWRoute that concern timing (see RWRouteConfig for all options):

Option

Default

Effect

--timingDriven / --nonTimingDriven

timing-driven

Timing-driven or wirelength-driven routing.

--timingWeight <arg>

0.35

How much a connection’s delay counts against its congestion and wirelength: its delay is weighted its criticality times (1 - timingWeight) per 100 ps. Within [0, 1]; the greater it is, the faster the router runs, at the cost of a greater critical path delay.

--timingMultiplier <arg>

1

The timing weight is multiplied by it at each timing update, up to 1 (experimental).

--criticalityExponent <arg>

3

Spreads the criticalities of less and more critical connections apart: the lower it is, the more critical a near-critical connection, and so the lower the critical path delay, at the cost of wirelength and runtime. At least 1.

--minRerouteCriticality <arg>

0.85

The criticality above which connections are ripped up and re-routed.

--reroutePercentage <arg>

3

The maximum percentage of critical connections that are re-routed.

--shareExponent <arg>

2

Discourages resource sharing for critical connections.

--useUTurnNodes / --maskUTurnNodes

masked

Whether the router may use U-turn nodes at device edges (honored on UltraScale+; Versal estimators do not mask them). Existing routes that use them (partial routing) are timed with their actual delays either way.

--sllLookahead

off

The lookahead charges each SLR crossing the cheapest SLL crossing’s delay, even where that exceeds the delay of the rows it spans (see Multi-SLR Timing).

--lutPinSwapping

off

A timing-driven route may end on any free input pin of its LUT (see below).

--verbose

off

Also prints the router knobs, the delays of the nodes of the critical path, the 5 worst setup and hold checks and the objects of each timing warning.

--pessimismA <arg>, --pessimismB <arg>

1.03, 100

Pessimism factors of the reported critical path delay. Deprecated; they will be removed in the next release.

--clkRouteTiming <file>

none

Clock route templates of earlier releases. Deprecated; they will be removed in the next release.

--maskNodesCrossRCLK

off

Has no effect other than a warning (the timing models time the nodes that cross an RCLK row). Deprecated; it will be removed in the next release.

With --lutPinSwapping (UltraScale+ and Versal), a timing-driven route may end on any free input pin of its LUT. Each candidate pin is charged, in excess of the fastest candidate’s, the delays that the timing analysis charges for it: its LUT logic delay from the fitted cell arcs, the intra-site delay from the pin to the LUT input (Versal), and the sink pin delay (UltraScale+). Once routed, the timing analysis takes the LUT arcs, the intra-site delay and the sink pin delay of the pin that the connection reached.

Timing System Properties

System property

Values (default first)

Effect

rapidwright.timing.clocks

modeled, ideal

Clocks from the constraints with insertion delays, CRPR, uncertainty, setup and hold times, or ideal clocks (see Clock Model).

rapidwright.rwroute.maxCriticality

per family (0.99 UltraScale+, 0.95 Versal)

The maximum criticality of a connection.

rapidwright.rwroute.timingDrivenPresentCongestionMultiplier

per family (1.2)

The present congestion multiplier of timing-driven routing, unless --presentCongestionMultiplier is given.

rapidwright.rwroute.timeAllNetsInPartialRouting

per family (true)

Partial routing times all nets of the design, not only those it routes.

rapidwright.rwroute.lookahead

estimator, anisotropic

The delays per INT column and row of the router’s estimate: the estimator’s admissible ones, or the best route’s (see Lookahead and Pre-route Delays).

rapidwright.rwroute.lookahead.weight

1

The weight of the anisotropic lookahead.

The family’s RouterKnobs give the per-family defaults; the rapidwright.rwroute.* properties override them.

Timing Model Limitations

  • set_max_delay (including -datapath_only, common on clock domain crossings) is not supported: such paths are timed with the clock relation instead (pessimistic) or not at all between unrelated clocks.

  • set_input_delay and set_output_delay are not supported: paths from input ports and to output ports, and port-to-port paths, are not timed.

  • Clocks that Vivado derives automatically inside CPM5 and XPHY blocks are not derived, except the read clock of an XPHY nibble at FIFO_WR_CLK (see Clock Model); the endpoints they clock (e.g. those launched from the XPHY data outputs) are not timed.

  • The XPHY read clock has no delay through the XPHY (0.89 ns in Vivado at the slow corner) and clocks the registers behind FIFO_WR_CLK on its rising edge, where Vivado uses the inverted clock. Paths within one read clock are not affected; paths between a read clock and another clock would be.

  • set_clock_latency is only supported on clocks: on pins or ports (or with -clock) it is ignored, and -rise/-fall values apply to both edges.

  • The opposite-edge entries of set_clock_uncertainty (rise to fall, fall to rise) are not modeled; those paths get the same-edge value.

  • The -through objects of an exception are only applied where they end every path through them (see Supported Timing Constraints).

  • -filter expressions are evaluated on the netlist’s names and properties; properties that Vivado computes (e.g. PRIMITIVE_LEVEL) are not supported, and a query using them matches nothing, with a warning.

  • set_case_analysis selects the inputs of clock generators (CLKINSEL) and GT clocks, not those of clock multiplexers (BUFGCTRL, BUFGMUX): the clocks of both inputs of a multiplexer propagate.

  • Clocks propagate through at most 8 LUT or MUXF levels (ClockNetwork.MAX_COMBINATIONAL_DEPTH), Vivado’s without limit.

  • Two clocks on the same generator input with different periods share the phase shift of their path (that of the first one) in the insertion delays.

  • The static phase offset of a cascaded CLKOUT4 (CLKOUT4_CASCADE) is not modeled.

  • Latches (LDCE, LDPE) are not timed: their gate is no clock pin (a warning counts the latches), and their paths are unconstrained; Vivado times them, with time borrowing.

  • The multiplexer arcs of DSPCPLX and DSPFP32 are not decoded from their control inputs: deselected arcs are timed (pessimistic).

  • A DSP58 used in DSP48 mode is timed on the bits outside the DSP48 width too (pessimistic).

  • Block RAM RSTREG and REGCE checks are timed whenever their port’s output register is used (DOA_REG/DOB_REG = 1), even if the port’s read data is unused (pessimistic); on UltraScale+ they are not timed when the output register is unused or the port’s clock is tied.

  • The cell arc format has no trigger-edge field: an arc launches or captures on the edge of its clock pin. The clock binding marks the known inverted-clock pins (IDDRE1 CB, ISERDESE3 CLK_B) as falling-edge launches; other cells with registers on both clock edges may be timed on the wrong edge.

  • Unrelated clocks are false paths by default (see Clock Model), unlike in Vivado.

  • Hold is reported, not fixed, by RWRoute: Vivado reports hold violations on 19 of the 26 designs routed in Timing-driven Routing Results.

  • RWRoute’s WNS of a routed design can be optimistic: on the designs of Timing-driven Routing Results, it differs from Vivado’s by a median of 0.06 ns (0.03 ns on UltraScale+, 0.07 ns on Versal) and is above it by up to 0.39 ns. The main known cause is route delay: of Versal nets with tens to hundreds of loads, and of the nets on the worst paths of some UltraScale+ designs.

  • The jitter of Versal gen1 port clocks leaves out the part that depends on the position of the clock regions (up to about 20 ps) and the RAM activity part (see Clock Model); Versal devices without this data (gen2 devices, xcvp1902) use a fixed port clock jitter.

  • Speed grades scale cell arcs by category and cell type (by arc where an arc scales unlike its cell type), and interconnect by one factor per corner (on Versal gen1, one for the fanout delays and one for the other delays). Block inputs reached through IRI nodes and a few rarely used Versal node classes (INTF_CTRL, INTF_CNODE) are less accurate.

  • UltraScale and 7 series devices have no timing model.

Removed and Deprecated Timing API

For users of earlier RapidWright releases: the timing API below was removed, with what to use instead.

  • The JGraphT timing graph TimingGraph, TimingVertex and TimingEdge, with TimingManager.getTimingGraph(): use TimingManager.getStaGraph() (pins and edges as int ids) and new TimingReport(timingManager.getStaClockAnalysis()) (see Timing Reports from the Java API). The queries of TimingGraph map as follows:

    • getMaxDelayPath(): TimingReport.getCriticalPath() (the data path of the worst setup check; the path of largest arrival time for a design without clocks);

    • getTimingPath(src, snk): TimingReport.getMaxDelayPath(g.getPin(src), g.getPin(snk));

    • getPathDelay(path): TimingReport.getPathDelay(path);

    • getWorstSlack(): TimingReport.getWNS();

    • prettyPrintPathDelays(path): TimingManager.prettyPrintPathDelays(int[]);

    • TimingEdge.getNet(), getNetDelay() and getLogicDelay(): TimingManager.getNetOfEdge(edge), TimingReport.getNetDelay(edge) and getLogicDelay(edge);

    • getGraphPaths, buildGraphPaths, getClockNet and generateGraphvizDotVisualization: no replacement.

  • TimingManager.calculateArrivalRequiredTimes() (which returned a TimingVertex): use computeArrivalRequiredTimes(). TimingManager.getCriticalPathInfo(Pair): use getCriticalPathInfo(). TimingManager.BUILD_GRAPH_PATHS_DEFAULT_PARAM: no replacement.

  • The FPT‘19 UltraScale+ timing model: TimingModel, TimingGroup, DelayModel, SmallDelayModel, GroupDelayType, GroupDistance, GroupWireDirection, TimingDirection and DSPTimingData (package com.xilinx.rapidwright.timing), DelayEstimatorBase and InterconnectInfo (package com.xilinx.rapidwright.timing.delayestimator), and TimingManager.getTimingModel(). Use DelayEstimator.create(...) for node delays and TimingManager with TimingReport for path delays.

  • The timing data text files (timing/**/intersite_delay_terms.txt, intrasite_delay_terms.txt, interconnect_delay_terms.txt, the DSP timing files) and the tcl/rwroute/dump_all_dsp_delay.tcl script that generated the DSP timing files: timing data is in data files that are downloaded on first use (see Timing Data Files), and a standalone jar no longer unpacks a timing folder.

  • The examples PipelineGeneratorWithRouting and CheckAccuracyUsingGnlDesigns, which were written against TimingModel and TimingGroup.

  • RWRoute’s --dspTimingDataFolder option (now rejected as an unrecognized argument) and RWRouteConfig.get/setDspTimingDataFolder: DSP timing comes from the cell arcs.

  • The RCLK node mask of timing-driven routing (the protected field RouteNodeGraphTimingDriven.maskNodesCrossRCLK): the timing models time RCLK crossings. RWRoute’s --maskNodesCrossRCLK option and RWRouteConfig.isMaskNodesCrossRCLK()/setMaskNodesCrossRCLK(boolean) are deprecated and have no effect other than a warning.

  • Timing-driven routing of UltraScale designs, which failed for lack of timing data: RWRoute now routes them non-timing-driven, with a warning.

  • The timing edges of RWRoute connections: Connection.getTimingEdges(), setTimingEdges(), setTimingEdgesDelay(), updateRouteDelay() and calculateCriticality(float, float, float). The router sets route delays with TimingManager.setRouteDelay(Connection, float) and criticalities with TimingManager.calculateCriticality(List, float, float).

  • Changed signatures:

    • DelayEstimatorBase<InterconnectInfo> is now DelayEstimator in the return type of RouteNodeGraph.getDelayEstimator(), the type of the field RouteNodeGraphTimingDriven.delayEstimator, the constructors of RouteNodeGraphTimingDriven, PartialRouter.RouteNodeGraphPartialTimingDriven, CUFR.RouteNodeGraphCUFRTimingDriven and PartialCUFR.RouteNodeGraphPartialCUFRTimingDriven, and the estimator parameter of RouterHelper.computeNodeDelay(...) and RouterHelper.getSourceToSinkINTNodeDelays(...);

    • the router constructor of TimingManager is now TimingManager(Design, RuntimeTrackerTree, RWRouteConfig, Collection<Net>, boolean, DelayEstimator) (no ClkRouteTiming);

    • RouteNodeGraph.getLutLogicDelay(TimingGraph, Connection, RouteNode, boolean) is now getLutLogicDelay(TimingManager, Connection, RouteNode, boolean): it is protected, so an override in a subclass without @Override is no longer called;

    • the type of RWRoute.ConnectionState.queue is now RouteNodeQueue.

Deprecated, to be removed in the next release:

  • ClkRouteTiming, with RWRoute’s --clkRouteTiming option and RWRouteConfig.get/setClkRouteTiming.

  • RWRoute’s --pessimismA and --pessimismB options and RWRouteConfig.get/setPessimismA/B (the pessimism factors of the critical path delay); these options print a warning when used.

  • RWRoute.evaluateCostAndPush(ConnectionState, RouteNode, boolean, RouteNode): now final (an override no longer compiles) and no longer called by the router, which calls evaluateCostAndPush(ConnectionState, RouteNode, RouteNode).

Adding a Timing Model for a New Family

A timing family implements TimingFamily:

  • getSeries(), the series it models;

  • resolveSpeedGrade(Part), the speed grade of a part (by default SpeedGrade.of(part));

  • createDelayEstimator(device, speedGrade, corner, useUTurnNodes), the interconnect delay estimator per speed grade and timing Corner (throwing UnsupportedOperationException for a corner without data); the class-based models extend ClassBasedDelayEstimator, with InterconnectParams per corner and the crossing counts of their column and row classes;

  • getFittedCellArcs(device) (FittedCellArcLibrary), the cell arcs of the timing analysis;

  • getRouterKnobs(), the settings of timing-driven routing that depend on the model (RouterKnobs: the maximum criticality, the present congestion multiplier of timing-driven routing, whether partial routing times all nets, and the lookahead ratios);

  • getSlrModel(device, estimator), the SLR crossings of a device (by default computed from the delay estimator).

TimingFamilies maps each series to its family and lists the series that have a timing model, and ClockData.get(device, speedGrade) gives the clock data of a device’s family (UltraScale+, Versal gen1 and gen2). The Series7TimingFamily stub, whose factories throw UnsupportedOperationException, is the smallest example.

Timing Data Files

The fitted delay data is not part of the source code: it is in timing data files, which are RapidWright data files like the device files. A file is downloaded the first time its data is used, checked against the version that the release expects, and kept in the data folder of the RapidWright installation:

data/timing/<series>/<data set>_timing.dat

data/timing/ultrascaleplus/ultrascaleplus_timing.dat
data/timing/versal/versal_gen1_timing.dat
data/timing/versal/versal_gen2_timing.dat

A timing data set is the group of devices of a series that share one fit: all UltraScale+ devices, and the Versal devices of each architecture generation. The speed grades and the devices of a set differ by factors that are part of its data. A timing family names its data sets and the data set of a part (TimingFamily.getTimingDataNames(), getTimingDataName(part)), so a new family or a new generation adds files without changing the others. Routing a Versal device never reads the UltraScale+ file, and gen1 never reads gen2.

TimingData.get(name) (package com.xilinx.rapidwright.timing.family) reads the file of a data set once. A file has up to three sections:

Section

Content

interconnect

Interconnect parameters at the four corners, with the pin deltas of UltraScale+ (TimingData.getInterconnectParams(corner)).

cellarcs

Fitted cell arcs and configuration delays at the four corners (TimingData.getFittedCellArcs(), a FittedCellArcLibrary).

clock

Clock network delays (ClockData).

  • A section holds named, typed arrays and has the version and the provenance of its data (TimingDataFile). A reader ignores the sections it does not know.

  • Every section has a checksum (64-bit FNV-1a over its values) that is checked when the file is read. It changes with the data only, not with the file format, and TestTimingData pins it.

  • TimingDataFile.writeText() prints a file as text, for debugging and for comparing two versions of the data with a text diff: the interconnect terms per corner and node class, one line per cell arc and configuration delay, and the clock data as JSON. TimingData.readFile(name) reads the file of a data set, and TimingDataFile.read(path) any timing data file.

TimingData.readFile("versal_gen1").writeText(Paths.get("versal_gen1_timing.txt"));

FileTools.ensureDataFilesAreStaticInstallFriendly() downloads the timing data files with the other data files, for installations that are read-only or have no network access.

These files replace the text files of earlier releases and their parsers.