Automatic Hardware Pragma Insertion in High-Level Synthesis: A Non-Linear Programming Approach
Not on the map. Why?
Abstract (arXiv)
High-Level Synthesis enables the rapid prototyping of hardware accelerators, by combining a high-level description of the functional behavior of a kernel with a set of micro-architecture optimizations as inputs. Such optimizations can be described by inserting pragmas e.g. pipelining and replication of units, or even higher level transformations for HLS such as automatic data caching using the AMD/Xilinx Merlin compiler. Selecting the best combination of pragmas, even within a restricted set, remains particularly challenging and the typical state-of-practice uses design-space exploration to navigate this space. But due to the highly irregular performance distribution of pragma configurations, typical DSE approaches are either extremely time consuming, or operating on a severely restricted search space. This work proposes a framework to automatically insert HLS pragmas in regular loop-based programs, supporting pipelining, unit replication, and data caching. We develop an analytical performance and resource model as a function of the input program properties and pragmas inserted, using non-linear constraints and objectives. We prove this model provides a lower bound on the actual performance after HLS. We then encode this model as a Non-Linear Program, by making the pragma configuration unknowns of the system, which is computed optimally by solving this NLP. This approach can also be used during DSE, to quickly prune points with a (possibly partial) pragma configuration, driven by lower bounds on achievable latency. We extensively evaluate our end-to-end, fully implemented system, showing it can effectively manipulate spaces of billions of designs in seconds to minutes for the kernels evaluated.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 May 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025LLM-DSE: Searching Accelerator Parameters with LLM Agentscited by 10
- 2025Can Reasoning Models Reason about Hardware? An Agentic HLS Perspectivecited by 9
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuningcited by 8
- 2025iDSE: Navigating Design Space Exploration in High-Level Synthesis Using LLMscited by 7
- 2025ForgeHLS: A Large-Scale, Open-Source Dataset for High-Level Synthesiscited by 1
- 2026Agent Factories for High Level Synthesis: How Far Can General-Purpose Coding Agents Go in Hardware Optimization?cited by 1
- 2026Agent Factories for High Level Synthesis: How Far Can General-Purpose Coding Agents Go in Hardware Optimization?26 Mar 2026
- 2025ForgeHLS: A Large-Scale, Open-Source Dataset for High-Level Synthesis4 Jul 2025
- 2025iDSE: Navigating Design Space Exploration in High-Level Synthesis Using LLMs28 May 2025
- 2025LLM-DSE: Searching Accelerator Parameters with LLM Agents18 May 2025
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuning29 Apr 2025
- 2025Can Reasoning Models Reason about Hardware? An Agentic HLS Perspective17 Mar 2025