Timing Arcs in STA: Unateness, When Arcs and Clock Sense

Timing arcs in STA explained with real ASAP7 Liberty data and OpenSTA runs: arc types, unateness, when arcs, non-unate clocks, disabled arcs and debug steps.

Timing Arcs in STA: Unateness, When Arcs and Clock Sense
On this page 12 sections
  1. What is a timing arc?
  2. Types of timing arcs
    1. Delay arcs
    2. Check arcs
  3. Unateness (timing sense)
    1. What real libraries contain
  4. State-dependent arcs: when and sdf_cond
    1. Worked example 1: rise and fall through INV, NAND2 and XOR2 (real OpenSTA result)
  5. Unateness in the clock path
    1. Worked example 2: clock through an XOR (real OpenSTA result)
  6. Disabled arcs, constants and loops
    1. Worked example 3: a disabled arc and a loop (real OpenSTA result)
  7. Common mistakes
  8. Debugging flowchart
  9. Interview questions and answers
  10. FAQ
  11. Summary
  12. References

Every number in a timing report comes from a timing arc. The tool adds delay arcs to build the arrival time and uses check arcs to build the required time. Unateness (timing sense) decides whether a rising input gives a rising or a falling output. Most STA surprises trace back to an arc: a path that vanished, a flop checked against the wrong clock edge, or a delay that does not match the cell you expected.

This post covers arc types, unateness, state-dependent (when) arcs, clock-path unateness, and disabled arcs and loops. Library facts are read from the open ASAP7 7 nm predictive libraries (RVT, FF corner), and every slack comes from a small hand-written netlist timed with OpenSTA 2.3.1 (ideal or propagated clocks, no wire parasitics). Anything that is not a tool or library result is labelled illustrative.

What is a timing arc?#

A timing arc is a directed timing relationship between two pins: either a delay arc (a transition here causes a transition there after some delay) or a check arc (a transition here must keep a time relationship with that pin). STA builds a graph of pins and arcs: arrivals move forward through delay arcs, and check arcs at endpoints turn arrivals into slack. New to STA? Start with the STA overview and reading a timing report.

Arcs come from two places:

  • Cell arcs come from the Liberty library. Each timing() group under an output or constrained pin, with a related_pin, is one arc. Its tables give delay and output slew, or the constraint value, as functions of input slew and load (see NLDM, CCS and ECSM delay models and the .lib post).
  • Net arcs go from a driver pin to each load pin of a net. Their delay comes from wire load models before placement, and from extracted RC after routing (see parasitic extraction and SPEF). A net arc is always positive unate: a rising driver gives a rising load pin.
Figure 1. Delay arcs build the arrival time; the check arc at the capture flop sets the required time.

Types of timing arcs#

Delay arcs#

Data table
Liberty timing_type What it models Example in ASAP7
combinational Input to output of a logic cell INVx1 A→Y, XOR2xp5 A→Y
combinational_rise / combinational_fall Combinational arc that exists only for a rising or a falling output ICGx1 CLK→GCLK (state-dependent fall arcs)
rising_edge / falling_edge Clock pin to output of a flop or latch (clock-to-Q) DFFHQNx1 CLK→QN is rising_edge
preset / clear Async set or reset pin to output DFFASRHQNx1 RESETN→QN
three_state_enable / three_state_disable Enable pin to a tri-state output Not present in these ASAP7 libraries

A latch also has a transparent D→Q combinational arc. In ASAP7 DHLx1, D→Q is positive_unate and CLK→Q is rising_edge. The transparent arc is what lets a path flow through an open latch, which is the basis of time borrowing and the latch vs flip-flop differences.

preset and clear are named relative to the output pin that owns the arc: in DFFASRHQNx1, RESETN drives QN high, so its arc on QN is typed preset.

Check arcs#

Data table
Liberty timing_type Check Covered in
setup_rising / hold_rising (and _falling) Data vs the active clock edge Setup and hold violations, negative setup and hold
recovery_rising / removal_rising Async reset or set release vs the clock Recovery and removal
min_pulse_width Minimum high or low pulse on a clock or async pin Duty cycle and pulse width
non_seq_setup_rising / non_seq_hold_rising Data-to-data check between two non-clock pins Set vs reset in DFFASRHQNx1
Clock gating checks Enable vs clock at a gating cell Clock gating and ICG

Gating checks on discrete AND/OR gates are inferred by the tool; an ICG cell such as ASAP7 ICGx1 carries ordinary setup_rising/hold_rising arcs from CLK to ENA and SE.

Unateness (timing sense)#

Unateness describes how the direction of an output transition relates to the direction of the input transition on one arc. Liberty stores it in timing_sense.

  • Positive unate: a rising input can only cause a rising output, and falling gives falling. Buffers, AND, OR, and the data input of an AND-OR gate are positive unate.
  • Negative unate: a rising input can only cause a falling output, and the other way round. Inverters, NAND, NOR and AOI/OAI inputs are negative unate.
  • Non-unate: the output direction cannot be known from this input alone. It depends on the state of other inputs. XOR and XNOR inputs, a mux select and the clock-to-Q arc of a flop are non-unate.
Figure 2. Positive, negative and non-unate arcs: how an input edge maps to an output edge.

Unateness matters because STA keeps separate rise and fall arrival times at every pin. A rising and a falling transition have different delays and slews, so the tool must know which input edge feeds which output edge:

  • Through a positive-unate arc, the output rise arrival is built from the input rise arrival.
  • Through a negative-unate arc, the output rise arrival is built from the input fall arrival.
  • Through a non-unate arc, each output edge can come from either input edge, so the tool evaluates both and keeps the worst (latest for setup, earliest for hold).

Non-unate arcs are therefore more pessimistic: the tool assumes the worst pairing is always possible.

What real libraries contain#

Counting every timing() group in five ASAP7 RVT FF libraries (INVBUF, SIMPLE, AO, OA, SEQ; 200 cells, 5,527 groups):

  • Unconditional combinational arcs: 317 negative unate, 293 positive unate, 17 non-unate. The non-unate ones are only in XOR/XNOR, the full adder FAx1 and the half adder HAxp5. All 23 flop and latch clock-to-Q arcs are also non_unate.
  • Another 4,516 combinational arcs are state-dependent (when), mostly in the AO and OA libraries.
  • The SEQ library has 85 setup_rising, 85 hold_rising, 43 of each _falling type, 70 min_pulse_width, 4 recovery, 4 removal and 6 each of the non-sequential setup and hold types.
Figure 3. Real arc counts from five ASAP7 RVT FF Liberty files: unateness and sequential timing types.

State-dependent arcs: when and sdf_cond#

A cell can have several arcs between the same two pins, each valid in a different state of the other inputs. Here is the real Liberty for the A→Y arcs of ASAP7 XOR2xp5 (table data removed):

Code
pin (Y) { function : "(A * !B) + (!A * B)"; timing () { related_pin : "A"; when : "!B"; sdf_cond : "~B"; timing_sense : positive_unate; timing_type : combinational; ... } timing () { related_pin : "A"; timing_sense : non_unate; timing_type : combinational; ... } timing () { related_pin : "A"; when : "B"; sdf_cond : "B"; timing_sense : negative_unate; timing_type : combinational; ... } }

With B = 0 the XOR passes A through (positive unate); with B = 1 it inverts A (negative unate). The unconditional middle arc is the non-unate default arc for an unknown state. sdf_cond is the matching condition written into SDF for gate-level simulation.

OpenSTA's report_edges shows the arcs and delays for the instance u3 in the demo netlist (ps, printed by the tool as two values, min:max):

Data table
Arc Condition Input→output edge: delay (ps)
A→Y B ^→v 9.72:10.46, v→^ 11.74:12.50
A→Y default v→v 9.04:9.69, ^→v 9.72:10.46, ^→^ 12.66:13.56, v→^ 11.74:12.50
A→Y !B ^→^ 18.63:19.54, v→v 15.53:16.17

Two points follow. The default arc does not always cover the conditional arcs: its rise-to-rise delay (13.56 ps) is well below the !B arc (19.54 ps). And which arcs a tool uses for an unknown state is tool behaviour, not a law: here, with no constants set, OpenSTA used the 19.54 ps !B arc, the worst of all. Check your tool's settings for conditional arcs before trusting a hand calculation.

Worked example 1: rise and fall through INV, NAND2 and XOR2 (real OpenSTA result)#

Path: flop r1 QN → INVx1 → NAND2xp33 → XOR2xp5 → flop r2 D, period 400 ps, ideal clocks. The other XOR input comes from another flop, so its state is unknown.

  • Rise at r2/D (worst): r1/QN rises at 32.01 ps, the inverter output falls at 37.19, the NAND output rises at 51.60, and the XOR output rises at 71.13 ps using the positive-unate rise arc (19.54 ps). Library setup is 13.44 ps, so slack = 400 − 13.44 − 71.13 = 315.43 ps.
  • Fall at r2/D: r1/QN falls at 30.52, INV rises at 36.53, NAND falls at 47.29, XOR falls at 63.46 ps. Setup for a falling D is 11.71 ps, so slack = 324.83 ps.

INV and NAND are negative unate, so the edge flips at each stage: the worst rise at D started as a rise at QN, not because the cells are non-inverting but because two inversions cancel. At the XOR, the rising output could also come from the falling NAND output through the B = 1 arc (47.29 + 12.50 = 59.79 ps); the tool kept the later 71.13 ps. If you size a cell for the wrong edge, you fix nothing, so trace edges stage by stage or use -rise_to / -fall_to.

Now give the XOR's other input a constant (with propagated clocks this time, so absolute numbers shift slightly):

Data table
Constant on u3/B Arc left on A→Y XOR delay in worst path Setup slack r1→r2
none all (worst taken) 19.54 ps 314.86 ps
set_case_analysis 0 positive unate (!B) 19.54 ps 316.49 ps
set_case_analysis 1 negative unate (B) 12.50 ps 326.65 ps

With B = 1 the worst rising D now comes from a falling NAND output through the inverting arc. Case analysis does not just remove paths; it changes which arcs, and so which edges, are used.

Unateness in the clock path#

Clock paths are where unateness errors cost the most. If the clock passes through a non-unate cell, such as an XOR used for programmable clock inversion or a mux whose select is not constant, the tool cannot tell whether the flop sees the clock or its inverse. It propagates both senses and checks the flop against both.

Worked example 2: clock through an XOR (real OpenSTA result)#

The clock reaches flop r4 through XOR2xp5 (B = inv_sel, a port) and a buffer. Flop r3 is clocked directly. Data goes r3→r4 with no logic. Period 400 ps, propagated clocks:

Data table
Setup Capture clock at r4 r4 clock latency Setup slack r3→r4
No constant on inv_sel clk' (inverted) at 200 ps 25.04 ps 176.45 ps
set_case_analysis 0 inv_sel clk at 400 ps 31.04 ps 382.45 ps
set_case_analysis 1 inv_sel clk' at 200 ps 25.76 ps 177.26 ps
set_sense -type clock -positive [get_pins cx/Y] clk at 400 ps 25.04 ps 376.45 ps

With nothing set, the endpoint is "clocked by clk'" and setup is checked as a half-cycle path (see half-cycle paths). If the chip only runs with inv_sel = 0, about 206 ps of slack vanish for no reason. If both settings are real modes, time each with its own constant, which is what MMMC is for.

set_sense -type clock -positive (older scripts: set_clock_sense) propagates only the non-inverted sense beyond a pin. If the logic can invert in a functional mode, it hides a real check, so prefer case analysis that matches a documented mode.

A side effect: the XOR and buffer add about 32 ps of latency to r4, and with no logic between r3 and r4 the hold check failed by 6.11 to 6.85 ps. Logic in a clock path is real skew that CTS or hold fixing must cover.

Figure 4. Real OpenSTA 2.3.1 results: a clock through an XOR is timed with both senses until the mode is set.

Other places clock unateness matters:

  • Generated clocks: the -invert option of create_generated_clock must match the real logic (see generated clocks).
  • ICGs: CLK→GCLK is positive unate; ASAP7 ICGx1 adds state-dependent combinational_fall arcs for the falling GCLK.
  • Clock muxes: data inputs are positive unate, the select pin is non-unate. A clock reaching a flop through a select pin should normally be stopped, not timed.

Disabled arcs, constants and loops#

STA disables arcs for three main reasons, all listed by report_disabled_edges (review it with every constraint change):

  1. User disables: set_disable_timing removes an arc. Use it only for arcs that can never be active in that mode, never as a shortcut for a false path.
  2. Constants: case analysis and tie cells disable arcs that cannot switch. After B = 1 above, OpenSTA reported u3 A Y constant negative_unate B=1.
  3. Combinational loops: the timing graph must be acyclic, so every loop is cut.

Worked example 3: a disabled arc and a loop (real OpenSTA result)#

  • set_disable_timing -from A -to Y [get_cells u3] made the r1→r2 path disappear: report_checks -from r1/CLK -to r2/D printed nothing, and r2/D was timed only from the other XOR input (slack 335.97 ps instead of 314.86 ps). No warning: the path was silently gone. A false path names its start and end points; a disabled arc removes every path through it.
  • Two cross-coupled NAND2 cells (a gate-level SR latch) form a loop. check_setup -loops reported "There is 1 combinational loop in the design" (l1/Y → l2/B → l2/Y → l1/B), and the tool cut it at l1 B→Y (l1 B Y loop). Another tool, or a netlist change, may cut elsewhere and report different paths, so break intended loops yourself with set_disable_timing and treat unintended ones as bugs.

Common mistakes#

  • Assuming one delay per cell. Every arc has separate rise and fall delays and slews.
  • Leaving clock muxes and XORs unconstrained. Missing case analysis gives half-cycle checks on full-cycle flops, or both senses of a clock on one flop.
  • Using set_disable_timing as a false path. It removes every path through the arc, in every mode where the constraint is loaded.
  • Ignoring loop warnings. A tool-chosen loop cut is not a sign-off decision.
  • Reading when arcs without the mode. A large delay may be a conditional arc that cannot occur in your mode, or one that really does.

Debugging flowchart#

When a path is missing, has an unexpected edge or shows an odd delay, walk the arcs:

Figure 5. Debug flowchart for missing paths, unexpected edges and odd delays caused by timing arcs.

Useful OpenSTA commands (other tools have equivalents): report_edges, report_disabled_edges, check_setup -loops and report_checks -rise_to / -fall_to.

Interview questions and answers#

1. What is a timing arc? A directed timing relationship between two pins: a delay arc (input to output, clock to Q, driver to load) or a check arc (setup, hold, recovery, removal, pulse width).

2. What is unateness? Give examples. The relation between input and output transition directions on an arc. Positive unate: buffer, AND, OR. Negative unate: inverter, NAND, NOR. Non-unate: XOR, XNOR, mux select, flop clock-to-Q.

3. Why is a flop's clock-to-Q arc non-unate? A rising clock can make Q rise or fall depending on D, so the output direction cannot be known from the clock edge alone. ASAP7 DFFHQNx1 CLK→QN is timing_sense : non_unate, timing_type : rising_edge.

4. How does STA propagate arrival times through a negative-unate cell? The output rise arrival uses the input fall arrival plus the cell's rise delay, and the output fall arrival uses the input rise arrival plus the fall delay. Each edge keeps its own slew.

5. What happens if the clock passes through an XOR with a non-constant input? Both clock senses propagate. The flop can be checked against the inverted clock, often as a half-cycle path. In the OpenSTA demo, setup slack dropped from 382.45 ps (case 0) to 176.45 ps (no case analysis).

6. What is a when condition in Liberty? A Boolean state of the other inputs under which a conditional arc is valid. XOR2 has a positive-unate A→Y arc when !B and a negative-unate arc when B, plus a default non-unate arc.

7. How do you break a combinational loop in STA? The tool cuts it at some arc; break intended loops yourself with set_disable_timing on a chosen arc, and fix unintended ones in RTL.

8. Difference between set_disable_timing and set_false_path? set_disable_timing removes an arc, so every path through it disappears. set_false_path keeps the graph and only stops checks on the named paths (see multicycle and false paths).

FAQ#

Are net arcs ever negative unate? No. A wire does not invert, so a net arc is positive unate. Crosstalk can change its delay, but not its sense (see crosstalk).

Does a positive-unate cell have the same rise and fall delay? No. Unateness only says which edge maps to which. Rise and fall delays come from separate tables and usually differ, as the CMOS inverter post explains for pull-up vs pull-down strength.

Summary#

  • A timing arc is a delay or check relationship between two pins, from Liberty (cell arcs) or interconnect RC (net arcs).
  • Unateness decides which input edge feeds which output edge. STA keeps rise and fall separately, and non-unate arcs force it to consider both.
  • In five ASAP7 RVT libraries, 317 unconditional combinational arcs are negative unate, 293 positive unate and only 17 non-unate (XOR/XNOR and adders). Another 4,516 are state-dependent.
  • Conditional when arcs can differ a lot from the default arc (19.54 vs 13.56 ps for XOR2 A rise to Y rise), and case analysis changes which arcs are used.
  • A non-unate clock path makes the tool time both clock senses: in OpenSTA, setup slack fell from 382.45 ps to 176.45 ps until the mode was set.
  • Disabled arcs remove paths silently: review report_disabled_edges and break loops yourself.

References#

Written by

Swasti Pujari

Associate Director, Backend Engineering at CoreIC Technologies, with 15+ years in VLSI Physical Design and backend engineering. Previously Practice Head at UST Global, leading Physical Design, STA, EMIR, DFT, and Physical Verification. Delivered 3nm, 6nm and 7nm projects for AMD, Intel, and Microchip, and published IEEE research on hybrid AI-EDA floorplanning.