Algorithm Search⌘K

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 aa on the top edge and a pin of net bb on the bottom edge, the branch of aa comes down from the top and the branch of bb comes up from the bottom in the same column, on the same layer. If each net has one trunk, the trunk of aa must be on a higher track than the trunk of bb, or the two branches meet. The graph has one node for each net and one edge a→ba \to b 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 1,…,n1, \ldots, n, top pins top(c)\mathrm{top}(c) and bottom pins bot(c)\mathrm{bot}(c), each a net label or 0, and tracks 1,…,T1, \ldots, T numbered from the top. Trunks run on layer H and branches on layer V.

Vertical constraint graph. The vertical constraint graph GvG_v is the directed graph whose nodes are the nets and whose edges are

Ev={(top(c),bot(c)):1≤c≤n, top(c)≠0, bot(c)≠0, top(c)≠bot(c)}.E_v = \{ (\mathrm{top}(c), \mathrm{bot}(c)) : 1 \le c \le n,\ \mathrm{top}(c) \ne 0,\ \mathrm{bot}(c) \ne 0,\ \mathrm{top}(c) \ne \mathrm{bot}(c) \}.

An edge a→ba \to b reads "aa above bb". Several columns can give the same edge, and the graph keeps it once.

Meaning without doglegs. In a routing where each net NN has one trunk on track t(N)t(N), every edge a→ba \to b forces t(a)<t(b)t(a) < t(b).

Proof. Let column cc give the edge. The top pin of aa is the point (c,0)(c, 0) on layer V, and layer V has only vertical edges, so the wire of aa goes down column cc on layer V until a via takes it to layer H. The only trunk of aa is on track t(a)t(a), so the wire of aa holds the points (c,y)(c, y) for 0≤y≤t(a)0 \le y \le t(a) on layer V. In the same way, the wire of bb holds (c,y)(c, y) for t(b)≤y≤T+1t(b) \le y \le T + 1 on layer V. If t(a)≥t(b)t(a) \ge t(b), the point (c,t(b))(c, t(b)) on layer V belongs to both nets, which is not allowed. □\square

Path bound. If GvG_v has a path through kk nets N1→N2→⋯→NkN_1 \to N_2 \to \cdots \to N_k, then every routing without doglegs has t(N1)<t(N2)<⋯<t(Nk)t(N_1) < t(N_2) < \cdots < t(N_k), so T≥kT \ge k. With the density bound, T≥max⁡(d,kmax⁡)T \ge \max(d, k_{\max}), where kmax⁡k_{\max} is the number of nets on a longest path of GvG_v.

Cycles. If GvG_v has a cycle, the inequalities along it give t(N1)<t(N1)t(N_1) < t(N_1), so no routing without doglegs exists. If GvG_v 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 GvG_v is acyclic. A cycle detection by depth-first search decides this in O(n+N)O(n + N) time for NN 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 aa to a piece of bb when both hold a column with aa on top and bb 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 1→31 \to 3, 1→21 \to 2, 6→36 \to 3, 4→64 \to 6 and 5→25 \to 2. 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 4→6→34 \to 6 \to 3 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 5→25 \to 2 from column 1 and 1→51 \to 5 from column 4. Column 7 has net 1 on both sides and gives no edge. The path 1→5→21 \to 5 \to 2 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 n=2n = 2, top pins 1,21, 2, bottom pins 2,12, 1. The edges are 1→21 \to 2 and 2→12 \to 1. 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 1→21 \to 2 and 3→13 \to 1, 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 aa on top and on the bottom joins the two pins by one straight branch. It puts no constraint on the track of aa and gives no edge, not a loop a→aa \to a.

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 GvG_v.

  • 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 dd 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 GvG_v stays short.
  • Constraint graph of pieces. The graph of the pieces of nets in dogleg channel routing. A cycle of GvG_v can disappear in it, but not always.
  • Transitive edges. An edge a→ca \to c is implied when a→ba \to b and b→cb \to c 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 GvG_v at all, and handles the vertical constraints column by column.

References

  1. 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)
  2. 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)
  3. 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)
  4. 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.

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