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 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 : for each , a routing resource graph with capacity 1 on every node. It is built from fixed parameters (the grid, the blocks and their pins, , , the segment lengths and the rule for the switch pattern) and the channel width .
- A placed netlist: nets, net with a source pin and a set of sink pins at fixed block positions, so that each net has a source and sinks in every .
Output. The number
where is the statement that has a legal routing: pairwise vertex-disjoint out-trees, the tree of net rooted at and holding . If no works, for example because a pin has no switch to any track, .
Constraints. Every channel has the same width. Every node holds at most one net. The placement is fixed. Nothing is minimized except ; wirelength and delay are not part of this problem.
Decision form. Given , the netlist and , decide . This is the routability problem at a fixed width.
Monotonicity. Call the family nested if, for every , there is an injective map from to that maps edges to edges and the source and sinks of each net to the same source and sinks. In a nested family implies , 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 , so adding a track can remove a path. The example below has true and 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 . Its minimum is at least the minimum over all routings.
- Segment mix. With wires of several lengths, 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 .
- 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 is reported as the smallest 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: to , to and to . Each side carries two nets, so . 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, is enough.
A family that is not nested. Take the array of two blocks side by side of the routing resource graph page: , , one input pin per block, , and a pattern in which turns change the track (track goes to for two turns and to for the other two). Net goes from the output of block 1 to the input of block 2, and net the other way. An exhaustive search over all pairs of simple paths gives:
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| legal routing exists | yes | no | no | no |
With , every map of the pattern is the identity, and net goes around the bottom channel while net uses the top one. With , 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 shares a node with every route of net . Here , yet is false. This is a toy instance, made to show that need not be monotone; it is not a benchmark result.
Known algorithms
- Binary search with a router. VPR raises 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 router calls; the proof is the usual one for binary search on a monotone predicate. Two limits apply. If itself is not monotone, as in the example, the search can return a width above . And the router is a heuristic, usually negotiated congestion routing: its success at implies , but its failure does not imply that is false. So the result satisfies , and nothing more is proved.
- SAT-based routing. For a fixed global routing, SAT-based FPGA routing decides routability at exactly. A satisfying assignment is a routing, and UNSAT proves that no track assignment exists at that for that global routing. Searching upward gives the exact minimum for the fixed global routing, which is still only an upper bound on 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 be a set of channel pieces such that every route of each net of a set must use a track of some piece in . The pieces of hold track nodes, and the routes of the nets in use disjoint track nodes, so . The density condition at one switch block is the case of one side.
- Lower bound for a fixed global routing. If nets use the same channel piece in the global routing, then . 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 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
- 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)
- 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)
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag W4VDCC Edit this page History Report an error Markdown