AutoC2V: Synthesis-Guided LLM Training for QoR-Optimized C++-to-Verilog Generation
Guanqi Lyu, Fei Zhao, Zhaojun Lu, Jiaji He, Yongqiang Lyu
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- FPGA-GEN: Target-Aware RTL Generation via HLSarXiv · 2026
- Pareto-Optimal RTL Code Generation via Multi-Objective Reinforcement Learning with Large Language ModelsarXiv · 2026
- Constraint-aware HLS optimization via LLM-based multi-role agent with iterative reflexionACM Transactions on Design Automation of Electronic Systems · 2026
- Toward Autonomous RTL and Synthesis Optimization: Benchmarking and Self-Improving AgentsarXiv · 2026
- LLM-based Hardware Development with Hierarchical IRs and End-to-End Multi-Agent WorkflowarXiv · 2026
- LLM-Assisted Co-Optimization of RTL and Synthesis Algorithms via Bottleneck AnalysisarXiv · 2026