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 with:
- = the set of all pins and ports;
- a net arc for each net and each load of the net, where is the driver of the net;
- a cell arc for each input pin and output pin of a combinational cell such that the cell library has a timing arc from to (for usual gates, every input to every output);
- for each register, a clock-to-output arc from its clock pin to its output pin , and no arc that leaves its data pin .
Each edge has a delay . 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 of some register. Then is acyclic. Proof. Take a directed cycle in . 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 . But no edge of leaves a data pin, so the cycle cannot continue after . This is a contradiction.
Size. is the number of pins plus the number of ports. There is one net arc per load pin, so fewer than net arcs, and a cell with inputs and one output has cell arcs. So 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 , the gates with inputs driven by and , with inputs driven by and , and with inputs driven by and , and the primary output driven by . 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 |
|---|---|---|
| , , , , , | net | 1 |
| net | 2 | |
| cell | 3 | |
| cell | 1 | |
| , | cell | 2 |
| , | cell | 3 |
The net of has two loads, so has two out-edges. The start points are and the only endpoint is . There are 4 timing paths, one for each input pin of and , with delays 8 (from ), 6 (from through ), 9 (from through ) and 9 (from ). For example, the path has delay . The static timing analysis page computes the times on this graph.
A register in a loop. A register whose output drives an incrementer whose output drives forms a cycle in the netlist. In the timing graph the edge is missing, so the graph has the path 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 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 , 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 and the arc of the same gate, which can have different delays.
Related definitions
- 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
- 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)
- 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)
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 5EDA9W Edit this page History Report an error Markdown