Leveraging Modern C++ in High-level Synthesis
Lahti, Sakari; Rintala, Matti; Hämäläinen, Timo D. (2022-07-25)
Lahti, Sakari
Rintala, Matti
Hämäläinen, Timo D.
25.07.2022
IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:tuni-202212209409
https://urn.fi/URN:NBN:fi:tuni-202212209409
Kuvaus
Peer reviewed
Tiivistelmä
<p>High-level synthesis (HLS) enables automated conversion of high-level language algorithms into synthesizable register-transfer level code, allowing computation intensive algorithms to be accelerated on FPGAs. Most HLS tools have C++ as their input language, as it is widely known in both software and hardware industry. However, even though C++ receives a new standard every three years, the HLS tool vendors have mostly provided support and examples using C++98/03. Limiting to early C++ standards imposes a productivity penalty, since the newer standards provide both compilation time reductions and more concise, expressive, and maintainable way of writing code. In this study, we make the case for adopting modern C++ in HLS. We inspect the language features of C++11 and forward, and consider their benefits for HLS. We also test the present support for the modern language features with two state-of-the-art commercial HLS tools. Finally, we provide an extended example, demonstrating the increased clarity of code achieved using the newer standards. We note that the investigated HLS tools already have good support for modern C++ features, and urge their adoption to increase designer productivity.</p>
Kokoelmat
- TUNICRIS-julkaisut [20161]