Problemcore
Global routing
Also called loose routing.
Assign each net a route through a coarse grid of tiles so that the number of nets across each tile edge stays within its capacity.
Global routing is the step of chip design, after placement, that gives each net a coarse route. The chip is cut into a grid of rectangular tiles, called gcells, and each pair of neighbor tiles has a capacity: the number of wires that can cross their common side. A route of a net is a tree of tiles that holds all its pins, a Steiner tree in the grid graph. The goal is to choose one tree per net so that no tile boundary carries more nets than its capacity, and then to make the total wire length small. The problem is NP-hard, so routers are heuristics that are judged on benchmarks. This page states the problem. The methods are on the pages of the routers.
In plain words
Think of the chip as a city of square blocks. The wires are cars, and each street between two blocks has only a few lanes. Every net is a group of houses that must be joined by roads. Global routing does not choose the exact lane of each wire. It only chooses which blocks each net passes through, like a trip plan on a map.
Two things count. First, no street may carry more cars than it has lanes. A street that carries too many is overflowed, and the wires there cannot be finished later. Second, among the plans with no overflow, short plans are better, because long wires are slow and use power.
The hard part is that the nets compete. The shortest plan for one net can take the last lane that another net needs.
Definition
Input.
- A global routing grid: the grid graph of gcells. Two gcells are joined by an edge when they share a side. Each edge has an integer capacity , the number of routing tracks across that side that are not blocked.
- A netlist with nets and pins, as on the placement page. Each pin lies in a gcell, so net gives a set of terminal gcells. Nets with need no global route and are dropped.
Feasible solution. A route of net is a subtree of that contains every gcell of . Only trees in which every leaf is a terminal are useful, since a leaf that is not a terminal can be cut off.
Measures. For a family of routes :
- the usage of edge is ;
- the overflow of is , the total overflow is and the maximum overflow is ;
- the wirelength is , in units of one gcell;
- the congestion is , over the edges with .
Objective. The standard objective is lexicographic: minimize , then , then . The routing is legal, or overflow-free, when , that is for every edge. The decision version asks: is there a legal routing with ?
Three-dimensional form. A modern grid has routing layers, each with one preferred direction. Then has gcells, the edges inside a layer have capacities, and an edge between two layers is a via. The wirelength counts each via as a fixed number of gcell units. In the ISPD 2007 contest a via cost 3 units and in the ISPD 2008 contest it cost 1 unit.
Variants
- Two-dimensional and three-dimensional. Most routers solve the problem on the 2D grid, with the capacities of all layers added up, and then do layer assignment to put each segment on a layer.
- Minimum congestion. Minimize instead of the total overflow. For two-pin nets this is integral multicommodity flow with one unit of demand per net, the form that Raghavan and Thompson studied.
- Wire widths and spacing. Net takes tracks, so . Wide power or clock nets and nets with extra spacing use this form.
- Timing-driven routing. Critical nets get routes with short source-to-sink paths, measured by path length or by the Elmore delay of the tree, with slack from static timing analysis.
- Fixed candidate routes. Each net chooses from a short list of routes, for example the L-shaped and Z-shaped patterns. The problem then is to choose one route per net, an integer program with one variable per candidate.
- FPGA routing. The graph is the routing-resource graph of the FPGA: wire segments and switches. Each node is a resource that one net can use, so the capacities are on the nodes and every capacity is 1.
- Other cost functions. Some formulations add a penalty for routes through crowded gcells, for coupling between neighbor wires, or for bends.
Examples
Write each gcell as , with the column and the row, both from 0.
Two crossing nets, overflow is forced. Take the grid, with the 4 edges at capacity 1. Net A joins and , and net B joins and . Each net has exactly two routes of 2 edges, around one side of the square or the other, and a route of A meets each route of B in exactly one edge. So all 4 combinations have , , and congestion . If any one edge has capacity 2, the two nets can share that edge, and the optimum becomes with .
A wrong shortest route blocks another net. Take the grid, with the 12 edges at capacity 1. Net A joins and , and net B joins the corners and . Net A has 8 routes (all simple paths) and 2 of them have the least length 2: through the corner or through the center . Net B has 12 routes, and 6 of them have the least length 4.
- If A goes through the corner, it uses both edges of the corner gcell . Every route of B starts at , so .
- If A goes through the center, it uses the edges and . Of the 6 shortest routes of B, only two avoid both edges: along the bottom row and up the right column, or up the left column and along the top row.
Over all pairs of routes, the least is , and exactly 2 pairs reach it. The example shows the coupling of the nets: both shortest routes of A are optimal for A alone, but only one of them fits with B.
Known algorithms
| Method | Idea | What is known |
|---|---|---|
| Sequential maze routing | route the nets one at a time by a shortest path search with costs | each net gets a cheapest route for the current costs; the result depends on the order of the nets |
| Rip-up and reroute | remove the routes through overflowed edges and route those nets again | no general convergence proof; measured |
| Pattern routing | try only L-shaped and Z-shaped routes for each two-pin connection | and candidates per connection; fast first routing |
| Negotiated congestion routing | reroute all nets each round, with costs raised by present and past overuse | no general convergence proof; the base of NTHU-Route 2.0, which won the ISPD 2008 contest |
| Multicommodity flow with rounding | solve the fractional problem with an approximation scheme, then round | fractional congestion within a factor of optimal; rounding bound of Raghavan and Thompson |
| Steiner tree construction, for example FLUTE | split each multi-pin net into two-pin connections before routing | exact rectilinear Steiner trees for nets of up to 9 pins by table lookup |
All the full-netlist routers in this table are heuristics for the problem as stated. What is proved is about single steps: a shortest path per connection, or an approximation of the fractional relaxation. Their quality on the whole problem is measured on benchmarks, mostly the ISPD 2007 and 2008 global routing suites.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Multicommodity flow global routing | O(T k E log V) worst | O(E + T k V) extra | randomizednot exactiterative | 1 language |
| Negotiated congestion routing | O(I (P E log V + m E)) worst | O(E + m V) extra | deterministicnot exactiterative | 1 language |
Bounds
Hardness. The problem is NP-hard in two separate ways.
- With one net and large capacities, an optimal route is a minimum Steiner tree of in the grid graph. This contains the rectilinear Steiner tree problem for terminals with integer coordinates. Garey and Johnson (1977) proved it NP-complete in the strong sense, so it stays NP-complete when the coordinates are bounded by a polynomial, and then the grid graph has polynomial size.
- With two-pin nets on a general graph and all capacities 1, a legal routing is a set of edge-disjoint paths, one per pair. Integral two-commodity flow is NP-complete (Even, Itai and Shamir, 1976), so deciding whether is NP-complete on general graphs.
Wirelength lower bound. A route of net is a connected set of gcells that holds , so it has at least edges, the half-perimeter wirelength of the bounding box in gcell units. So for every . For a net with 2 or 3 terminals and no overflow constraint, the bound is reached.
Cut lower bound. Let , let be the set of edges with one end in , and let be the number of nets with terminals both in and outside . Each such route is connected, so it uses at least one edge of . So , and
Relaxation bound. For two-pin nets, let be the optimum of the fractional relaxation, in which each net may split into paths with weights that add up to 1. Then for every routing . The gap can be a factor 2: in the crossing example above, each net takes each of its two routes with weight , every edge carries load 1, so , while every integral routing has . In the other direction, randomized rounding of the fractional solution gives congestion with high probability, where is the number of edges of the graph (Raghavan and Thompson, 1987; the proof is on the randomized rounding page).
Reductions
- From Steiner tree. A Steiner tree instance in a grid graph is a global routing instance with one net and every capacity at least 1.
- From edge-disjoint paths. Pairs in a graph become two-pin nets on the same graph, with capacity 1 on each edge. A legal routing is a set of edge-disjoint paths.
- To integer programming. Give each net a set of candidate routes and a 0-1 variable per candidate. Then for each net, and with an overflow variable per edge. Minimizing gives the total overflow over the candidates. The LP relaxation of this program, over all paths of two-pin nets, is a fractional multicommodity flow.
- To detailed routing. The routes of global routing are the input of detailed routing: each net must get exact tracks and vias inside the gcells that its route passes.
Applications
- Physical design flow. Global routing runs after placement and before detailed routing. A legal global routing is the plan that the detailed router must follow, and an overflowed edge is a spot where detailed routing will likely fail.
- Congestion estimation. Placers call a fast global router to find crowded regions and to move cells away from them.
- Layer and via planning. The 2D routes are input to layer assignment, which decides the layers and the vias.
- FPGA and board routing. The same model, with the routing-resource graph or the board grid, routes nets on FPGAs and on printed circuit boards.
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 5, Global Routing (5.2 terminology, 5.3 optimization goals, 5.4 representations of routing regions, 5.7 full-netlist routing and 5.8 modern global routing)
- Naveed A. Sherwani, Algorithms for VLSI Physical Design Automation, third edition, Kluwer, 1999, the chapter on global routing (the grid graph model, sequential and concurrent approaches; general locator)
- Gi-Joon Nam, Cliff Sze and Mehmet Yildiz, The ISPD global routing benchmark suite, Proceedings of the International Symposium on Physical Design (ISPD), 2008, the benchmark format (gcell grid, layers, edge capacities, nets) and the ranking by total overflow, maximum overflow and wirelength
- M. R. Garey and D. S. Johnson, The rectilinear Steiner tree problem is NP-complete, SIAM Journal on Applied Mathematics 32(4), 826 to 834, 1977, the NP-completeness of the rectilinear Steiner tree problem, which gives the hardness of routing one net
- S. Even, A. Itai and A. Shamir, On the complexity of timetable and multicommodity flow problems, SIAM Journal on Computing 5(4), 691 to 703, 1976, the NP-completeness of integral two-commodity flow
- Prabhakar Raghavan and Clark D. Thompson, Randomized rounding, a technique for provably good algorithms and algorithmic proofs, Combinatorica 7(4), 365 to 374, 1987, the global wiring problem as a 0-1 multicommodity flow, its linear relaxation and the congestion bound after rounding
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 | W2 basic |
|
Tag 6Z081V Edit this page History Report an error Markdown