Exploiting RapidWright in the Automatic Generation of Application-Specific FPGA Overlays

Joel Mandebi Mbongue, Danielle Tchuinkou Kwadjo, Christophe BobdaarXiv 2020 · DOI

Abstract

Overlay architectures implemented on FPGA devices have been proposed as a means to increase FPGA adoption in general-purpose computing. They provide the benefits of software such as flexibility and programmability, thus making it easier to build dedicated compilers. However, existing overlays are generic, resource and power hungry with performance usually an order of magnitude lower than bare metal implementations. As a result, FPGA overlays have been confined to research and some niche applications. In this paper, we introduce Application-Specific FPGA Overlays (AS-Overlays), which can provide bare-metal performance to FPGA overlays, thus opening doors for broader adoption. Our approach is based on the automatic extraction of hardware kernels from data flow applications. Extracted kernels are then leveraged for application-specific generation of hardware accelerators. Reconfiguration of the overlay is done with RapidWright which allows to bypass the HDL design flow. Through prototyping, we demonstrated the viability and relevance of our approach. Experiments show a productivity improvement up to 20x compared to the state of the art FPGA overlays, while achieving over 1.33x higher Fmax than direct FPGA implementation and the possibility of lower resource and power consumption compared to bare metal.

Introduction

Field Programmable Gate Arrays (FPGAs) offer significant performance and power advantages for specialized computing tasks. However, a persistent "productivity gap" hinders their widespread adoption. Traditional hardware design requires deep expertise in Hardware Description Languages (HDL) and entails long compilation cycles that can last hours. While software-programmable overlays have been proposed to mitigate this, they typically suffer from a "generic tax," resulting in performance an order of magnitude lower than custom hardware. This paper presents Application-Specific Overlays (AS-Overlays), which bridge this gap by providing bare-metal performance with software-like development speed.

Methodology: The AS-Overlay Framework

The AS-Overlay framework automates the transition from high-level C/C++ code to optimized hardware through three primary mechanisms: automated kernel mining, RapidWright-based netlist manipulation, and datapath regularization.

The comprehensive AS-Overlay framework, spanning design flow, architecture, and utilization.

Automated Kernel Mining

Instead of manual hardware identification, the system utilizes an LLVM compiler pass. It converts the application into a Control Data Flow Graph (CDFG) and employs graph mining algorithms to identify frequent, compute-intensive kernels. This allows the system to merge kernels across different blocks of code, reducing processing element requirements and lowering global latency.

RapidWright Integration

A core innovation of this work is the use of Xilinx’s RapidWright tool to bypass the traditional, time-consuming FPGA implementation flow. Traditional tools like Vivado are slow because they re-evaluate the entire chip layout for every design iteration. In contrast, the AS-Overlay flow uses RapidWright to "stitch together" pre-implemented hardware modules (e.g., adders, multipliers) directly at the netlist level.

A comparison between the standard Vivado implementation flow and the accelerated RapidWright-based flow used in AS-Overlays.

Datapath Regularization

To ensure high-speed operation, the framework automatically balances latencies across the generated hardware. By inserting flip-flops where necessary, the system ensures that data arrives at the correct clock cycle for every calculation, maintaining the integrity of the high-frequency datapath.

Results and Evaluation

The framework was evaluated using common data-flow benchmarks, including Matrix Multiplication and Image Smoothing, on a Xilinx Kintex UltraScale+ FPGA.

  • Productivity: The AS-Overlay flow demonstrated a productivity improvement of up to 20x compared to state-of-the-art FPGA overlay flows. Loading kernels into the FPGA was approximately 3x faster than using standard vendor tools.
  • Performance: AS-Overlays achieved a maximum frequency ($F_{max}$) of 447 MHz, significantly higher than the 304 MHz achieved by generic overlays. In the image smoothing benchmark, it outperformed manual bare-metal implementation by 1.33x.
  • Power and Resources: For a 10x10 grid of processing elements, the AS-Overlay consumed 1.10x less power than the bare-metal equivalent and utilized significantly fewer logic resources than generic overlays.

Conclusion

AS-Overlays represent a significant advancement in making FPGAs accessible for general-purpose computing. By automating kernel extraction and leveraging RapidWright for rapid netlist manipulation, the framework achieves high performance without the traditional HDL overhead. Future work will focus on further optimizing the communication infrastructure and exploring the scalability of this approach for larger, more complex designs.

Summary updated

BibTeX
@misc{mbongue2020exploiting,
  author = {Joel Mandebi Mbongue and Danielle Tchuinkou Kwadjo and Christophe Bobda},
  title = {{Exploiting RapidWright in the Automatic Generation of Application-Specific FPGA Overlays}},
  year = {2020},
  eprint = {2001.11886},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.11886},
}
Figure