SyntheticHLS: Building Diverse Synthetic High-Level Synthesis Datasets using LLMs
Stefan Abi-Karam, Miaoyan Zhou, Callie Hao
Abstract
Deep learning and large language models (LLMs) are rapidly gaining adoption in semiconductor design, driving demand for training datasets. Most efforts focus on hardware description languages (HDLs) while designs for high-level synthesis (HLS), a popular approach to domain-specific accelerators, remain scarce. HLS dataset efforts emphasize manual curation or design parameterization, seldom addressing high-quality LLM-based generation or diversity in code length, hierarchy, design-space size, latency, resource utilization, and application domain, potentially limiting model generalization. We propose SyntheticHLS, a framework for generating large-scale, complex, diverse synthetic HLS datasets using LLMs. Its two key ideas are: 1) an iterative feedback-guided mutation loop that uses paired HLS source code and design-space specifications to incrementally transform seed designs into more complex, scalable designs; and 2) quantitative metrics of HLS design complexity and design-space scalability that serve as measurable objectives for LLM-guided mutation. We systematically cross-validate an HLS Quality-of-Results (QoR) deep learning model trained and tested across common HLS benchmarks, zero-shot synthetic designs, and iteratively mutated synthetic designs. Synthetic designs transfer well to common benchmark test sets while the reverse does not hold. SyntheticHLS's iteratively mutated designs provide the most generalizable training corpus among the datasets studied. Analysis of the mutation process and dataset shows that metric-guided trajectories consistently improve targeted complexity and scalability objectives without regressing non-target metrics. Mutated designs span a substantially broader, more diverse design space than zero-shot generated designs. Our framework, dataset, and evaluation are open-source: https://github.com/sharc-lab/synthetic-hls.
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.
Integrating Approximate Logic Synthesis into Approximate High-Level Synthesis
Shared title terminology · Jian Shi, Ruicheng Dai, Chang Meng et al.
RTLREX: LLM-Guided Framework for Exact High-Level RTL Recovery
Shared title terminology · Wuqian Tang, Fangzhou Liu, Ruijie Wang et al.
Low-level optimizations in high-level HDLs: Is there a benefit?
Shared title terminology · Oliver Keszocze, Tjark Petersen, Arved Friedemann et al.
Xtrace: High-Fidelity GPU Intra-Kernel Tracing via Binary-Level Instruction Splicing
Shared title terminology · Zhuobin Huang, Kai Zhang, Weihao Cui et al.