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 3: Setup vs Hold Paths and Why the Same Path Tells Two Stories

The Semiconductor Hub
by
0
Share Facebook X LinkedIn WhatsApp Email
Two OpenSTA-style timing path excerpts for the same flip-flop pair, a setup check that passes and a hold check that fails.

Take two flip-flops with one buffer between them. Ask the timer about setup and it says the path has a full nanosecond to spare. Ask about hold and it says the same path fails. Both answers are correct. They come from different corners, different clock edges and different questions, and a senior reads the two reports side by side before deciding anything.

This is Part 3 of Reading Real Reports. Part 2 read one setup report line by line. Today we put a setup report and a hold report for the same pair of flops next to each other, show why they disagree, and point out one footer line in the hold report that catches people out.

Key takeaways

  • Setup asks whether data arrives early enough for the next clock edge. Hold asks whether new data arrives too soon after the same edge.
  • Setup is checked at the slow corner and hold at the fast corner. A hold report from a slow corner proves very little.
  • The hold check uses the same clock edge for launch and capture, so changing the clock period does not fix it.
  • Clock skew that helps setup on a path hurts hold on the same path. Read the clock lines of both reports together.
  • In a hold report, slack is arrival minus required. The footer can look as if it says the opposite.

In this post

Two questions about one path

The UC Santa Cruz multi-corner STA tutorial puts the two checks plainly. Setup fails when the design runs too slow; hold fails when it runs too fast, because a short path beats the clock from the launching flop to the capturing flop (Why multiple corners?). The same page sets out the usual pairing: setup against the slow worst case, hold against the fast worst case.

So a "path" in a timing review is really two checks. A long path tends to fail setup. A short path, often flop to flop with almost nothing between, tends to fail hold. Many paths are safe on both, and a few are tight on both, which is where fixes get hard.

When you see the pair

In OpenSTA, report_checks -path_delay picks the check: max for setup, min for hold, min_max for both. Summary commands take the same split, for example report_worst_slack -min for hold (report_worst_slack). Hold usually becomes a real topic after clock tree synthesis, once skew is real. The OpenROAD-flow-scripts tutorial shows a hold repair after global routing, with the resizer reporting that it found 2 endpoints with hold violations and inserted 5 hold buffers (Fixing Hold Violations).

What a senior checks first

  1. Check and corner are paired correctly. Path Type: max with a slow corner, Path Type: min with a fast one.
  2. The capture edge. In a setup report it is one period after launch. In a hold report it is the same edge as launch, at time zero for a simple single-clock path.
  3. The skew, both ways. If the capture clock arrives later than the launch clock, setup gains that time and hold loses it.
  4. Room to fix. Before adding delay for hold, look at the setup slack on the same endpoint. That is the budget for the fix.
  5. Uncertainty values. set_clock_uncertainty accepts -setup and -hold, so the two reports can carry different margins on purpose.

Common traps

  • Slowing the clock to fix hold. It does nothing for a same-edge hold check.
  • Hold checked with ideal clocks. Before clock tree synthesis there is no skew, so hold results are mostly optimistic guesses.
  • Fixing hold at one corner, breaking setup at another. A delay cell added at the fast corner is slower still at the slow corner.
  • Half an exception. set_false_path takes -setup and -hold options. An exception written for one check leaves the other one timed, which may or may not be what was meant.

Deep dive: the numbers and details

This part holds two full sample reports, a side-by-side reading, the arithmetic and the checklists. Skip it if the overview is all you need.

The illustrative sample

Both reports below are an illustrative sample in the style of OpenSTA/OpenROAD report_checks output, written for this post. Names, corners and numbers are invented. The hold layout, including the library hold time line and the footer order, follows a public OpenSTA regression output, set_path_margin1.ok. Units are nanoseconds; the clock period is 1.25 ns.

Startpoint: u_pipe/s1_reg_7_ (rising edge-triggered flip-flop clocked by core_clk)
Endpoint: u_pipe/s2_reg_7_ (rising edge-triggered flip-flop clocked by core_clk)
Path Group: core_clk
Path Type: max
Corner: ss_0p72v_125c

  Delay    Time   Description
---------------------------------------------------------
   0.00    0.00   clock core_clk (rise edge)
   0.52    0.52   clock network delay (propagated)
   0.00    0.52 ^ u_pipe/s1_reg_7_/CK (DFF_X1)
   0.19    0.71 ^ u_pipe/s1_reg_7_/Q (DFF_X1)
   0.08    0.79 ^ u_pipe/U31/Z (BUF_X1)
   0.02    0.81 ^ u_pipe/s2_reg_7_/D (DFF_X1)
           0.81   data arrival time

   1.25    1.25   clock core_clk (rise edge)
   0.66    1.91   clock network delay (propagated)
  -0.06    1.85   clock uncertainty
   0.03    1.88   clock reconvergence pessimism
           1.88 ^ u_pipe/s2_reg_7_/CK (DFF_X1)
  -0.07    1.81   library setup time
           1.81   data required time
---------------------------------------------------------
           1.81   data required time
          -0.81   data arrival time
---------------------------------------------------------
           1.00   slack (MET)


Startpoint: u_pipe/s1_reg_7_ (rising edge-triggered flip-flop clocked by core_clk)
Endpoint: u_pipe/s2_reg_7_ (rising edge-triggered flip-flop clocked by core_clk)
Path Group: core_clk
Path Type: min
Corner: ff_0p88v_m40c

  Delay    Time   Description
---------------------------------------------------------
   0.00    0.00   clock core_clk (rise edge)
   0.24    0.24   clock network delay (propagated)
   0.00    0.24 ^ u_pipe/s1_reg_7_/CK (DFF_X1)
   0.07    0.31 ^ u_pipe/s1_reg_7_/Q (DFF_X1)
   0.03    0.34 ^ u_pipe/U31/Z (BUF_X1)
   0.01    0.35 ^ u_pipe/s2_reg_7_/D (DFF_X1)
           0.35   data arrival time

   0.00    0.00   clock core_clk (rise edge)
   0.33    0.33   clock network delay (propagated)
   0.03    0.36   clock uncertainty
  -0.02    0.34   clock reconvergence pessimism
           0.34 ^ u_pipe/s2_reg_7_/CK (DFF_X1)
   0.04    0.38   library hold time
           0.38   data required time
---------------------------------------------------------
           0.38   data required time
          -0.35   data arrival time
---------------------------------------------------------
          -0.03   slack (VIOLATED)

Line-by-line walk-through

Headers. Same startpoint, same endpoint, same path group. Only Path Type and Corner differ: max at a slow, low-voltage, hot corner and min at a fast, high-voltage, cold one. That is the pairing the UC Santa Cruz tutorial recommends.

Launch side. The data path is identical in structure: clock to Q, one buffer, a short wire. The delays shrink at the fast corner: clock-to-Q 0.19 becomes 0.07, the buffer 0.08 becomes 0.03. The clock tree also speeds up, from 0.52 to 0.24 ns of latency at the launch flop.

Capture edge. In the setup report the capture edge is at 1.25, one period later. In the hold report it is at 0.00, the same edge that launched the data. The public OpenSTA output linked above shows the same thing: its min path captures at clock clk (rise edge) 0.00. Hold asks whether the new data, launched by this edge, disturbs the old data that this same edge is capturing.

Capture clock latency. 0.66 at the slow corner, 0.33 at the fast corner. In both, the capture flop sees its clock later than the launch flop does.

Uncertainty. Minus 0.06 for setup, which pulls the required time earlier. Plus 0.03 for hold, which pushes it later. In both cases the margin makes the check harder. Different values per check are allowed through the -setup and -hold options.

Clock reconvergence pessimism. Plus 0.03 for setup, minus 0.02 for hold. Both are credits for the shared part of the clock tree, so each moves the required time in the direction that eases its own check.

Library setup and hold times. Setup is subtracted (data must arrive before the edge). Hold is added (data must stay stable after the edge).

The footer trap. The hold footer prints required time first, then arrival with a minus sign, the same layout as setup. Reading it as a sum gives 0.38 - 0.35 = +0.03, yet the slack line says -0.03. For a hold check, slack is arrival minus required: 0.35 - 0.38 = -0.03. The public OpenSTA output shows the same pattern: 0.50 required, 0.10 arrival, slack -0.40 (set_path_margin1.ok). Trust the slack line and the MET or VIOLATED word, and know which formula sits behind it.

Worked arithmetic check

Setup.

arrival  = 0.00 + 0.52 + 0.19 + 0.08 + 0.02          = 0.81
required = 1.25 + 0.66 - 0.06 + 0.03 - 0.07          = 1.81
slack    = required - arrival = 1.81 - 0.81          = 1.00  (MET)

Hold.

arrival  = 0.00 + 0.24 + 0.07 + 0.03 + 0.01          = 0.35
required = 0.00 + 0.33 + 0.03 - 0.02 + 0.04          = 0.38
slack    = arrival - required = 0.35 - 0.38          = -0.03 (VIOLATED)

Skew, read both ways. Capture latency minus launch latency is 0.66 - 0.52 = +0.14 ns at the slow corner and 0.33 - 0.24 = +0.09 ns at the fast corner. For setup, a later capture clock adds time, so the 0.14 ns is a gift. For hold, a later capture clock means the old data must be held longer, so the 0.09 ns is a cost. Without it, this hold check would pass by 0.06 ns.

Can we fix it? The hold check needs at least 0.03 ns more data delay at the fast corner. Say a delay buffer adds 0.05 ns there. Delay cells are slower at the slow corner; if this one were twice as slow there (an assumption for the example, not a library figure), it would add 0.10 ns to the setup path and setup slack would fall from 1.00 to 0.90 ns. There is plenty of room. On a path with 0.05 ns of setup slack, the same fix would break setup, and the answer would have to come from the clock tree instead. The OpenSTA command report_clock_skew takes -setup or -hold, which helps when deciding which side to work on.

The clock period test. Change the period from 1.25 to 2.00 ns in the hold report. The capture edge stays at 0.00, every other number stays the same, and slack is still -0.03. Only the setup report moves, by +0.75 ns.

Red flags table

What you seeWhy it mattersWhat to ask
Hold reported only at the slow cornerFast-corner hold failures are hiddenWhere is the fast-corner min report?
Hold capture edge not at the launch edgeAn exception or clock relation moved the checkWhich SDC line caused it, and is it meant to apply to hold?
Large positive skew on hold-critical pathsThe clock tree is creating the violationCan CTS balance these flops instead of adding buffers?
Hold fixes on paths with small setup slackThe fix will move the failure to setupWhat is the setup slack at the slow corner after the fix?
Many hold violators of a few ps before CTSIdeal clocks make hold numbers unreliableRe-time with propagated clocks before fixing
False path or multicycle set for one check onlyThe other check is still timedWas -setup or -hold chosen on purpose?

Sign-off checklist

  • Setup (max) reviewed at every slow corner, hold (min) at every fast corner.
  • Clocks propagated in both reports.
  • Setup capture edge one period after launch; hold capture edge at the launch edge, unless an exception says otherwise.
  • Skew sign read for both checks on every critical endpoint.
  • Hold slack computed as arrival minus required and matched to the report.
  • Setup slack after each hold fix re-checked at the slow corner.
  • Setup and hold uncertainty values known and documented.
  • Worst hold slack and hold TNS both recorded, with report_worst_slack -min and report_tns -min.

Next in the series: Clock Skew, Latency and Uncertainty in a Timing Report.

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!