AutoC2V: Synthesis-Guided LLM Training for QoR-Optimized C++-to-Verilog Generation
Guanqi Lyu, Fei Zhao, Zhaojun Lu, Jiaji He, Yongqiang Lyu
Abstract
High-level synthesis (HLS) can translate C/C++ kernels into register-transfer level (RTL) designs, yet generating high-quality hardware still relies heavily on manual pragma tuning and repeated synthesis evaluation. We propose AutoC2V, a C++-to-Verilog generation framework driven by real synthesis feedback that enables large language models (LLMs) to directly generate RTL with improved quality of results (QoR) from synthesizable C++ kernels. We construct training data from real synthesis results, including synthesizable C++ source code, the corresponding Verilog RTL, QoR metrics, and optimization objectives. Using this dataset, we align the model toward synthesis-aware RTL generation through Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO). To reduce the high cost of repeatedly invoking real synthesis during GRPO, we design the QoR Prediction Reward Model (QoR RM), which predicts latency and resource metrics by encoding RTL into long-context semantic representations, thereby providing low-cost and continuous QoR reward signals for policy optimization. Experimental results demonstrate that AutoC2V not only substantially improves RTL functional pass rates, but also achieves superior latency and resource optimization compared to the unfine-tuned base model, representative HLS optimization approaches (HLSPilot, LLM-DSE, and AutoDSE), and advanced general-purpose commercial models (Claude Opus 4.8, GPT-5.5, Gemini 3.1 Pro, DeepSeek v4 Pro, and GLM-5.2). These results indicate that combining real synthesis data with efficient QoR reward modeling can further improve the ability of LLMs to generate high-quality RTL.
Create a lesson
Related papers
Search-Guided Reasoning Trace Curation for Verilog Generation
Shared title terminology · Matthew DeLorenzo, Kevin Tieu, Prithwish Jana et al.
SGLayout: Schema-Guided Closed-Loop Refinement for LLM-Driven Parameterized Layout Generation
Shared title terminology · Siyang Chen, Yuan Pu, Yuhan Qin et al.
TAPCO-G: LLM-Guided Design-Adaptive Timing and Power Co-Optimization with Graph-Based Physical Priors
Shared title terminology · Wuqian Tang, Zixiao Wang, Che-Chien Lin et al.
PRISM: Preference-based Reward and Uncertainty-Integrated Synthesis Minimization for RTL PPA Optimization
Shared title terminology · Armin Abdollahi, Negin Ashrafi, Mehdi Kamal et al.
Rule-Guided and Trajectory-Aware Repair for LLM-Based HLS Generation
Shared title terminology · Xianjing Zhu, Wenqi Lou, Yuanbo Wen et al.
EGGPlacer: Energy-Guided Generative Chip Placement with Diffusion Models
Shared title terminology · Qi Zhou, Guojun Liu, Juanhong Zhao et al.