Definitioncore
Vertical constraint graph
Also called VCG.
A directed graph on the nets of a channel, with an edge when one net must take a higher track than another at some column. A cycle in it forces a dogleg.
The vertical constraint graph records which net must lie above which in a channel. When a column has a pin of net on the top edge and a pin of net on the bottom edge, the branch of comes down from the top and the branch of comes up from the bottom in the same column, on the same layer. If each net has one trunk, the trunk of must be on a higher track than the trunk of , or the two branches meet. The graph has one node for each net and one edge for each such column. Its cycles tell when a channel has no routing without doglegs, and its longest path gives a second lower bound on the number of tracks, next to the channel density.
Definition
Channel. Use the notation of the channel routing problem: columns , top pins and bottom pins , each a net label or 0, and tracks numbered from the top. Trunks run on layer H and branches on layer V.
Vertical constraint graph. The vertical constraint graph is the directed graph whose nodes are the nets and whose edges are
An edge reads " above ". Several columns can give the same edge, and the graph keeps it once.
Meaning without doglegs. In a routing where each net has one trunk on track , every edge forces .
Proof. Let column give the edge. The top pin of is the point on layer V, and layer V has only vertical edges, so the wire of goes down column on layer V until a via takes it to layer H. The only trunk of is on track , so the wire of holds the points for on layer V. In the same way, the wire of holds for on layer V. If , the point on layer V belongs to both nets, which is not allowed.
Path bound. If has a path through nets , then every routing without doglegs has , so . With the density bound, , where is the number of nets on a longest path of .
Cycles. If has a cycle, the inequalities along it give , so no routing without doglegs exists. If is a directed acyclic graph, one net per track in a topological order is a routing, as the page on the channel routing problem shows. So a routing without doglegs exists if and only if is acyclic. A cycle detection by depth-first search decides this in time for nets.
Pieces of nets. When a net may change track at its own pin columns, the nodes of the graph are the pieces of nets between two pin columns that follow each other, and an edge joins a piece of to a piece of when both hold a column with on top and at the bottom. This finer graph is the one that dogleg channel routing uses.
Examples and non-examples
A graph with a long path. Take the channel
| column | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| top | 1 | 0 | 3 | 1 | 0 | 4 | 6 | 4 | 0 | 5 |
| bottom | 3 | 6 | 0 | 2 | 2 | 0 | 3 | 6 | 5 | 2 |
Columns 1, 4, 7, 8 and 10 have pins of two different nets on top and bottom, and give the edges , , , and . Column 9 has net 5 on the bottom only, and column 3 has net 3 on the top only, so they give no edge. The graph is acyclic. The longest path has 3 nets, so the path bound is 3, and the density of this channel is 4. The left-edge algorithm routes it in 4 tracks.
When the path bound is larger than the density. Take
| column | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| top | 5 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| bottom | 2 | 2 | 4 | 5 | 3 | 3 | 1 | 4 |
The edges are from column 1 and from column 4. Column 7 has net 1 on both sides and gives no edge. The path has 3 nets and the density is 3, so at least 3 tracks are needed, and 3 tracks are enough: net 1 on track 1, nets 3 and 5 on track 2, nets 2 and 4 on track 3.
A cycle. Take , top pins , bottom pins . The edges are and . No routing without doglegs exists, though the density is 2. The page on channel density shows that even jogs in any column need a third track here.
Doglegs beat the path bound. Take
| column | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| top | 1 | 2 | 1 | 3 | 0 | 0 |
| bottom | 2 | 0 | 0 | 1 | 3 | 3 |
The edges are and , a path through 3 nets, so every routing without doglegs needs 3 tracks. The density is 2. If net 1 changes track at its pin in column 3, the channel fits in 2 tracks, as the page on dogleg channel routing shows. So the path bound holds only in the model without doglegs.
Not an edge: the same net on both sides. A column with net on top and on the bottom joins the two pins by one straight branch. It puts no constraint on the track of and gives no edge, not a loop .
Not an edge: nets that only cross. Two nets whose intervals meet need different tracks where they meet, but that is a horizontal constraint. It does not say which net is higher, so it is not an edge of .
Related definitions
- Horizontal constraint graph. The undirected graph on the nets with an edge when two intervals meet. It is an interval graph, and its largest clique has nets, the channel density.
- Zones. The maximal sets of nets that cross one column. The Yoshimura-Kuh algorithm merges nets from different zones so that the longest path of stays short.
- Constraint graph of pieces. The graph of the pieces of nets in dogleg channel routing. A cycle of can disappear in it, but not always.
- Transitive edges. An edge is implied when and are edges. It adds no constraint on the tracks, but routers keep it because it comes from a column.
- Longest path in a DAG: computes the path bound in linear time.
- Greedy channel router: does not build at all, and handles the vertical constraints column by column.
References
- Andrew B. Kahng, Jens Lienig, Igor L. Markov and Jin Hu, VLSI Physical Design, From Graph Partitioning to Timing Closure, second edition, Springer, 2022, Chapter 6, Detailed Routing, the section on channel routing (horizontal and vertical constraint graphs and cyclic constraints; general locator)
- Naveed A. Sherwani, Algorithms for VLSI Physical Design Automation, third edition, Kluwer, 1999, the chapter on detailed routing, the part on channel routing (the vertical constraint graph and its cycles; general locator)
- T. Yoshimura and E. S. Kuh, Efficient algorithms for channel routing, IEEE Transactions on Computer-Aided Design 1(1), 25 to 35, 1982, the vertical constraint graph, its longest path as a lower bound and the merging of nets that keeps it short (general locator)
- D. N. Deutsch, A dogleg channel router, Proceedings of the 13th Design Automation Conference, 425 to 433, 1976, the use of doglegs to break the vertical constraints that join two nets in a cycle (general locator)
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 5HS98N Edit this page History Report an error Markdown