Skip to main content
QUICK REVIEW

[Paper Review] Two FPGA Case Studies Comparing High Level Synthesis and Manual HDL for HEP applications

Tétrault Marc-André|arXiv (Cornell University)|Jun 24, 2018
Embedded Systems Design TechniquesComputer Science3 references8 citations
TL;DR

This paper evaluates High-Level Synthesis (HLS) using C/C++ against traditional HDL coding for real-time FPGA implementations in high-energy physics (HEP) applications. Two case studies—crystal identification and event timestamp sorting—show HLS reduces development time by 50% but increases resource usage by 2x to 4x, with comparable timing performance, demonstrating HLS as a viable alternative for real-time nuclear science systems despite higher resource costs.

ABSTRACT

Real time data acquisition systems in nuclear science often rely on high-speed logic designs to reach the fast data rate requirements. They are mostly coded in a hardware description language (HDL). However, in recent years, high level synthesis (HLS) compilers have appeared, with the notable advantage that they rely on the widespread C/C++ syntax. This paper's aim is to outline differences between HDL and C/C++ HLS based designs for two real-time data acquisition modules used in nuclear science. The first module is a real-time crystal identification module, and the second is a compact event timestamp sorting module. This evaluation was done by an experienced VHDL programmer with no prior HLS training. For the crystal identification module, both HDL and HLS versions have the same event processing interval, and the HLS implementation consumes twice as many lookup tables and flip flops as the HDL version. On the other hand, the HLS version took half the time to write and debug. For the sorter module, the HLS version requires about 3 to 4 times more logic resources, with a slightly longer processing interval. It was also completed in half the time compared to the original HDL code. While different compiler directives can still be explored to improve source code clarity, resource usage and timing closure in these designs, this trial shows that HLS is a compelling alternative to custom HDL implementations for real time systems in nuclear and plasma science.

Motivation & Objective

  • To evaluate the trade-offs between High-Level Synthesis (HLS) and manual HDL coding in real-time FPGA designs for high-energy physics (HEP) applications.
  • To assess development time, resource utilization, and timing performance differences in HLS versus HDL implementations.
  • To determine the feasibility of HLS as an alternative to custom HDL for real-time data acquisition systems in nuclear and plasma science.
  • To explore the impact of HLS on code maintainability and clarity in complex, high-speed logic designs.

Proposed method

  • Two real-time FPGA modules were implemented using both HLS (C/C++) and traditional HDL (VHDL) by an experienced VHDL programmer with no prior HLS training.
  • The first module performed real-time crystal identification; the second handled compact event timestamp sorting.
  • Designs were evaluated on resource usage (LUTs, flip-flops), processing interval (event processing time), and development time (coding and debugging).
  • Compiler directives were not explored in depth, but their potential for optimization was acknowledged.
  • Performance was measured in terms of logic resource consumption and timing closure, with results compared across both implementation styles.

Experimental results

Research questions

  • RQ1How does the development time for HLS-based designs compare to traditional HDL coding in real-time HEP applications?
  • RQ2What is the difference in resource utilization (LUTs, flip-flops) between HLS and HDL implementations for the same functionality?
  • RQ3Can HLS achieve comparable timing performance (event processing interval) to hand-coded HDL in high-speed data acquisition systems?
  • RQ4To what extent does HLS improve code clarity and maintainability in complex FPGA designs?

Key findings

  • For the crystal identification module, the HLS version achieved the same event processing interval as the HDL version but consumed twice as many LUTs and flip-flops.
  • The HLS implementation of the crystal identification module took half the time to write and debug compared to the HDL version.
  • For the event timestamp sorting module, the HLS version required 3 to 4 times more logic resources than the HDL version and had a slightly longer processing interval.
  • Despite higher resource usage, the HLS version of the sorter was completed in half the time compared to the original HDL code.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.