Low-level optimizations in high-level HDLs: Is there a benefit?
Oliver Keszocze, Tjark Petersen, Arved Friedemann, Matthias Bo Stuart
Abstract
This paper explores the applicability of functional programming to the design of Application-specific Integrated Circuits (ASICs). We investigate the impact of designing ASICs using high-level, abstract Hardware Description Language (HDL) features versus employing low-level optimizations on the area of the synthesized circuits. The aim is to determine whether using low-level optimizations is beneficial and, if so, whether it is worth the added implementation effort. To carry out the investigation, we implement an unsigned bit-serial multiply-accumulate (MAC) unit in 16 different configurations using the functional HDL Clash. We make use of both low-level bit-manipulation techniques as well as Clash's high-level constructs for circuit design. The experimental evaluation shows that some high-level constructs of Clash have negligible influence on the resulting circuit size, suggesting that using the full power of functional programming is a viable approach to hardware design. To evaluate the impact of the used HDL itself, we also implemented versions of the MAC in Verilog. The experiments clearly show that there seems to be an inherent overhead in using Clash compared to Verilog code written by a seasoned engineer.
Create a lesson
Related papers
Structure-augmented LLMs for High-Level Synthesis Pragma Optimization
Shared title terminology · Haocheng Xu, Ye Qiao, Phyo Pyae Moe Aung et al.
Native FPGA Hard-Block Implementation from High-Level Synthesis
Shared title terminology · Mohamed Bouaziz, Mahmoud A. Elshenawy, Krishnan B. Iyer et al.
RTLREX: LLM-Guided Framework for Exact High-Level RTL Recovery
Shared title terminology · Wuqian Tang, Fangzhou Liu, Ruijie Wang et al.
An ASIC Design Flow for High-Level Synthesis of Asynchronous Circuits
Shared title terminology · Mayuresh Warunjikar, Madhav Desai
Integrating Approximate Logic Synthesis into Approximate High-Level Synthesis
Shared title terminology · Jian Shi, Ruicheng Dai, Chang Meng et al.
SyntheticHLS: Building Diverse Synthetic High-Level Synthesis Datasets using LLMs
Shared title terminology · Stefan Abi-Karam, Miaoyan Zhou, Callie Hao