FADO: Floorplan-Aware Directive Optimization for High-Level Synthesis Designs on Multi-Die FPGAs

Linfeng Du, Tingyuan Liang, Sharad Sinha, Zhiyao Xie, Wei Zhang

TL;DR

FADO is the first framework to co-optimize High-Level Synthesis (HLS) directives and floorplanning specifically for multi-die FPGAs. By replacing slow, global optimization with a fast, incremental "floorplan-aware" search, it achieves up to a 5000x speedup in design time and nearly 9x better hardware performance compared to existing state-of-the-art methods.

What Problem Does This Paper Address?

Modern FPGAs are massive, often consisting of multiple silicon dies (Super Logic Regions or SLRs) connected via an interposer. While this allows for huge designs, crossing the boundary between dies is expensive—it introduces significant "net delay" that can tank a design's clock frequency.

Engineers use HLS directives (like PIPELINE or UNROLL) to tune performance, but traditional tools are "floorplan-blind." They optimize the code without knowing if the resulting hardware will actually fit on a specific die or if it will be forced to cross a die boundary in a way that destroys timing. Existing solutions that try to combine layout and optimization usually rely on global solvers (MILP) that are too slow to run repeatedly during a design search, leading to a "chicken and egg" problem: you can't optimize the layout without the directives, and you can't pick the best directives without knowing the layout.

Methods

The authors propose FADO (Floorplan-Aware Directive Optimization), which treats the problem as a Multi-Choice Multi-Dimensional Bin-Packing (MMBP) problem. Instead of a one-shot global optimization, FADO uses an iterative, two-pronged approach:

  1. Latency-Bottleneck-Guided Search: It identifies the slowest part of the design and tries different HLS directive configurations. Crucially, it uses Look-Ahead and Look-Back sampling. This handles "non-monotonic" behavior—cases where, surprisingly, making a design "faster" might actually use fewer resources, or vice versa.
  2. Incremental Floorplan Legalization: Instead of re-running a global floorplanner every time a directive changes (which takes minutes or hours), FADO uses fast heuristics. It employs a Worst-Fit (WF) strategy to balance resources across dies and a Best-Fit Decreasing (BFD) strategy to compact the layout when space is tight.
  3. Automated Pipelining: It automatically inserts pipeline registers for any wires that must cross die boundaries to maintain high clock frequencies.

Datasets

The authors evaluated FADO using six large-scale benchmarks that mix different types of hardware kernels:

  • Dataflow Kernels: CNN, Matrix Multiplication (MM), and MTTKRP (generated via PolySA/AutoSA).
  • Non-Dataflow Kernels: 2MM, Covariance (COV), and HEAT (from the Polybench suite).
  • Mixed Designs: The benchmarks combine these kernels (e.g., CNN*2 + 2MM*1) to simulate complex, real-world accelerators. These designs are significantly larger than standard HLS benchmarks, often utilizing over 60% of a massive Xilinx Alveo U250 FPGA.

Key Insights and Ideas

  • Floorplanning as a Filter: The core "aha moment" is that floorplanning shouldn't just be the final step; it should be a constraint that prunes the HLS search space. If a directive configuration makes a function too big to fit in any available "bin" (SLR), FADO discards it immediately.
  • Heuristics Beat Exact Solvers: While MILP solvers provide "optimal" layouts, they are computationally prohibitive for iterative loops. FADO proves that incremental bin-packing heuristics are "good enough" to find near-optimal results in a fraction of the time.
  • Handling the "Handshake" Gap: The paper notes that while dataflow kernels (using FIFOs) are easy to pipeline across dies, non-dataflow kernels (using RAMs) are not. FADO smartly groups RAM-connected functions together on the same die to avoid timing failures.

Key Results

  • Search Speed: FADO is 693x to 4,925x faster than the baseline (DSE + global MILP floorplanning). A search that would take days now takes seconds.
  • Hardware Performance: After implementation on a Xilinx Alveo U250, FADO-optimized designs showed an improvement of 1.16x to 8.78x in overall execution time.
  • Resource Efficiency: FADO successfully pushed designs to ~65% resource utilization across multiple dies while maintaining high clock frequencies (~300 MHz), a feat that often causes "routing congestion" and failure in standard tools.

Limitations and Future Work

  • Coarse-Grained Focus: FADO operates at the SLR/slot level. While this is highly effective for multi-die timing, it doesn't account for fine-grained placement issues within a single die (like local congestion near DSP or BRAM columns).
  • QoR Library Dependency: The framework relies on a pre-processing step to build a "Quality of Results" (QoR) library for function templates. While this saves time in the long run, it requires an initial characterization phase.
  • Future Directions: The authors suggest extending FADO to handle power-aware optimizations or targeting even more complex 3D-IC architectures where thermal constraints might become a factor.

Summary updated

BibTeX
@inproceedings{du2023fado,
  author = {Linfeng Du and Tingyuan Liang and Sharad Sinha and Zhiyao Xie and Wei Zhang},
  title = {{FADO: Floorplan-Aware Directive Optimization for High-Level Synthesis Designs on Multi-Die FPGAs}},
  booktitle = {FPGA},
  year = {2023},
  doi = {10.1145/3543622.3573188},
}
Figure