NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TAPA: A Scalable Task-parallel Dataflow Programming Framework for Modern FPGAs with Co-optimization of HLS and Physical Design

Licheng Guo, Yuze Chi, Jason Lau, Linghao Song, Xingyu Tian, Moazin Khatti, Weikang Qiao, Jie Wang, Ecenur Ustun, Zhenman Fang, Zhiru Zhang, Jason Cong

TL;DR

TAPA is an end-to-end framework that solves the "timing closure" nightmare in FPGA design by merging High-Level Synthesis (HLS) with physical floorplanning. By automatically inserting pipeline registers on long wires and balancing the resulting latency, TAPA doubles the average clock frequency of complex designs (from 147 MHz to 297 MHz) and makes previously "unroutable" designs functional.

What Problem Does This Paper Address?

The "timing closure" gap is a major hurdle for FPGA developers. When using High-Level Synthesis (HLS) to turn C++ into hardware, the tool has no idea where the resulting logic will physically sit on the chip.

Modern FPGAs are massive and heterogeneous, often consisting of multiple silicon dies (SLRs) connected by interposers. Crossing these die boundaries or routing around fixed IP blocks (like DDR or HBM controllers) introduces significant signal delays. Standard HLS tools often fail to account for these "long wires," leading to designs that either run at very low frequencies or fail to route entirely. By the time a physical design tool identifies a critical path, it’s too late to add the necessary pipeline registers because the RTL structure is already "baked in."

Methods

TAPA introduces a co-optimization strategy that brings physical awareness into the HLS compilation phase. Its workflow consists of several novel components:

  1. Task-Parallel Dataflow Model: TAPA uses a C++ programming model where independent "tasks" communicate via latency-insensitive "streams" (FIFOs). This decoupling is essential for the optimizations that follow.
  2. Coarse-Grained Floorplanning (AutoBridge): Instead of attempting a full placement, TAPA divides the FPGA into a grid of "slots" based on die boundaries and IP locations. It uses Integer Linear Programming (ILP) to assign tasks to these slots, minimizing the number of wires crossing slot boundaries.
  3. Floorplan-Aware Pipelining: Once tasks are assigned to slots, TAPA identifies every connection that crosses a boundary and automatically inserts pipeline registers.
  4. Latency Balancing: Adding registers to one path can cause stalls if a parallel path arrives earlier. TAPA uses a System of Differential Constraints (SDC) algorithm to calculate exactly how much "balancing" latency to add to every path, ensuring the overall throughput remains unaffected.
  5. HBM-Specific Optimizations: To handle the massive congestion near High Bandwidth Memory (HBM) ports, TAPA introduces an async_mmap API. This reduces the need for large on-chip BRAM buffers that standard HLS tools typically generate, significantly lowering resource overhead.

Datasets

The authors evaluated TAPA using a total of 43 designs across various configurations. The benchmarks include:

  • Classic HLS Benchmarks: SODA Stencil, Genome Sequencing (Minimap2), CNN accelerators, and Gaussian Elimination.
  • HBM-Centric Benchmarks: PageRank (graph processing) and Bucket Sort.
  • New Large-Scale Benchmarks: The paper introduces three HBM-heavy benchmarks—SASA (Stencil), SpMM (Sparse Matrix-Matrix Multiply), and SpMV (Sparse Matrix-Vector Multiply)—which utilize up to 29 HBM channels and represent the "stress test" for modern FPGA routing.

Key Insights and Ideas

  • The Power of "Coarse" Information: You don't need a perfect, gate-level floorplan to improve timing. Knowing which die a task sits in is often enough to predict and fix 90% of global timing issues.
  • Latency-Insensitivity as an Optimization Lever: By enforcing a dataflow model, the authors turned a hardware constraint (fixed RTL) into a flexible one. Because the tasks don't care about the exact cycle data arrives (as long as it's balanced), the compiler gains the freedom to "stretch" the wires with registers.
  • Solving the HBM "BRAM Tax": Standard HLS abstractions treat external memory as a simple array, causing the compiler to over-provision BRAM for burst buffers. TAPA’s asynchronous memory API exposes the underlying flow control to the user, cutting BRAM usage for HBM controllers to nearly zero.

Key Results

  • Frequency Boost: Across 43 designs, the average frequency improved from 147 MHz to 297 MHz (a 102% increase).
  • Saving "Dead" Designs: Perhaps most impressively, 16 designs that were completely unroutable using standard commercial tools achieved an average of 274 MHz when compiled with TAPA.
  • Zero Throughput Loss: Thanks to the latency balancing algorithm, the frequency gains did not come at the cost of execution cycles; the designs processed data just as efficiently as the originals.
  • Efficiency: The floorplanning and balancing steps are highly scalable; even for designs with nearly 500 modules, the ILP solver finishes in roughly 20 seconds.

Limitations and Future Work

  • Total Compile Time: While TAPA’s internal steps are fast, the downstream Vivado synthesis and routing still take hours. The authors suggest integrating with RapidStream to parallelize the physical design further.
  • Communication Flexibility: Currently, TAPA tasks can only communicate via streams. The authors plan to extend the infrastructure to support more complex buffer-based channels.
  • Hybrid RTL/HLS Support: While the methodology could theoretically apply to hand-written RTL, the current automated flow is optimized for HLS-generated tasks. Providing a robust bridge for legacy RTL remains a future goal.

Summary updated

BibTeX
@article{guo2023tapa,
  author = {Licheng Guo and Yuze Chi and Jason Lau and Linghao Song and Xingyu Tian and Moazin Khatti and Weikang Qiao and Jie Wang and Ecenur Ustun and Zhenman Fang and Zhiru Zhang and Jason Cong},
  title = {{TAPA: A Scalable Task-parallel Dataflow Programming Framework for Modern FPGAs with Co-optimization of HLS and Physical Design}},
  journal = {ACM Trans. Reconfigurable Technol. Syst.},
  year = {2023},
  doi = {10.1145/3609335},
}
Figure