Algorithm Search⌘K

Definitioncore

FPGA switch block

Also called disjoint switch block, Wilton switch block.

The programmable switches where a horizontal and a vertical FPGA routing channel cross, given by which track on one side can connect to which tracks on the other sides.

An FPGA switch block is the set of programmable switches at a point where a horizontal and a vertical routing channel of an island-style FPGA cross. It says which track end on one side of the crossing can be connected to which track ends on the other sides. Its pattern decides which sets of nets can be routed through it, and so it sets much of the routability and the area of the array. The definition belongs to the FPGA CAD topic of this sub-area.

Definition

Name the four sides of a crossing TT, RR, BB and LL (top, right, bottom, left). Each side has WW terminals, the ends of the tracks of the channel on that side, numbered 00 to W−1W - 1. A terminal is a pair (s,i)(s, i) with side ss and track ii.

A switch block with channel width WW is a graph SS on the 4W4W terminals in which every edge joins two terminals on different sides. Each edge is a switch: when it is on, the two segments are one wire. A switch block on the border of the array has only the sides that exist, three on an edge and two at a corner.

  • The flexibility FsF_s of a terminal is its degree in SS, the number of terminals it can connect to. When all terminals have the same degree, that degree is the FsF_s of the block.
  • A block with FsF_s on all 4W4W terminals has Fs⋅4W/2=2FsWF_s \cdot 4W / 2 = 2 F_s W switches.
  • With Fs=3F_s = 3, which is the usual choice, a terminal has one switch to each of the three other sides. Then the switches between any two sides form a perfect matching between their terminals, and the block has 6W6W switches. A block of this kind is fully given by six permutations of {0,…,W−1}\{0, \ldots, W - 1\}, one for each pair of sides.

A set of nets routes through the block when each net that must pass from one side to another gets a path of switches, and no two nets use the same terminal. The model of Chang, Wong and Wong lets a net use one switch, from its entry terminal to its exit terminal.

The definition above is for bidirectional wires, where one switch can pass a signal either way. With single-driver wires, each segment starts at a multiplexer, and the block is a set of multiplexers: the inputs of the multiplexer that drives a segment are the incoming segment ends that the pattern allows. The same patterns are then written as directed edges.

Examples and non-examples

  • The subset pattern. Terminal (s,i)(s, i) connects to (s′,i)(s', i) on each other side s′s'. All six permutations are the identity. With W=3W = 3 the block has 6⋅3=186 \cdot 3 = 18 switches. A net that enters on track ii stays on track ii in every block, so the tracks split into WW separate domains. This is the planar pattern of the Xilinx XC4000 family.
  • A pattern where turns change the track. Keep the identity for the straight pairs (T,B)(T, B) and (L,R)(L, R), and use other permutations for the four turning pairs. Wilton's pattern is of this kind: a net that turns moves to another track, so the tracks no longer split into domains. An illustrative pattern with this property, not Wilton's exact formulas, maps track ii to track (i+1) mod W(i + 1) \bmod W for the turns (T,R)(T, R) and (B,L)(B, L) and to track (W−1−i)(W - 1 - i) for the turns (L,T)(L, T) and (R,B)(R, B). It still has 6W6W switches.
  • The universal pattern. Chang, Wong and Wong chose the six permutations so that every set of two-pin connections that the side widths allow can be routed. See universal switch block.
  • Three nets that the subset pattern cannot route. With W=2W = 2, take three nets that join TT to LL, LL to BB and BB to TT. Each side has two of them, which fits W=2W = 2. In the subset pattern each net uses the same track on both of its sides, so the three nets need three pairwise different tracks, and there are only two. A universal block routes them.
  • A full crossbar. If every terminal has a switch to every terminal of the other three sides, then Fs=3WF_s = 3W and the block has 6W26W^2 switches. It is a switch block, and it routes all that the side widths allow, but its area grows with W2W^2.
  • Non-example: a connection block. The switches between the pins of a logic block and the tracks of a channel form a connection block, not a switch block. Its flexibility is FcF_c, not FsF_s.
  • Non-example: a switch inside one side. A switch between two tracks on the same side would join two parallel segments of one channel. The definition does not allow it.
  • Non-example: an ASIC switchbox. In switchbox routing for standard cells, the wires inside the box are drawn by the router. In an FPGA switch block, only the fixed switches can be used.
  • Universal switch block. The universal switch block is the pattern with 6W6W switches that routes every set of two-pin connections allowed by the side widths, and the page proves this.
  • Routing resource graph. The switches of all blocks become edges of the routing resource graph, on which routers work.
  • Channel width. The pattern changes the minimum channel width of a design. Betz, Rose and Marquardt (Chapter 7) measured that patterns where turns change the track need fewer tracks than the subset pattern on their benchmarks.
  • Coloring view. With the subset pattern, giving tracks to nets is a coloring of a conflict graph, and for one block it is an edge coloring of the graph of required side pairs. SAT-based FPGA routing solves this assignment exactly.

References

  1. Yao-Wen Chang, D. F. Wong and C. K. Wong, Universal switch modules for FPGA design, ACM Transactions on Design Automation of Electronic Systems 1(1), 80 to 101, 1996, the switch module as a graph on the 4W terminals of the four sides, the flexibility Fs, the XC4000-type module and the count of 6W switches for Fs = 3
  2. 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, Section 4.2 Architecture Parameterization and Generation; Chapter 7, Detailed Routing Architecture (switch block patterns and switch types)
  3. Steven J. E. Wilton, Architectures and Algorithms for Field-Programmable Gate Arrays with Embedded Memories, PhD thesis, University of Toronto, 1997, the switch block in which turning connections move a signal to another track (general locator; the year of the thesis is given as 1996 in some citations)
  4. Jason Luu and others, VTR 7.0, next generation architecture and CAD system for FPGAs, ACM Transactions on Reconfigurable Technology and Systems 7(2), 2014, the single-driver routing with Fs = 3 of the flagship architecture (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/TT0S6E/text.yaml