TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

Reading Real Reports, Part 6: Unconstrained Paths and the check_timing Report Nobody Reads Until Silicon Fails

The Semiconductor Hub
by
0
Share Facebook X LinkedIn WhatsApp Email
OpenSTA-style check_setup warnings about unclocked pins, unconstrained endpoints and a disconnected generated clock, and an unconstrained path footer.

A timing report with zero violations has two possible meanings. Either every path was checked and passed, or some paths were never checked at all. The violators list from Part 5 cannot tell the two apart, because a path with no requirement has no slack, and a path with no slack can never fail. The report that tells them apart is short, easy to skip, and the one most often missing from a sign-off package.

This is Part 6 of Reading Real Reports. Commercial timers usually call this report check_timing. In OpenSTA and OpenROAD it is check_setup, and it has a partner: the unconstrained path report. Today we read both and work out what a silent path would have shown if it had been constrained.

Key takeaways

  • An unconstrained path has no required time, so it never appears as a violation. "No violations" says nothing about it.
  • check_setup prints nothing when every check passes. A missing log section and a clean result look the same, so save the command's return value too.
  • Inputs without set_input_delay are not just unconstrained in OpenSTA. Their paths are not reported at all unless you change a variable.
  • One bad clock definition can leave flops unclocked, and every path into them unconstrained. Read the warnings for a shared cause.
  • Every unconstrained item needs a reason in writing: constrained now, deliberately unconstrained, or not a real path.

In this post

What "unconstrained" means

A timing check needs two things: a time when data arrives, and a time when it is required. Data arrival needs a clock or an input delay at the start of the path. The required time needs a clocked check at the end: a flop's setup check, or an output delay on a port. Take either away and the timer can still add up delays, but it has nothing to compare them with.

OpenSTA's check_setup runs sanity checks for the usual causes: inputs without set_input_delay, outputs without set_output_delay, clock pins with no clock or with several clocks, unconstrained endpoints, combinational loops, and generated clocks whose source is not a clock. The reference adds two details that matter for review. Failed checks are reported as warnings, and if no checks fail, nothing is reported. The command also returns 1 when there are no warnings, so a script can stop on it.

When you see it

Run it every time the constraints or the netlist change, before you read any slack. Its partner is report_checks -unconstrained; the reference states the unconstrained path group is not reported without this option. The OpenROAD-flow-scripts metrics script includes a report_checks -unconstrained section in each stage's report (report_metrics.tcl), so in that flow the data is already on disk. The question is whether anyone reads it.

What a senior checks first

  1. Did it run, and what did it return? An empty section is only good news if the command is in the log.
  2. Unclocked pins. A flop with no clock makes every path into it unconstrained. These come first because they hide the most.
  3. Generated clocks. A generated clock whose source is not a clock is the usual reason for unclocked flops.
  4. Ports. Missing input and output delays, port by port. Each needs a budget or a written reason.
  5. Constants. set_case_analysis stops paths from propagating through constant pins. report_disabled_edges lists the arcs disabled by constants, loops or constraints.

Common traps

  • Expecting the unconstrained report to show everything. The set_input_delay reference says paths from inputs with no input delay are not reported, unless the sta_input_port_default_clock variable is set to 1. Only check_setup catches them.
  • Grepping for "Error". The findings are warnings. A log filter for errors will pass them.
  • Accepting "it is only debug". Debug and test pins reach real pads. If they are deliberately unconstrained, write that down with a reason.
  • Fixing with a false path. Silencing a warning with an exception moves the problem out of view. Part 7 shows how to spot that in an SDC file.

Deep dive: the numbers and details

This part holds a sample session, a reading of each warning, the arithmetic for a path that was never checked, and the checklists. Skip it if the overview is all you need.

The illustrative sample

The session below is an illustrative sample in the style of OpenSTA/OpenROAD output, written for this post. Names and numbers are invented. The warning wording follows the current OpenSTA source CheckTiming.cc; the indentation of the pin lists is our guess. The unconstrained group name and the closing line of the path report follow PathGroup.hh and ReportPath.cc. Units are nanoseconds; the core clock period is 2.00 ns.

openroad> check_setup -verbose
Warning: There is 1 input port missing set_input_delay.
 irq_ext
Warning: There are 3 output ports missing set_output_delay.
 dbg_out[0]
 dbg_out[1]
 dbg_out[2]
Warning: There are 2 unclocked register/latch pins.
 u_dbg/cap_reg_0_/CK
 u_dbg/cap_reg_1_/CK
Warning: There are 5 unconstrained endpoints.
 dbg_out[0]
 dbg_out[1]
 dbg_out[2]
 u_dbg/cap_reg_0_/D
 u_dbg/cap_reg_1_/D
Warning: There is 1 generated clock not connected to a clock source.
 clk_dbg
openroad> llength [get_fanout -from [get_ports irq_ext] -endpoints_only -flat]
37
openroad> report_checks -unconstrained -path_group unconstrained
Startpoint: u_core/status_reg_2_ (rising edge-triggered flip-flop clocked by core_clk)
Endpoint: dbg_out[2] (output port)
Path Group: unconstrained
Path Type: max

  Delay    Time   Description
---------------------------------------------------------
   0.00    0.00   clock core_clk (rise edge)
   0.48    0.48   clock network delay (propagated)
   0.00    0.48 ^ u_core/status_reg_2_/CK (DFF_X1)
   0.22    0.70 ^ u_core/status_reg_2_/Q (DFF_X1)
   0.61    1.31 ^ u_dbg/U12/Z (MUX2_X1)
   0.79    2.10 ^ u_io/obuf_dbg_2/Z (BUF_X8)
   0.33    2.43 ^ dbg_out[2] (out)
           2.43   data arrival time
---------------------------------------------------------
(Path is unconstrained)

Line-by-line walk-through

Input port missing set_input_delay. One port, irq_ext. Per the -no_input_delay check, this lists inputs with no input delay. The get_fanout line counts what sits behind it: 37 endpoints. None of the paths from this port will show up in any slack report, including the unconstrained one. Clock ports are not listed, and our reading of CheckTiming.cc is that ports held constant are skipped as well.

Output ports missing set_output_delay. The three dbg_out bits. Without an output delay there is no check at the port, so these also appear in the unconstrained endpoint list below.

Unclocked register/latch pins. Two capture flops in u_dbg have no clock arriving at their clock pins. Per the -no_clock check, this looks at register and latch clock pins. A flop with no clock cannot launch or capture, so its D pins become unconstrained endpoints and its Q pins start no timed paths.

Unconstrained endpoints. Five pins: the three output ports and the two D pins. Per -unconstrained_endpoints, an endpoint is constrained by a timing check or a set_output_delay. This list is a consequence of the two warnings above it, not new information.

Generated clock not connected to a clock source. clk_dbg was defined with create_generated_clock, but its -source pin has no clock on it (-generated_clocks). In this sample it is the clock meant for u_dbg/cap_reg_*. One wrong pin name in the SDC explains the unclocked pins and two of the five unconstrained endpoints.

The unconstrained path. It looks like any other report until the end: a data arrival time of 2.43 ns, then (Path is unconstrained) where the required time and slack would be. The Path Group: unconstrained header is the only other sign.

Worked arithmetic check

What the silent path would have shown. Suppose dbg_out[2] is given the same budget as the other outputs: an output delay of 20 percent of the period on a virtual I/O clock, the style used in the OpenROAD-flow-scripts example gcd constraint.sdc.

output delay   = 0.20 x 2.00            = 0.40
required (virtual clock, no latency)
               = 2.00 - 0.40            = 1.60
slack          = 1.60 - 2.43            = -0.83  (VIOLATED)

If the virtual clock is given the same 0.48 ns latency as the internal clock, the required time becomes 2.00 + 0.48 - 0.40 = 2.08 ns and the slack -0.35 ns. Either way, a path that showed nothing would fail. The two answers also show why the latency assumption for the I/O clock has to be agreed and written down.

What the warnings cover.

endpoints with no check (check_setup)          = 5
endpoints behind irq_ext (never reported)      = 37
endpoints hidden in total                      = 42

Against a block with, say, 4,800 timing endpoints, 42 is under 1 percent. It is still 42 places where the chip can fail with a clean report.

One fix, several warnings. Correcting the -source pin of clk_dbg should clear two warnings outright, the generated clock and the two unclocked pins, and remove two of the five unconstrained endpoints from the third. The remaining work is one input delay and three output delays, each needing a number from the interface owner.

Red flags table

What you seeWhy it mattersWhat to ask
No check_setup output in the logClean and not run look the sameWhere is the command and its return value?
Unclocked register pinsWhole groups of paths are untimedWhich clock should reach them, and why does it not?
Generated clock not connectedIts flops lose their clockIs the -source pin on the master clock's path?
Input missing input delayIts paths are not reported anywhereHow many endpoints sit behind it?
Unconstrained count went up since last runA constraint was lost or a block was addedWhich SDC or netlist change caused it?
Many arcs disabled by constantsCase analysis may remove real pathsIs each set_case_analysis right for this mode?

Sign-off checklist

  • check_setup -verbose run on the final netlist and SDC, with its output and return value saved.
  • Zero unclocked register or latch pins, or each one explained.
  • Every generated clock connected to its master.
  • Every input and output port either constrained or listed as deliberately unconstrained, with a reason and an owner.
  • report_checks -unconstrained saved and read, not only generated.
  • report_disabled_edges reviewed for each mode's case analysis.
  • Unconstrained counts compared with the previous run.

Next in the series: Reading an SDC File as a Reviewer, from create_clock to set_false_path.

Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!