Algorithm Search⌘K

Definitioncore

Timing graph

Also called timing DAG.

A DAG whose vertices are pins of a circuit and whose edges are cell arcs and nets with delays, cut open at registers, on which timing is computed.

A timing graph is the directed graph on which static timing analysis computes the times of a digital circuit. It has a vertex for each pin of each cell and for each port of the design, and an edge for each cell arc, from an input pin to an output pin of the same cell, and for each net arc, from the driver pin of a net to one of its load pins. Each edge carries a delay. Registers cut the circuit open, so the timing graph of a synchronous circuit with no combinational loop is a directed acyclic graph, even though the circuit itself has cycles through its registers.

Definition

Netlist. A gate-level netlist is a set of cells (gates and registers), each with input and output pins, a set of ports (primary inputs and primary outputs), and a set of nets. Each net connects one driver (an output pin or a primary input) to one or more loads (input pins or primary outputs). As a combinatorial object the netlist is a hypergraph with a net per hyperedge.

Timing graph. The timing graph of a netlist is the directed graph G=(V,E)G = (V, E) with:

  • VV = the set of all pins and ports;
  • a net arc (u,v)(u, v) for each net and each load vv of the net, where uu is the driver of the net;
  • a cell arc (a,y)(a, y) for each input pin aa and output pin yy of a combinational cell such that the cell library has a timing arc from aa to yy (for usual gates, every input to every output);
  • for each register, a clock-to-output arc from its clock pin CKCK to its output pin QQ, and no arc that leaves its data pin DD.

Each edge ee has a delay d(e)d(e). In a full model the delay is a pair of numbers, one for a rising and one for a falling output, and a pair of early (minimum) and late (maximum) values. A cell arc also has a sense: positive unate if a rising input can only cause a rising output (a buffer, an AND input), negative unate if it can only cause a falling output (an inverter, a NAND input), and non-unate if it can cause both (an XOR input). The delays come from a delay model, for example the nonlinear delay model for cell arcs and the Elmore delay for net arcs.

Start points and endpoints. A timing path is a directed path from a start point to an endpoint. The start points are the primary inputs and the clock pins of the registers, and the endpoints are the primary outputs and the data pins of the registers. In the graph above, the start points are exactly the vertices with no in-edge and the endpoints are exactly the vertices with no out-edge, once the clock network is cut off at the register clock pins.

Acyclicity. Suppose every directed cycle of the netlist passes through the data pin DD of some register. Then GG is acyclic. Proof. Take a directed cycle in GG. Each of its edges is an arc of a cell or a net of the netlist, so the cycle is also a cycle of the netlist, and it passes through some data pin DD. But no edge of GG leaves a data pin, so the cycle cannot continue after DD. This is a contradiction. □\square

Size. ∣V∣|V| is the number of pins PP plus the number of ports. There is one net arc per load pin, so fewer than PP net arcs, and a cell with kk inputs and one output has kk cell arcs. So ∣E∣=O(P)|E| = O(P) when each cell has a bounded number of outputs, and the timing graph is linear in the size of the netlist.

Examples and non-examples

A three-gate circuit. Take the primary inputs a,b,ca, b, c, the gates G1G1 with inputs A,BA, B driven by aa and bb, G2G2 with inputs A,BA, B driven by bb and cc, and G3G3 with inputs A,BA, B driven by G1/YG1/Y and G2/YG2/Y, and the primary output yy driven by G3/YG3/Y. The timing graph has 13 vertices: the 4 ports and the 9 gate pins. It has 7 net arcs and 6 cell arcs:

arc kind delay
a→G1/Aa \to G1/A, b→G1/Bb \to G1/B, c→G2/Bc \to G2/B, G1/Y→G3/AG1/Y \to G3/A, G2/Y→G3/BG2/Y \to G3/B, G3/Y→yG3/Y \to y net 1
b→G2/Ab \to G2/A net 2
G1/A→G1/YG1/A \to G1/Y cell 3
G1/B→G1/YG1/B \to G1/Y cell 1
G2/A→G2/YG2/A \to G2/Y, G3/A→G3/YG3/A \to G3/Y cell 2
G2/B→G2/YG2/B \to G2/Y, G3/B→G3/YG3/B \to G3/Y cell 3

The net of bb has two loads, so bb has two out-edges. The start points are a,b,ca, b, c and the only endpoint is yy. There are 4 timing paths, one for each input pin of G1G1 and G2G2, with delays 8 (from aa), 6 (from bb through G1G1), 9 (from bb through G2G2) and 9 (from cc). For example, 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 has delay 2+2+1+3+1=92 + 2 + 1 + 3 + 1 = 9. The static timing analysis page computes the times on this graph.

A register in a loop. A register RR whose output QQ drives an incrementer whose output drives DD forms a cycle Q→⋯→D→QQ \to \dots \to D \to Q in the netlist. In the timing graph the edge D→QD \to Q is missing, so the graph has the path CK→Q→⋯→DCK \to Q \to \dots \to D and no cycle. The path starts at the clock pin and ends at the data pin of the same register, and the setup and hold constraints of RR apply to it.

Non-example: a combinational loop. Two NAND gates with the output of each driving an input of the other (a set and reset latch built from gates) form a cycle with no register. Its timing graph has the cycle N1/A→N1/Y→N2/A→N2/Y→N1/AN1/A \to N1/Y \to N2/A \to N2/Y \to N1/A, so it is not a DAG, and arrival times are not defined by the max formula. Timing tools cut such a loop at one arc and report that they did so.

Non-example: the netlist hypergraph. The hypergraph with a vertex per cell and a hyperedge per net, used in graph partitioning and placement, has no direction and no delays, and it puts all pins of a cell in one vertex. It loses the difference between the arc A→YA \to Y and the arc B→YB \to Y of the same gate, which can have different delays.

  • Gate-level timing graph. A smaller graph has one vertex per net (or per gate output) and one edge per gate input. It merges the net arc and the cell arc into one edge. It is enough when wire delays are zero or are added to the cell delays, and it is the form used in many papers on retiming and gate sizing.
  • Arrival and required times. The arrival time of a vertex is the longest delay from a start point, and the required time is the latest time that meets all endpoint constraints. Both are defined on the timing graph.
  • Activity network. The critical path method uses the same kind of weighted DAG for projects, with tasks in place of arcs. The DAG longest path problem is the common core.
  • Boolean network. A Boolean network also has a vertex per gate, but it carries a Boolean function at each vertex and no delays. The timing graph keeps only the structure and the delays, which is why timing analysis can report a false path.
  • Constraint graph. For clock skew scheduling and retiming, the vertices are registers and the edges are setup and hold inequalities between them. That graph is built from the longest and shortest paths of the timing graph, and it can have cycles.

References

  1. J. Bhasker and Rakesh Chadha, Static Timing Analysis for Nanometer Designs, A Practical Approach, Springer, 2009, Chapter 2, STA Concepts (timing arcs, unateness, timing paths, start points and endpoints)
  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 (the timing graph)
  3. 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 block and path model of the network that the IBM TA program analyzes

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/5EDA9W/text.yaml