arXiv · 2609.37021
Low-level optimizations in high-level HDLs: Is there a benefit?
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Oliver Keszocze, Tjark Petersen, Arved Friedemann, Matthias Bo Stuart. 2026-09-29. Low-level optimizations in high-level HDLs: Is there a benefit?. https://arxiv.org/abs/2609.37021
Cite the original work for its findings. Save a collection to share your selection of sources.