Algorithm Search⌘K

Definitionintro

Arrival time and required time

Also called required arrival time, actual arrival time.

The latest time a signal settles at a pin, from the inputs forward, and the latest time it may settle, from the outputs backward. Their difference is the slack.

The arrival time of a pin is the latest time at which the signal at that pin can settle, computed forward from the times at which the inputs settle. The required time of a pin is the latest time at which the signal there may settle so that every output and register downstream still meets its deadline, computed backward from those deadlines. The difference, required time minus arrival time, is the slack: a negative slack is a timing violation. These three numbers are what static timing analysis computes for each vertex of the timing graph. Some books call them the actual arrival time and the required arrival time.

Definition

Let G=(V,E)G = (V, E) be a timing graph, a directed acyclic graph with a delay d(e)d(e) on each edge. For a path PP let d(P)d(P) be the sum of the delays of its edges. The start points are the vertices with no in-edge, and each start point ss has a given arrival time AT0(s)AT_0(s). The endpoints are the vertices with no out-edge, and each endpoint tt has a given required time RT0(t)RT_0(t).

Arrival time. For a vertex vv,

AT(v)=max⁡{ AT0(s)+d(P)  :  P a path from a start point s to v }.AT(v) = \max \{\, AT_0(s) + d(P) \;:\; P \text{ a path from a start point } s \text{ to } v \,\}.

Every vertex of a finite DAG is reached from some start point (walk back along in-edges until none is left), so the set is not empty. Splitting each path at its last edge gives the recurrence AT(v)=max⁡(u,v)∈E(AT(u)+d(u,v))AT(v) = \max_{(u, v) \in E} (AT(u) + d(u, v)) for vv not a start point, and AT(s)=AT0(s)AT(s) = AT_0(s) for a start point. The arrival time is a longest path value.

Required time. For a vertex vv,

RT(v)=min⁡{ RT0(t)−d(P)  :  P a path from v to an endpoint t },RT(v) = \min \{\, RT_0(t) - d(P) \;:\; P \text{ a path from } v \text{ to an endpoint } t \,\},

with the recurrence RT(u)=min⁡(u,v)∈E(RT(v)−d(u,v))RT(u) = \min_{(u, v) \in E} (RT(v) - d(u, v)), and RT(t)=RT0(t)RT(t) = RT_0(t) for an endpoint. If the signal at vv settles by RT(v)RT(v), then along every path from vv it reaches the endpoint by its deadline, and RT(v)RT(v) is the latest time with this property.

Slack. The slack of a vertex is slack(v)=RT(v)−AT(v)\mathrm{slack}(v) = RT(v) - AT(v). The slack of a start-to-end path PP from ss to tt is slack(P)=RT0(t)−AT0(s)−d(P)\mathrm{slack}(P) = RT_0(t) - AT_0(s) - d(P). Every path through vv is a path from a start point to vv followed by a path from vv to an endpoint, and the two parts can be chosen independently. So

slack(v)=min⁡{ slack(P):P a start-to-end path through v }.\mathrm{slack}(v) = \min \{\, \mathrm{slack}(P) : P \text{ a start-to-end path through } v \,\}.

In particular the least slack over all vertices equals the least slack over all paths. Tools report the worst negative slack (WNS), the least endpoint slack when it is negative, and the total negative slack (TNS), the sum of the negative endpoint slacks. A path whose slack equals the WNS is a critical path.

Late and early times. The definitions above are the late times, used for the setup check. The early times use the shortest delays: ATe(v)AT^{e}(v) is the minimum of AT0(s)+dmin⁡(P)AT_0(s) + d_{\min}(P), RTe(v)RT^{e}(v) is the maximum of RT0e(t)−dmin⁡(P)RT_0^{e}(t) - d_{\min}(P), and the early slack is ATe(v)−RTe(v)AT^{e}(v) - RT^{e}(v), so that it is again negative on a violation. The early times are used for the hold check.

Where the boundary times come from. For a primary input, AT0AT_0 is the input delay given by the designer. For a register clock pin, AT0AT_0 is the time at which the clock edge reaches it. For a register data pin, RT0RT_0 comes from the setup and hold constraints: ccapture+T−tsetupc_{\text{capture}} + T - t_{\text{setup}} in late mode and ccapture+tholdc_{\text{capture}} + t_{\text{hold}} in early mode, where TT is the clock period.

Examples and non-examples

The three-gate circuit. Take the 13-vertex timing graph of the timing graph page, with AT0(a)=0AT_0(a) = 0, AT0(b)=1AT_0(b) = 1, AT0(c)=0AT_0(c) = 0 and RT0(y)=9RT_0(y) = 9.

vertex aa bb cc G1/AG1/A G1/BG1/B G1/YG1/Y G2/AG2/A G2/BG2/B G2/YG2/Y G3/AG3/A G3/BG3/B G3/YG3/Y yy
ATAT 0 1 0 1 2 4 3 1 5 5 6 9 10
RTRT 1 0 0 2 4 5 2 1 4 6 5 8 9
slack 1 −1-1 0 1 2 1 −1-1 0 −1-1 1 −1-1 −1-1 −1-1

For example, AT(G1/Y)=max⁡(1+3,2+1)=4AT(G1/Y) = \max(1 + 3, 2 + 1) = 4 and RT(b)=min⁡(RT(G1/B)−1,RT(G2/A)−2)=min⁡(3,0)=0RT(b) = \min(RT(G1/B) - 1, RT(G2/A) - 2) = \min(3, 0) = 0. The vertices with slack −1-1 are exactly the vertices of the path b→G2/A→G2/Y→G3/B→G3/Y→yb \to G2/A \to G2/Y \to G3/B \to G3/Y \to y, whose path slack is 9−1−9=−19 - 1 - 9 = -1. Two paths pass through G1/YG1/Y: the one from aa, with slack 9−0−8=19 - 0 - 8 = 1, and the one from bb through G1/BG1/B, with slack 9−1−6=29 - 1 - 6 = 2. The vertex slack 11 is the smaller one. The path from cc has delay 9 too, but it starts at time 0, so its slack is 0.

Early times on the same graph. With early required time RT0e(y)=4RT_0^{e}(y) = 4, the earliest arrival at yy is 77, by the path b→G1/B→G1/Y→G3/A→G3/Y→yb \to G1/B \to G1/Y \to G3/A \to G3/Y \to y with delay 6. The early slack is 7−4=37 - 4 = 3, so this output meets a hold requirement of 4.

Non-example: the time for one input vector. The arrival time is a bound over all paths. It is not the time at which yy settles for a given change of the inputs. If no input change can make a signal travel along the longest path, the circuit is faster than ATAT says. Such a path is a false path.

Non-example: slack is not a path property summed along edges. One cannot get the slack of a path by adding the slacks of its vertices, or by taking the slack of its last vertex. In the example, slack(y)=−1\mathrm{slack}(y) = -1, but the path from aa to yy has slack 11. The vertex slack is the least slack of all paths through the vertex.

  • Slew. Timing tools also carry a slew (transition time) at each pin, the time the signal takes to move between two thresholds, usually 10 and 90 percent or 20 and 80 percent of the supply. Arrival times are measured at the 50 percent point. The slew of the input sets the delay of the next cell in the nonlinear delay model.
  • Rise and fall times. With unate cell arcs, each pin has a rising and a falling arrival time. A negative unate arc maps the rising input time to the falling output time and back.
  • Float in project scheduling. The critical path method has the earliest start, the latest start and the total float of an activity. They are the arrival time, the required time and the slack of the same longest path computation on a project network.
  • Statistical times. In statistical static timing analysis, the delays are random variables, and so are the arrival time, the required time and the slack.
  • Setup and hold slacks. At a register data pin the late slack is the setup slack and the early slack is the hold slack; see setup and hold constraints.

References

  1. Robert B. Hitchcock, Gordon L. Smith and David D. Cheng, Timing analysis of computer hardware, IBM Journal of Research and Development 26(1), 100 to 105, 1982, the arrival times, required times and slacks that the TA program computes for each block
  2. Andrew B. Kahng, Jens Lienig, Igor L. Markov and Jin Hu, VLSI Physical Design, From Graph Partitioning to Timing Closure, Springer, 1st edition, 2011, Chapter 8, Timing Closure, Section 8.2.1, Static Timing Analysis (actual arrival time, required arrival time and slack)
  3. J. Bhasker and Rakesh Chadha, Static Timing Analysis for Nanometer Designs, A Practical Approach, Springer, 2009, Chapter 2, STA Concepts, and Chapter 8, Timing Verification (arrival, required time and slack in setup and hold checks)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/8XDHXD/text.yaml