Algorithm Search⌘K

Problemcore

Minimum channel width

Also called FPGA channel width minimization, W_min.

The fewest tracks per routing channel with which a placed FPGA netlist can be routed, the standard measure of how routable a design or an architecture is.

The minimum channel width of a placed netlist on an island-style FPGA is the smallest number WW of tracks per channel for which all nets of the netlist can be routed. It is the main measure of routability in FPGA research: an architecture or a placement is better when its designs need fewer tracks. The problem belongs to the FPGA CAD topic of this sub-area. The problem asks for one number; the algorithms that compute it, exactly or as an upper bound, are linked below.

In plain words

An FPGA has a fixed number of wires in each routing channel. A design is placed on the chip, and every signal must then find its own wires from its driver to all its readers.

With many wires per channel, this is easy. With few, the signals fight over the same wires, and at some point no way to connect all of them exists. The minimum channel width is the smallest number of wires per channel at which a way still exists.

Researchers report this number for each design. When a new chip layout or a new placement tool makes the number go down, it is easier to route. Most tools find the number by trying a channel width, routing, and then trying a smaller or a larger one.

Definition

Input.

  • An architecture family A\mathcal{A}: for each W≥1W \ge 1, a routing resource graph GW=(VW,EW)G_W = (V_W, E_W) with capacity 1 on every node. It is built from fixed parameters (the grid, the blocks and their pins, FcF_c, FsF_s, the segment lengths and the rule for the switch pattern) and the channel width WW.
  • A placed netlist: mm nets, net ii with a source pin and a set of sink pins at fixed block positions, so that each net has a source sis_i and sinks KiK_i in every GWG_W.

Output. The number

Wmin=min⁡{W≥1:R(W)},W_{min} = \min \{ W \ge 1 : R(W) \},

where R(W)R(W) is the statement that GWG_W has a legal routing: pairwise vertex-disjoint out-trees, the tree of net ii rooted at sis_i and holding KiK_i. If no WW works, for example because a pin has no switch to any track, Wmin=∞W_{min} = \infty.

Constraints. Every channel has the same width. Every node holds at most one net. The placement is fixed. Nothing is minimized except WW; wirelength and delay are not part of this problem.

Decision form. Given A\mathcal{A}, the netlist and WW, decide R(W)R(W). This is the routability problem at a fixed width.

Monotonicity. Call the family nested if, for every WW, there is an injective map from VWV_W to VW+1V_{W+1} that maps edges to edges and the source and sinks of each net to the same source and sinks. In a nested family R(W)R(W) implies R(W+1)R(W + 1), because the image of a legal routing is a legal routing: trees map to trees, and an injective map keeps the node sets disjoint. A generated family need not be nested. The tracks that a pin reaches and the switch pattern are recomputed for each WW, so adding a track can remove a path. The example below has R(1)R(1) true and R(2)R(2) false.

Variants

  • Fixed global routing. The route of each net through the channels and switch blocks is given, and only the tracks are chosen. This is detailed routing at width WW. Its minimum is at least the minimum over all routings.
  • Segment mix. With wires of several lengths, WW is the total number of tracks, and the fraction of each length is fixed.
  • Low-stress width. Delay is often measured at a width above the minimum, so that the router has room to choose fast paths. Betz, Rose and Marquardt measure delays at W=1.2 WminW = 1.2 \, W_{min}.
  • Nonuniform channels. Different widths for horizontal and vertical channels, or for the channels at the border. The problem then has several numbers to set, not one.
  • Heuristic width. In practice WminW_{min} is reported as the smallest WW at which a given router succeeds. This is a property of the router as well as of the netlist, and it is only an upper bound on the true value.

Examples

One switch block. Three nets meet at one switch block: TT to LL, LL to BB and BB to TT. Each side carries two nets, so W≥2W \ge 2. With the subset pattern, each net keeps its track number through the block, so the three nets need three different tracks, and the width is 3. With the universal switch block, W=2W = 2 is enough.

A family that is not nested. Take the array of two blocks side by side of the routing resource graph page: nx=2n_x = 2, ny=1n_y = 1, one input pin per block, Fin=Fout=1F_{in} = F_{out} = 1, and a pattern in which turns change the track (track tt goes to (t+1) mod W(t + 1) \bmod W for two turns and to W−1−tW - 1 - t for the other two). Net aa goes from the output of block 1 to the input of block 2, and net bb the other way. An exhaustive search over all pairs of simple paths gives:

WW 1 2 3 4
legal routing exists yes no no no

With W=1W = 1, every map of the pattern is the identity, and net aa goes around the bottom channel while net bb uses the top one. With W=2W = 2, the pattern is no longer the identity, while each output pin still drives only track 0 and each input pin still reads only track 0. Each net then has 17 routes, and every route of net aa shares a node with every route of net bb. Here Wmin=1W_{min} = 1, yet R(2)R(2) is false. This is a toy instance, made to show that RR need not be monotone; it is not a benchmark result.

Known algorithms

  • Binary search with a router. VPR raises WW until the router succeeds and then runs a binary search on the answer between the last failure and the first success. If the predicate that is searched is monotone, the search returns its least true value after O(log⁡Wmin)O(\log W_{min}) router calls; the proof is the usual one for binary search on a monotone predicate. Two limits apply. If RR itself is not monotone, as in the example, the search can return a width above WminW_{min}. And the router is a heuristic, usually negotiated congestion routing: its success at WW implies R(W)R(W), but its failure does not imply that R(W)R(W) is false. So the result WhW_h satisfies Wmin≤WhW_{min} \le W_h, and nothing more is proved.
  • SAT-based routing. For a fixed global routing, SAT-based FPGA routing decides routability at WW exactly. A satisfying assignment is a routing, and UNSAT proves that no track assignment exists at that WW for that global routing. Searching WW upward gives the exact minimum for the fixed global routing, which is still only an upper bound on WminW_{min} over all routings.
  • Exhaustive search. For tiny graphs, enumerate the trees of each net and search for a disjoint choice. This is exact and exponential, and it is how the example was solved.

Bounds

  • Lower bound by a cut. Let CC be a set of channel pieces such that every route of each net of a set NCN_C must use a track of some piece in CC. The pieces of CC hold ∣C∣W|C| W track nodes, and the routes of the nets in NCN_C use disjoint track nodes, so W≥⌈∣NC∣/∣C∣⌉W \ge \lceil |N_C| / |C| \rceil. The density condition at one switch block is the case of one side.
  • Lower bound for a fixed global routing. If dd nets use the same channel piece in the global routing, then W≥dW \ge d. This is the channel density of the FPGA channel.
  • Upper bounds come only from a routing that is found. There is no general formula, since WminW_{min} can be infinite for a bad architecture.

Reductions

  • From disjoint paths. The decision form with only two-pin nets is the problem of vertex-disjoint paths between given pairs in a directed graph, and that problem is NP-complete already for two pairs on general directed graphs (Fortune, Hopcroft and Wyllie 1980). Routing resource graphs are special graphs, so this does not by itself prove hardness for FPGAs.
  • Detailed routing is NP-complete. For a fixed global routing on an array with the Xilinx-style switch blocks, deciding whether the nets fit on the tracks is NP-complete (Wu, Tsukiyama and Marek-Sadowska 1996). With that switch pattern, each net keeps its track, and the problem is a graph coloring of the nets that share a channel piece.
  • To SAT. The decision form for a fixed global routing reduces to SAT with one variable per net, piece and track, as on the SAT-based FPGA routing page.

Applications

  • Architecture studies. Betz, Rose and Marquardt compare cluster sizes, segment lengths and switch patterns by the minimum channel width that their benchmarks need (Chapters 5 to 7).
  • Placement quality. A placer is judged by the width that its placements need after routing, as well as by wirelength and delay.
  • Router quality. A router that routes the same placement at a smaller width is the stronger router on that instance.
  • Chip sizing. A vendor picks the channel width of a family so that the target designs route with some slack above the measured width.

References

  1. Vaughn Betz, Jonathan Rose and Alexander Marquardt, Architecture and CAD for Deep-Submicron FPGAs, Kluwer, 1999 (doi 10.1007/978-1-4615-5145-4), Chapter 4, Sections 4.3 and 4.4 (the routers and the search for the minimum channel width) and Chapter 5, Global Routing Architecture (results given as the minimum channel width)
  2. Yu-Liang Wu, Shuji Tsukiyama and Malgorzata Marek-Sadowska, Graph based analysis of 2-D FPGA routing, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 15(1), 33 to 44, 1996, the NP-completeness of detailed routing of a given global routing with the Xilinx-style switch blocks (general locator)
  3. Gi-Joon Nam, Karem A. Sakallah and Rob A. Rutenbar, A new FPGA detailed routing approach via search-based Boolean satisfiability, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 21(6), 674 to 684, 2002, the proofs of unroutability at a given channel width for a fixed global routing
  4. Steven Fortune, John Hopcroft and James Wyllie, The directed subgraph homeomorphism problem, Theoretical Computer Science 10(2), 111 to 121, 1980, vertex-disjoint paths for two pairs of terminals in a directed graph are NP-complete (general locator)

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)
WritingW2 basic
  • a known algorithm
  • a contract.yaml