Manuscript Offprint
arXiv:2610.33510DiffRouter: A Differentiable Routing Framework for UltraScale FPGAs
© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. This is the accepted version of the paper published in the 2026 IEEE Symposium on Field-Programmable Custom Computing Machines (FCCM), DOI: 10.1109/FCCM68464.2026.00029.
DiffRouter: A Differentiable Routing Framework for UltraScale FPGAs
Xiaohan Gao , Zhili Xiong , Yusu Wang , and David Z. Pan
Department of Electrical & Computer Engineering, The University of Texas at Austin, TX, USA
Halicioğlu Data Science Institute, University of California, San Diego, CA, USA
{xiaohan.gao@austin., zhilix691}@utexas.edu, yusuwang@ucsd.edu, dpan@ece.utexas.edu
Abstract—Routing has become a major bottleneck in large-scale FPGA design flows, where traditional routers rely on sequential net-by-net processing and rip-up-reroute heuristics. This inherent sequentialism limits parallelism, leads to suboptimal utilization of routing resources, and significantly increases runtime on modern FPGAs. This paper introduces DiffRouter, the first differentiable, gradient-based FPGA routing framework with GPU acceleration. By lifting routing into a continuous optimization space, DiffRouter enables highly concurrent routing and improved global optimality before projecting solutions back onto the discrete fabric. The framework consists of three key stages: (1) Resource-pruned preprocessing, which extracts compact routing variables per net to reduce memory footprint and problem complexity; (2) Differentiable global routing via gradient descent, which formulates routing as a Lagrangian-relaxed optimization that minimizes wirelength while iteratively enforcing connectivity and congestion constraints as relaxed terms; and (3) Postprocessing, which maps the continuous wire distributions to a valid UltraScale routing solution and completes solutions by detailed routing. Experiments on the FPGA 2024 Routing Contest benchmarks show that DiffRouter outperforms state-of-the-art parallel routers, achieving over speedup over RWRoute and over Vivado, and running 18% faster than the state-of-the-art academic FPGA router Potter while delivering competitive critical path wirelength.
Prior academic work has explored various approaches to accelerate FPGA routing. Most techniques exploit net-level parallelism and scheduling [1]–[6], demonstrating substantial runtime reduction. These methods recursively partition the netlist based on the spatial distribution of net bounding boxes, enabling each partition to be routed concurrently under the assumption of minimal inter-partition routing dependencies. Within each thread, a negotiated-congestion router PathFinder [7] is used to resolve conflicts and converge to a
discrete space: limited parallelism, prolonged runtime

continuous space: full parallelism, GPU-accelerated
Fig. 1: (a) Input nets on the RRG with node wirelength costs; (b) PathFinder flow in discrete space; (c) DiffRouter global routing formulation in continuous space; (d) DiffRouter detailed routing from continuous variables to discrete routes
legal solution. A more fine-grained single-net-level parallelism was proposed in [8], where a GPU-friendly Bellman–Ford kernel serves as a fast single-source shortest-path solver within PathFinder. The VPR tool [9] further improves sequential PathFinder by introducing incremental routing, which prunes illegal routing subtrees to reduce rip-up overhead. Despite these advances, existing approaches still rely heavily on heuristics, including sequential route net ordering, overlap tolerance in partitioning, and congestion factor tuning, etc., largely due to the discrete and cost-function-centric nature of the PathFinder algorithm. As design sizes continue to grow, these heuristic constraints limit scalability and optimality, making it increasingly difficult for traditional FPGA routers to approach higher quality routing solutions. Although recent machine learning based routing methods [10]–[12] aim to learn optimal net ordering, select nets for rip-up and reroute, or prune routing resources, they often suffer from limited generalizability across architectures and designs. This motivates our exploration of a global, fully differentiable formulation for FPGA routing as demonstrated in Fig. 1. Inspired by analytical placers, we construct a differentiable wirelength objective with relaxed connectivity and congestion term and optimize it through gradient descent, enabling substantially larger search space and higher parallelism. The resulting continuous solution is then legalized onto the discrete routing resource graph.
To validate our idea, we leverage the 2024 Runtime-First

Fig. 2: Routing resources of AMD-Xilinx Ultrascale+ FPGA. The FPGA canvas was divided into columns of different resource types, while the routing resources span across INT tiles (also known as switch boxes). Each INT tile connects to CLB or DSP/BRAM tiles on its left and right sides.
FPGA Interchange Routing Contest [13], which promotes both runtime speedup and critical-path wirelength (CPWL) reduction, as well as adoption of the FPGA Interchange Format (IF). In this work, we propose DiffRouter, the first FPGA router to simultaneously employ a differentiable formulation and GPU acceleration for FPGA global routing. DiffRouter achieves results that surpass state-of-the-art FPGA routers on the contest benchmarks. Our main contributions are as follows:
• DiffRouter is the first FPGA router to jointly leverage a fully differentiable formulation and GPU acceleration: it preprocesses and prunes routing variables, optimizes routing demand in continuous space, and then legalizes the solution onto the discrete FPGA routing resource.
• We formulate relaxed routing as a unified analytical objective consisting of a linear wirelength term, a connectivity term inspired by a spectral approach of the shortest path problem, and a congestion term based on relaxed network overflow.
• To enable multi-objective routing optimization with gradient-based solvers, we propose a novel approximation of connectivity gradients with faster matrix operations.
• On the 2024 Runtime-First FPGA Interchange Routing Contest benchmarks [13], DiffRouter outperforms the best academic baseline, Potter [6]. It is also approximately faster than Vivado 2023.2 and faster than RWRoute.
In Section II, we review the FPGA architecture and routing problem, and summarize prior FPGA routing approaches. Section III presents the algorithmic details of the proposed DiffRouter pipeline. Section IV reports results on the contest benchmark suite, together with two ablation studies that validate key design choices.
II. PRELIMINARIES
In this section, we introduce the FPGA routing problem using the target AMD-Xilinx Ultrascale+ [14] device.
A. FPGA Architecture and Routing Problem
As illustrated in Fig. 2, the device view of an AMD-Xilinx UltraScale+ part [14] features a column-based architecture in which instances are mapped onto different resource types, such as configurable logic blocks (CLBs), digital signal processing units (DSPs), block RAMs (BRAMs), and IO blocks. The Interconnect (INT) tiles span across these resource columns and provide the routing resources. Each INT tile contains thousands of programmable interconnect points (PIPs), with each PIP connecting a pair of wire segments that may span vertically or horizontally to other INT tiles at distances of 1, 2, 4, or 12 tiles. Other tiles connect to adjacent INT tiles with wires to access the routing resources.
The Routing Resource Graph (RRG) of an FPGA can be abstracted as a directed graph , where nodes V represent pins and wire segments, and edges E represent PIPs, each of which provides a routing capacity of 1. The FPGA routing problem aims to find paths on G that connect the source pin to all sink pins of each net. For a net n with a source pin and a set of sink pins , all of these pins correspond to some nodes in V. To establish the required logical connectivity, the objective is to identify a sub-tree from G that contains and all while providing valid connecting paths among them. Routing trees of different nets must remain disconnected; otherwise, short-circuit violations occur.
B. PathFinder and Heuristic Routing Frameworks
Conventional FPGA routers are largely based on PathFinder-style negotiated-congestion routing [7], [15]. As shown in Fig. 1 (b), PathFinder iteratively routes nets using a shortest-path solver, allowing temporary overuse and resolving conflicts by dynamically updating per-node or per-edge costs based on both current and historical congestion. Nets that traverse congested regions are penalized in subsequent iterations, which drives rip-up and re-route until all capacity violations are eliminated.
A number of extensions improve the efficiency and feature support of PathFinder-based routing. CRoute [16] introduces connection-based routing and augments the negotiation mechanism using a sharing factor for resources shared by multiple connections. AIR [17] proposes incremental rerouting for high-fanout nets and an architecture-aware lookahead strategy, and has been integrated into VTR 8 [9]. RWRoute [18] further supports practical routing features such as partial routing and timing modeling.
C. Parallel and Differentiable FPGA Routing
To improve runtime, recent frameworks exploit parallelism at different granularities [1]–[4], [8], [19]–[26]. Several CPU-based approaches increase parallelism by partitioning nets into conflict-free groups and routing groups concurrently [1], [2], [21], [23], while others apply spatial partitioning of the routing fabric to reduce cross-region dependencies [3], [24]. Follow-up work further addresses determinism, load balance, and scalability challenges in spatial partitioning [1], [20], [21]. More fine-grained parallelism has also been explored by decomposing high-fanout nets into smaller components that can be processed concurrently [26]. On GPUs, Corolla accelerates routing by using GPU-friendly single-source shortest-path primitives within a PathFinder-style framework [8], [19]. In
TABLE I: Summary of Notation
| Symbol | Definition |
|---|---|
| Routing resource graph | |
| A net | |
| A pin; set of pins of net | |
| A node in the routing graph | |
| An edge (PIP) in the routing graph | |
| Incoming and outgoing edges of node | |
| Length (cost) of edge | |
| Routing flow/variable on edge | |
| Importance/weight of net |
addition, [27] proposes a discrete Lagrange multiplier formulation combined with A* routing, which introduces continuous relaxation and optimization ideas to FPGA routing. [28], [29] explore the idea of decoupling FPGA routing into global routing and detailed routing stages.
III. ALGORITHM
In this section, we describe the overall framework and key algorithms in DiffRouter.
A. Overview of the Framework
Fig. 3 illustrates the overall flow of our routing framework DiffRouter. Our framework takes the physical netlist with placement information and FPGA device specification as input. In order to achieve differentiable routing optimization, DiffRouter abstracts routing resources as a graph representation. The preprocessing stage defines the routing variables and constructs a routing resource graph (RRG) for the subsequent routing stage.
The differentiable routing stage addresses the concurrent routing of selected nets. The core idea is to formulate the main objectives of routing as differentiable functions dependent on predefined routing variables. Wirelength is the primary optimization objective. Additional hard constraints used to ensure routing legality are relaxed into objective functions during the routing stage. In particular, DiffRouter considers path connectivity and routing congestion that guide the construction of valid routing solutions.
Different from the A-star-based routing methods, DiffRouter utilizes the optimization process to produce routing solutions. The optimization process generates global routing solutions, and the post-processing stage finalizes the routing results with detailed routing by connecting routing paths and re-routing illegal nets.
B. Routing Variables Extraction
The routing resources of FPGAs are highly regular, approximating a grid-like graph structure. To enable the concurrent routing of massive nets, we adopt a simplified abstraction of the RRG for global routing.
We define the simplified RRG as . In , each node represents an INT tile, and each edge represent inter-tile connection with capacity . The capacity is estimated by the number of physically feasible wires.

Fig. 3: The overall flow of the proposed DiffRouter
Figure 4 illustrates the simplified RRG. Each node encapsulates a cluster of internal switching resources, and each edge aggregates all feasible connections between tiles. Edges form a 2D grid graph, capturing connectivity between adjacent tiles in the horizontal and vertical directions. In addition to the 2D grids, the RRG also includes longer-span edges that represent routing resources capable of traversing multiple tiles.
Based on the simplified RRG, a routing variable is defined as the probability that an edge of the RRG could be used by a net . The variable is a continuous variable that indicates the routing path of is highly likely to take the edge when it is close to 1.
Routing typically exhibits significant spatial locality, which means the routing resources distant from pins of a net are largely irrelevant with the routing of the corresponding net. The locality property allows the framework to prune redundant variables and constrain the search space. After placement is applied, each net has fixed pin locations, and the pin locations form a bounding box. The locality assumes that the routing path of a net rarely extends far beyond the bounding box. Accordingly, we designate the routing region for each net as an expanded box of its bounding box [9]. A hyperparameter is defined to control the expansion ratio of the routing region to the bounding box. As the INT tiles are arranged in a 2D array, the width and length are easily estimated by the number of INT tiles the bounding box spans. For a bounding box of width and length , the routing region will be expanded to and respectively.
The routing variables of net are restricted to the edges of the subgraph inside the designated routing region. Figure 4 demonstrates the abstraction of routing variables by an example of two nets. The red box and blue are the routing

Fig. 4: Simplified RRG and abstraction of routing variables
regions for and , respectively. The variables of are defined over INT edges inside the red box, and the overlapping region between red and blue boxes encompasses variables for both and . The indicates the routing path for , and indicates the routing path for . As variables are optimizable, defining differentiable objective functions over enables differentiable optimization for routing.
C. Routing Objectives
The crucial challenge in differentiable routing implementation lies in modeling routing objectives and constraints with differentiable functions. Following the definition of variables in Section III-B, the framework models the routing problem in Equation 1. The abstract formulation for the differentiable optimization is as follows:
(wirelength)
(congestion)
(1)
(connectivity)
- Wirelength: Wirelength is the most essential objective for routing. Since the routing variables are defined directly on edge occupation, the wirelength of a net can be calculated as the sum of the lengths of the edges the net occupies. We define the wirelength of net , denoted , and the total wirelength as follows, where is the net importance/weight defined in Table I.
- Connectivity: A-star-based routing algorithms ensure the routing paths of each net are fully connected by searching for the next node from neighbor nodes of the current nodes. Constrast to this path finding scheme, the differentiable routing solves the probability of each edge to be occupied by some net. Therefore, additional constraints are required to ensure the edges occupied by the same net form a connected tree that spans all pins.
To model connectivity in a differentiable manner, we adopt a spectral perspective based on the graph Laplacian. The graph Laplacian is formally defined as for a graph with adjacency matrix A and degree matrix D. Intuitively, the Laplacian matrix measures a form of smoothness across edges. Spectral algorithm based on graph Laplacian can approximate the shortest path in a differentiable manner [30], which proposes a criterion for the approximation by constructing a function for path between nodes and :
Equation 3 indicates that is the assignment of function g that minimizes the normalized quadratic form, where g is a symbolic function. The criterion of Equation 3 provides guidance for the iterative construction of routing path based on the spectral heuristics. To be more specific, the path could be constructed by gradually moving to the neighboring node with the smallest value of function .
One explicit form of the function can be the smallest eigenvector of the graph Laplacian matrix with the columns and rows corresponding to node removed. Inspired by the spectral approach to the shortest path, we adapt the differentiable objective for net connectivity from the algebraic connectivity [31], [32]. For each net , the Laplacian matrix is defined separately based on the subgraph introduced in Section III-B. The raw Laplacian matrix is defined as , where is the degree matrix and is the adjacency matrix. Different from the 0, 1-connection induced adjacency matrix, is weighted by . The derived Laplacian matrix is defined as removing the corresponding columns and rows of the pin nodes from . The non-connectivity penalty on net represents the differentiable constraint. The non-connectivity penalty as algebraic connectivity is defined as follows:
Computing the gradient of the function in Equation 4 is computationally expensive. We therefore introduce the approximation method to the gradient computation in Section III-D1.
- Congestion: Conventional routing algorithms resolve congestion between nets by rip-up and re-route strategy. In contrast, the differentiable formulation addresses congestion proactively during the optimization process, jointly considering congestion alongside other routing objectives. There is a duality between the routing problem and the multi-commodity flow problem [33]. Inspired by the flow problem, we formulate the problem of managing congestion as constraints on the usage of each edge and conservation on each node.
Edge overflow and flow conservation are the two main criteria for reducing congestion. The overflow on an edge compared to the edge capacity can be calculated by the accumulated usage of different nets over this edge. The edge capacity is intrinsic, determined by the PIP resources between tiles. The flow conservation requires the incoming flow and outgoing flow of the same node to be equal. Except for the nodes related to pins, all nodes are supposed to satisfy the flow conservation requirements to avoid redundancy of edge usage.
Figure 5 demonstrates an example of edge overflow and flow conservation. There are three nets in the edge overflow case. The three nets take the same edge of capacity , which means an overflow is triggered. In the flow conservation

Edge Overflow
flow
edge cap
Flow Conservation
incoming flow
≠ outgoing flow
Fig. 5: Example of edge overflow and flow conservation
case, there are two nets using the same INT tile. Overflow occurs when the incoming flows are 2, but the outgoing flows are 3. To generate feasible routing solutions, capacity violations on edges and inequality on nodes are penalized during optimization by defining two objective functions and . The function on one single edge and the function on one single node are defined respectively as follows:
D. Optimizer
Constraints of differentiable optimization can be relaxed to the objective function in practice, to have a better trade-off between solution quality and computational efficiency. The original formulation considers constraints of congestion and connectivity in Equation 1. Net connectivity is enforced via the objective function defined in Equation 4. The edge usage constraint can be represented as for each edge and for each node from Equation 5. Accordingly, the routing formulation in Equation 1 can be rewritten using the augmented Lagrangian method as follows:
where and are the multipliers to regulate the convergence behavior, and denotes the weight of the quadratic penalty term . The term could be the edge set or the node set . Throughout the optimization process, multipliers and are adaptively updated using the normalized subgradient method from elfPlace [34].
We employ the ADAM optimizer to solve the optimization form of Equation 6.
- Gradient computation: The gradient computation for the wirelength term WL and the overflow term OVF is straightforward. In contrast, directly computing the gradient of the non-connectivity penalty term CV can incur high computational costs. The gradient of with respect to the variable basically depends on the eigenvector of the
Algorithm 1 Approximation to Gradient
Input: The net and Laplacian
Output: The gradient of to
1: function APPROXGRAD(m)
2:
3: for iteration do
4:
5:
6:
7: form tridiagonal matrix from
8: form matrix from
9: compute eigenpair of
10:
11: for do
12: connect nodes and
13:
14: return
derived Laplacian matrix . Specifically, the gradient is determined by the eigenvector elements at the corresponding position of nodes incident to edge . The gradient can be explicitly computed as follows:
Computation of the explicit gradient value by Equation 7 could be prohibitively expensive for an optimization iteration. Lanczos algorithm provides an efficient method to approximate eigenvalues and eigenvectors [35]. We employ the iterative scheme of the Lanczos algorithm to approximate the gradients defined in Equation 7. Algorithm 1 depicts the detailed steps. The key steps of Algorithm 1 (line 4-8) are compatible with tensor operations. We implement the GPU acceleration of Algorithm 1 to further improve computational efficiency.
E. Postprocessing
The routing stage generates initial routing solutions with simplified RRG and relaxed constraints of connectivity and congestion. Therefore, we introduce an additional postprocessing stage to finalize the routing solutions. There are two challenges for generating the final routing solutions: 1) The routing paths of a net could not be fully connected; 2) routing solutions include redundant edges.
We denote the initial solutions for the net from routing stage as a set of edges . The fully connected net routing of net is a superset of that serves as the minimum spanning tree of . If an edge can be removed without disconnecting pins, the edge is redundant and can be pruned.
Algorithm 2 demonstrates main steps for legalizing the initial routing solutions for a net. For a net , the algorithm first finds all connected components from the initial routing solution (line 3). The algorithm computes the minimum distances between all components and stores the actual shortest paths (line 4). A complete graph over
Algorithm 2 Processing Initial Routing Solutions
Input: Initial routing solutions for net
Output: Routing solution for net
1: function LEGALIZE( )
2: for net do
3:
4:
5:
6:
7:
8: for do
9: if then
10:
11: return
components considers each component as a graph node and the edge weight between 2 nodes to be the minimum distance between the corresponding components (line 5). The algorithm run minimum spanning tree algorithm on the component graph and extend the routing solutions with the paths added for spanning tree (line 6). To remove redundant edges, the algorithm executes depth-first search on the spanning tree and records the information whether there is a pin in the subtree of the edge (line 7). Without a pin in subtree, the redundant edges are removed from the spanning tree (line 8-10). The spanning trees for all nets are constructed from well-optimized initial solutions and have only a few congestions or violations.
The solutions will be the guidance for the final routing solutions in the manner of global routing and detailed routing. We rely on the partitioning technique [22] to call single-net routing and adapt the RapidWright routing kernel [18] for single-net routing. For each net , indicates a set of INT tiles and INT-tile-connections, so the algorithm can implicitly map the initial solution to routing regions by checking a PIP attribute based on tile location when the routing kernel explores the PIP as a candidate. The routing kernel increases the routing cost outside regions with a penalty function linear to the least distance from the PIP to tiles of the routing region. Potential conflicts are resolved by the rip-up and reroute technique.
IV. EXPERIMENTS
Our routing framework DiffRouter is implemented in Python with PyTorch, Triton, and RapidWright Jython integration. The experiments are conducted on a Linux server with AMD EPYC 9554P CPU @3.1GHz with 128 cores and 755GB RAM, and Nvidia RTX A6000 GPU.
A. Experimental Setup
- Benchmarks: We study the efficiency of our routing framework on 2024 Runtime-First FPGA Interchange Routing Contest (FPGA 2024) . The benchmarks consist of 28 circuits from 12 different source suites. The circuits are synthesized from RTL designs, placed, and routed clock nets with Vivado [36] by the contest organizer. In these circuits, the range of the numbers of LUTs, FFs, DSPs, and BRAMs are 31k-344k, 2k-399k, 0-2209, and 0-720, respectively. The benchmarks target the AMD-Xilinx UltraScale+ xcvu3p device.
Based on the official evaluation of the contest, routing results are measured by 3 main metrics: program runtime, critical path wirelength (CPWL), and total wirelength (tot WL). CPWL is defined as the total wirelength of the longest path in the routing and is computed as the sum of the lengths of all PIPs used to connect source and sinks. Tot WL is defined as the total wirelength over all nets and is computed by a calculator derived from the official CPWL calculator. As for the runtime, we adopt wall time instead of CPU time. The top-three participants of the contest have made their papers and results publicly available [5], [22], [37].
-
Baselines: We compare our routing framework with 4 baselines described as follows:
-
Vivado: we utilize Vivado v2023.2 [36] router with non-timing-driven mode as a baseline.
-
RWRoute : RWRoute is an open-source FPGA router integrated in RapidWright framework [18], which is the baseline router for FPGA 2024 contest.
-
CUFR : CUFR is the second place and the highest-ranked open-source router in FPGA 2024 contest [22]. CUFR builds a partitioning tree to utilize CPU parallelism. We set the number of threads to 32, consistent with the best reported results.
-
Potter : Potter is the state-of-the-art open-source router targeted at runtime on FPGA 2024 benchmarks [6]. The number of threads is also set to 32, aligned with CUFR and the best reported results.
B. Experimental Results
Table II reports the overall performance of DiffRouter on the FPGA 2024 benchmarks, compared against Vivado [36], RWRoute [18], CUFR [22], and Potter [6]. Vivado fails to route three designs: rosetta_fd, corundum_25g, and corundum_100g. Runtime is measured as end-to-end execution time (seconds). CPWL denotes the critical-path wirelength reported by the contest analyzer, and tot WL denotes the total wirelength computed by our calculator. The last row shows the geometric mean of per-benchmark ratios, normalized to DiffRouter (set to 1.0).
DiffRouter improves both efficiency in most benchmarks and routing quality in part of benchmarks. Compared to RWRoute, DiffRouter achieves a speedup while delivering 5.3% lower CPWL. It is also approximately faster than Vivado on the benchmarks that Vivado successfully routes, while achieving 42.6% lower CPWL. Against the strongest academic baseline, Potter, DiffRouter reduces runtime by 18.2% on average, with up to a 42.7% reduction on boom_soc. Overall, DiffRouter attains the best CPWL and tot WL among all baselines, demonstrating that our differentiable routing formulation
https://github.com/Xilinx/RapidWright
https://xilinx.github.io/fpga24_routing_contest/
https://github.com/xszang/parallel-routing
https://github.com/diriLin/Potter
TABLE II: Comparative results on FPGA 2024 Contest benchmarks.
| Benchmark | Runtime (s) | CPWL | tot WL () | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| [36] | [18] | [22] | [6] | DiffRouter | [36] | [18] | [22] | [6] | DiffRouter | [36] | [18] | [22] | [6] | DiffRouter | |
| logicnets_jscl | 26 | 51 | 36 | 25 | 31 | 290 | 217 | 234 | 221 | 223 | 7.61 | 7.03 | 7.02 | 7.01 | 7.09 |
| boom_med.pb | 63 | 221 | 181 | 95 | 65 | 820 | 955 | 806 | 817 | 823 | 8.58 | 8.10 | 7.95 | 7.98 | 8.05 |
| vtr_mcml | 270 | 232 | 111 | 58 | 60 | 614 | 570 | 584 | 607 | 578 | 7.87 | 6.95 | 6.72 | 7.01 | 6.76 |
| rosetta_fd | - | 147 | 139 | 61 | 45 | - | 839 | 804 | 812 | 810 | - | 1.21 | 1.42 | 1.20 | 1.33 |
| corundum_25g | - | 256 | 135 | 72 | 61 | - | 442 | 500 | 401 | 421 | - | 18.6 | 18.2 | 18.5 | 18.2 |
| finn_radioml | 65 | 118 | 63 | 35 | 37 | 341 | 272 | 251 | 258 | 223 | 13.4 | 11.3 | 11.3 | 11.3 | 11.3 |
| vtr_lu64peeng | 120 | 215 | 130 | 67 | 60 | 1607 | 1342 | 1333 | 1308 | 1345 | 20.3 | 16.0 | 16.0 | 16.1 | 16.0 |
| corescore_500 | 82 | 161 | 75 | 40 | 41 | 771 | 660 | 668 | 655 | 660 | 6.35 | 6.00 | 5.60 | 6.07 | 5.58 |
| corescore_500.pb | 105 | 262 | 141 | 80 | 69 | 940 | 709 | 739 | 660 | 671 | 8.24 | 7.75 | 7.75 | 8.06 | 7.76 |
| mlcad_d181_lefttwo3rds | 197 | 1761 | 439 | 188 | 180 | 989 | 868 | 771 | 727 | 714 | 21.5 | 21.2 | 21.2 | 21.2 | 21.2 |
| koios_dla_like_large | 210 | 505 | 206 | 92 | 75 | 831 | 545 | 520 | 552 | 536 | 32.3 | 32.6 | 32.3 | 32.8 | 32.3 |
| boom_soc | 443 | 2068 | 792 | 351 | 201 | 2204 | 1717 | 1673 | 1708 | 1711 | 87.4 | 64.8 | 66.0 | 64.6 | 67.3 |
| ispd16_example2 | 195 | 645 | 324 | 172 | 109 | 1437 | 1014 | 939 | 1003 | 951 | 61.5 | 46.8 | 46.0 | 46.8 | 46.9 |
| rapidwright_picoblazearray | 93 | 173 | 67 | 29 | 33 | 144 | 120 | 111 | 110 | 108 | 6.50 | 5.70 | 5.20 | 5.81 | 5.19 |
| corundum_100g | - | 224 | 100 | 59 | 50 | - | 550 | 549 | 562 | 566 | - | 20.6 | 20.0 | 20.5 | 20.1 |
| koios_clstm_like_large | 113 | 210 | 99 | 48 | 48 | 411 | 254 | 228 | 238 | 233 | 8.04 | 7.47 | 7.10 | 7.65 | 7.18 |
| titan23_orig_gsm_x6 | 207 | 443 | 177 | 92 | 61 | 488 | 275 | 289 | 271 | 280 | 55.5 | 40.3 | 40.0 | 40.3 | 40.3 |
| corescore_900 | 157 | 312 | 165 | 66 | 63 | 1590 | 1176 | 1216 | 1215 | 1205 | 14.3 | 13.0 | 12.5 | 13.2 | 12.4 |
| koios_dla_like_large_v2 | 224 | 481 | 265 | 88 | 70 | 553 | 341 | 284 | 311 | 307 | 37.2 | 30.2 | 29.9 | 30.1 | 30.0 |
| finn_mobilenetv1 | 271 | 475 | 229 | 96 | 63 | 542 | 360 | 320 | 384 | 359 | 58.2 | 43.6 | 42.8 | 43.9 | 43.2 |
| ispd16_fpga03 | 239 | 609 | 367 | 188 | 149 | 1629 | 859 | 848 | 873 | 823 | 65.6 | 45.3 | 46.1 | 46.5 | 46.3 |
| mlcad_d181 | 352 | 4433 | 671 | 344 | 292 | 1011 | 1064 | 828 | 779 | 774 | 32.5 | 32.8 | 32.6 | 32.7 | 32.8 |
| boom_soc_v2 | 449 | 4142 | 1198 | 416 | 282 | 1842 | 1191 | 1020 | 982 | 1027 | 95.0 | 75.8 | 76.9 | 75.5 | 78.4 |
| corescore_1200 | 214 | 468 | 180 | 84 | 86 | 1442 | 1047 | 1105 | 1106 | 1127 | 19.1 | 17.0 | 16.1 | 17.1 | 16.2 |
| ispd16_example2_v2 | 211 | 566 | 289 | 124 | 94 | 1242 | 728 | 683 | 669 | 689 | 46.1 | 36.4 | 36.5 | 36.3 | 36.9 |
| corescore_1500 | 283 | 731 | 288 | 147 | 129 | 1597 | 1301 | 1331 | 1302 | 1315 | 24.7 | 23.9 | 22.1 | 22.9 | 22.2 |
| titan23_orig_dart_x4 | 360 | 848 | 253 | 118 | 114 | 1049 | 634 | 567 | 639 | 629 | 50.5 | 42.9 | 42.3 | 44.3 | 42.3 |
| corescore_1700 | 493 | 1591 | 669 | 231 | 169 | 2065 | 1595 | 1544 | 1570 | 1576 | 35.5 | 33.0 | 33.0 | 33.1 | 32.9 |
| Geometric mean (ratio) | 2.112 | 5.475 | 2.488 | 1.184 | 1.000 | 1.426 | 1.053 | 1.007 | 1.008 | 1.000 | 1.193 | 1.009 | 1.001 | 1.010 | 1.000 |
-
Vivado fails to route three designs: rosetta_fd, corundum_25g, and corundum_100g;
-
Baselines: Vivado [36], RWRoute [18], CUFR [22], Potter [6]
can simultaneously improve parallel efficiency beyond state-of-the-art PathFinder-based routers, even when those baselines already exploit parallelism. We next present ablation studies to isolate the key optimization settings and design choices that drive these gains.
C. Runtime Breakdown
For large benchmarks, we analyze the runtime breakdown of DiffRouter to better understand the routing performance.
Fig. 6 shows the runtime breakdown of DiffRouter on benchmark boom_soc_v2, which is a relatively large benchmark. DiffRouter has three main stages of preprocessing, routing, and postprocessing. For benchmark boom_soc_v2, the routing stage accounts for of the total runtime. Within the routing stage, the computation of the gradient of the connectivity function is the most computationally intensive task. Notably, the routing stage is GPU-accelerated with speed-up compared to CPU computation due to the highly parallelizable tensor operations. The postprocessing stage constitutes the largest portion of the execution runtime, and rerouting all illegal nets occupies the most runtime.
We observe that benchmarks with similar sizes tend to exhibit similar runtime distributions. We categorize the benchmarks to small and large based on their size, using 150k LUTs as a threshold. For small benchmarks, pre-processing, routing, post-processing, and others account for approximately , , , and of the total runtime on average, while for large benchmarks, pre-processing, routing, post-processing, and others account for approximately , , , and of the total runtime on average.

Fig. 6: The runtime breakdown of DiffRouter on benchmark boom_soc_v2
D. Ablation Study
We design two ablation experiments to evaluate how the efficiency of our framework benefits from the optimization setup, including the number of iterations and the portion of nets routed at the differentiable routing stage. We take suite boom from FPGA 2024 Contest benchmarks for example and conduct ablation experiments on the benchmarks: boom_med.pb, boom_soc, and boom_soc_v2.
Before presenting the ablation results, we first estimate how
TABLE III: Overused edge proportion after routing stage.
| Benchmark | >100% | >120% | >150% | >200% |
|---|---|---|---|---|
| boom_med_pb | 2.7‰ | 1.2‰ | 0‰ | 0‰ |
| boom_soc | 10.1‰ | 6.5‰ | 1.4‰ | 0‰ |
| boom_soc_v2 | 11.1‰ | 6.6‰ | 2.1‰ | 0‰ |

Fig. 7: Runtime and CPWL sensitivity of iterations
close the routing stage is to feasibility by examining how many edges are overused. An edge is considered overused if the total number of nets using the edge exceeds its capacity. Table III shows the proportions of overused edges, and the overused edges are further categorized based on the demand over capacity to distinguish between slight and severe overusage. Specifically, > 100% indicates edge usage exceeds capacity, and > 200% indicates 200% exceeding 100% more than capacity. The number of overused edges is relatively small, and the legality issue will be resolved in the post-processing stage.
- Optimization iterations: The differentiable routing stage terminates the iterative process upon satisfying stable convergence. We analyze how different numbers of optimization iterations affect the overall runtime and CPWL results.
Fig. 7 illustrates the sensitivity of runtime and CPWL to the number of optimization iterations on suite boom benchmarks. As the number of iterations increases, the runtime of the differentiable routing stage increases, while the runtime of post-processing could possibly decrease. The overall runtime of the framework reaches a minimum mostly at iterations between 400 and 600. As for CPWL, increasing iterations slightly improves solution quality. The marginal CPWL reduction becomes limited beyond 600 iterations for benchmarks boom_soc and boom_soc_v2.
- Threshold of net size: Our framework considers routing a part of nets at the differentiable routing stage. The differentiable routing stage can focus on processing high-fanout nets. A simple heuristic is to define a threshold for the number of pins (net size). The differentiable routing stage specifically targets those nets that surpass the predefined threshold.
Fig. 8 (a) illustrates the distribution of net sizes of the three benchmarks from suite boom. Nets are categorized by the number of pins, and the y-axis represents the number of nets in each category on a logarithmic scale. The majority of nets have small fanout (mostly 2-20 pins), and the amount of high-fanout nets are usually less than . Nevertheless, high-fanout nets are more prone to inducing routing congestion and tend to consume a disproportionate amount of routing resources in sequential routing methods.

(a) the distribution of pins per net

(b) the runtime and CPWL results
Fig. 8: Runtime and CPWL sensitivity of net size threshold
Fig. 8 (b) demonstrates the runtime and CPWL sensitivity of the net size threshold. The x-axis represents the threshold of net size. For instance, the “> 20” indicates that only nets with a net size exceeding 20 are processed during the differentiable routing stage. The runtime and CPWL results are plotted on the left and right y-axes, respectively. The values of y-axes are normalized as percentages relative to the value at the “> 20” threshold. As the threshold varies, the overall runtime typically reaches lower value at the threshold of 10 or 20. The CPWL results show circuit-dependent variability.
V. CONCLUSION
This paper presents a fully differentiable routing formulation for the AMD-Xilinx UltraScale+ FPGA architecture and realizes it in DiffRouter, a GPU-accelerated routing framework that optimizes routing demand in continuous space and then legalizes the solution onto the discrete routing resource graph. Experiments on the FPGA 2024 Routing Contest benchmarks demonstrate that DiffRouter improves runtime and achieves competitive critical-path wirelength over state-of-the-art parallel FPGA routers. Looking forward, we plan to extend DiffRouter to timing-driven routing by incorporating differentiable delay models and timing-aware objectives.
ACKNOWLEDGEMENT
This work was supported in part by NSF CCF-2112665 (NSF AI Institute TILOS), AMD, NVIDIA, and the UT iMAGiNE Consortium.
REFERENCES
[1] C. H. Hoo and A. Kumar, “ParaDRo: A Parallel Deterministic Router Based on Spatial Partitioning and Scheduling,” in Proceedings of the 2018 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, ser. FPGA ’18. New York, NY, USA: Association for Computing Machinery, 2018, p. 67–76.
[2] D. Wang, Z. Duan, C. Tian, B. Huang, and N. Zhang, "ParRA: A Shared Memory Parallel FPGA Router Using Hybrid Partitioning Approach," IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 39, no. 4, pp. 830–842, 2020.
[3] M. Shen and G. Luo, “Accelerate FPGA routing with parallel recursive partitioning,” in 2015 IEEE/ACM International Conference on Computer-Aided Design, ser. ICCAD ’15, 2015, pp. 118–125.
[4] Y. Zhou, D. Vercruyce, and D. Stroobandt, “Accelerating FPGA Routing Through Algorithmic Enhancements and Connection-aware Parallelization,” ACM Trans. Reconfigurable Technol. Syst., vol. 13, no. 4, Aug. 2020.
[5] T. Martin, D. Maarouf, G. Grewal, and S. Areibi, “A High-Performance Routing Engine for Large-Scale FPGAs,” in 2024 34th International Conference on Field-Programmable Logic and Applications, ser. FPL'24, 2024, pp. 53–59.
[6] X. Zang, W. Lin, J. Liu, and E. F. Y. Young, “Potter: A Parallel Overlap-Tolerant Router for UltraScale FPGAs,” in Proceedings of the 43rd IEEE/ACM International Conference on Computer-Aided Design, ser. ICCAD ’24, New York, NY, USA, 2024.
[7] L. McMurchie and C. Ebeling, “PathFinder: A Negotiation-Based Performance-Driven Router for FPGAs,” in Third International ACM Symposium on Field-Programmable Gate Arrays, 1995, pp. 111–117.
[8] M. Shen, G. Luo, and N. Xiao, “Exploring GPU-Accelerated Routing for FPGAs,” IEEE Transactions on Parallel and Distributed Systems, vol. 30, no. 6, pp. 1331–1345, 2019.
[9] K. E. Murray, O. Petelin, S. Zhong, J. M. Wang, M. Eldafrawy, J.-P. Legault, E. Sha, A. G. Graham, J. Wu, M. J. P. Walker, H. Zeng, P. Patros, J. Luu, K. B. Kent, and V. Betz, “VTR 8: High-performance CAD and Customizable FPGA Architecture Modelling,” ACM Trans. Reconfigurable Technol. Syst., vol. 13, no. 2, Jun. 2020.
[10] H. Choi, M. Lee, C. H. Lee et al., “Machine learning optimal ordering in global routing problems in semiconductors,” Scientific Reports, vol. 14, p. 31077, 2024.
[11] Y. Liu and W. Xiong, “DeepRoute: A Fast FPGA Routing Algorithm Using Graph Embedding for Node Filtering,” Electronics, vol. 14, no. 23, 2025.
[12] U. Gandhi, E. Aghaekiasaraee, Sahir, P. Mousavi, I. S. K. Bustany, M. E. Taylor, and L. Behjat, “Applying reinforcement learning to learn best net to rip and re-route in global routing,” ACM Trans. Des. Autom. Electron. Syst., vol. 29, no. 4, Jul. 2024.
[13] “ISFPGA FPGA Routing Contest,” https://www.isfpga.org/fpga-routing-contest/, International Symposium on Field-Programmable Gate Arrays (ISFPGA), 2025, accessed: 2025-02-XX.
[14] “AMD Xilinx UltraScale+ FPGA Family,” https://www.amd.com/en/products/adaptive-socs-and-fpgas/ultrascale-plus.html, AMD-Xilinx, 2025, accessed: 2025-02-XX.
[15] Y. Zha and J. Li, “Revisiting pathfinder routing algorithm,” in Proceedings of the 2022 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, ser. FPGA’22, 2022, pp. 24–34.
[16] D. Vercruyce, E. Vansteenkiste, and D. Stroobandt, “CRoute: A fast high-quality timing-driven connection-based FPGA router,” in 2019 IEEE 27th Annual International Symposium on Field-Programmable Custom Computing Machines, ser. FCCM’19. IEEE, 2019, pp. 53–60.
[17] K. E. Murray, S. Zhong, and V. Betz, “AIR: A Fast but Lazy Timing-Driven FPGA Router,” in 2020 25th Asia and South Pacific Design Automation Conference, ser. ASP-DAC’20, 2020, pp. 338–344.
[18] Y. Zhou, P. Maidee, C. Lavin, A. Kaviani, and D. Stroobandt, "RWRoute: An Open-source Timing-driven Router for Commercial FPGAs," ACM Trans. Reconfigurable Technol. Syst., vol. 15, no. 1, Nov. 2021.
[19] M. Shen and G. Luo, “Corolla: GPU-Accelerated FPGA Routing Based on Subgraph Dynamic Expansion,” in Proceedings of the 2017 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, ser. FPGA ’17. New York, NY, USA: Association for Computing Machinery, 2017, p. 105–114.
[20] C. H. Hoo, Y. Ha, and A. Kumar, “ParaFRo: A hybrid parallel FPGA router using fine grained synchronization and partitioning,” in 2016 26th International Conference on Field Programmable Logic and Applications, ser. FPL’16, 2016, pp. 1–11.
[21] M. Shen and N. Xiao, “Load Balance-Centric Distributed Parallel Routing for Large-Scale FPGAs,” in 2021 31st International Conference on Field-Programmable Logic and Applications, ser. FPL’21, 2021, pp. 242–248.
[22] X. Zang, W. Lin, S. Lin, J. Liu, and E. F. Young, “An Open-Source Fast Parallel Routing Approach for Commercial FPGAs,” in Proceedings of the Great Lakes Symposium on VLSI 2024, ser. GLSVLSI ’24. New York, NY, USA: Association for Computing Machinery, 2024, p. 164–169.
[23] L. A. F. Cabral, J. S. Aude, and N. Maculan, “TDR: A Distributed-Memory Parallel Routing Algorithm for FPGAs,” in Proceedings of the Reconfigurable Computing Is Going Mainstream, 12th International Conference on Field-Programmable Logic and Applications, ser. FPL'02. Berlin, Heidelberg: Springer-Verlag, 2002, p. 263–270.
[24] M. Gort and J. H. Anderson, “Accelerating FPGA Routing Through Parallelization and Engineering Enhancements Special Section on PAR-CAD 2010,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 31, no. 1, pp. 61–74, 2012.
[25] Y. Moctar, M. Stojilović, and P. Brisk, “Deterministic parallel routing for FPGAs based on Galois parallel execution model,” in 2018 28th International Conference on Field Programmable Logic and Applications, ser. FPL'18. IEEE, 2018, pp. 21–214.
[26] F. Koşar, M. Stojilović, and V. Betz, “Parallel FPGA Routing with On-The-Fly Net Decomposition,” in 2024 International Conference on Field Programmable Technology, ser. ICFPT’24, 2024, pp. 1–9.
[27] J. A. Roy and I. L. Markov, “High-performance Routing at the Nanometer Scale,” in 2007 IEEE/ACM International Conference on Computer-Aided Design, 2007, pp. 496–502.
[28] J. Wang, J. Mai, Z. Di, and Y. Lin, “A Robust FPGA Router with Concurrent Intra-CLB Rerouting,” in 2023 28th Asia and South Pacific Design Automation Conference, 2023, pp. 529–534.
[29] X. Jiang, J. Wang, J. Mai, Z. Di, and Y. Lin, “A Robust FPGA Router With Optimization of High-Fanout Nets and Intra-CLB Connections,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 44, no. 3, pp. 1003–1016, 2025.
[30] S. Steinerberger, “A spectral approach to the shortest path problem,” Linear Algebra and its Applications, vol. 620, pp. 182–200, 2021.
[31] M. Fiedler, “Algebraic connectivity of graphs,” Czechoslovak mathematical journal, vol. 23, no. 2, pp. 298–305, 1973.
[32] C. W. Wu, “Algebraic connectivity of directed graphs,” Linear and multilinear algebra, vol. 53, no. 3, pp. 203–223, 2005.
[33] Y. Hu, Y. Zhu, M. B. Taylor, and C.-K. Cheng, “FPGA Global Routing Architecture Optimization Using a Multicommodity Flow Approach,” in 2007 25th International Conference on Computer Design, 2007, pp. 144–151.
[34] W. Li, Y. Lin, and D. Z. Pan, “elfPlace: Electrostatics-based Placement for Large-Scale Heterogeneous FPGAs,” in 2019 IEEE/ACM International Conference on Computer-Aided Design, ser. ICCAD’19, 2019, pp. 1–8.
[35] C. Lanczos, “An iteration method for the solution of the eigenvalue problem of linear differential and integral operators,” Journal of research of the National Bureau of Standards, vol. 45, no. 4, pp. 255–282, 1950.
[36] “Vivado Design Suite, Version 2023.2,” https://www.amd.com/en/products/software/adaptive-socs-and-fpgas/vivado.html, AMD-Xilinx, 2023, accessed: 2025-02-XX.
[37] X. Wei, Z. Zhang, S. Zou, K. Sun, J. Zhang, J. Zhang, P. Fan, and G. Luo, “AceRoute: Adaptive Compute-Efficient FPGA Routing with Pluggable Intra-Connection Bidirectional Exploration,” in Proceedings of the 43rd IEEE/ACM International Conference on Computer-Aided Design, ser. ICCAD’25, New York, NY, USA, 2025.