ChipSeek: Optimizing Verilog Generation via EDA-Integrated Reinforcement Learning
About
Large Language Models have emerged as powerful tools for automating Register-Transfer Level (RTL) code generation, yet they face critical limitations: existing approaches typically fail to simultaneously optimize functional correctness and hardware efficiency metrics such as Power, Performance, and Area (PPA). Methods relying on supervised fine-tuning commonly produce functionally correct but suboptimal designs due to the lack of inherent mechanisms for learning hardware optimization principles. Conversely, external post-processing techniques aiming to refine PPA performance after generation often suffer from inefficiency and do not improve the LLMs' intrinsic capabilities. To overcome these challenges, we propose ChipSeek, a novel hierarchical reward based reinforcement learning framework designed to encourage LLMs to generate RTL code that is both functionally correct and optimized for PPA metrics. Our approach integrates direct feedback from EDA simulators and synthesis tools into a hierarchical reward mechanism, facilitating a nuanced understanding of hardware design trade-offs. Through Curriculum-Guided Dynamic Policy Optimization (CDPO), ChipSeek enhances the LLM's ability to generate high-quality, optimized RTL code. Evaluations on standard benchmarks demonstrate ChipSeek's superior performance, achieving state-of-the-art functional correctness and PPA performance. Furthermore, it excels in specific optimization tasks, consistently yielding highly efficient designs when individually targeting fine-grained optimization goals such as power, delay, and area. The artifact is open-source in https://github.com/rong-hash/chipseek.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Verilog Code Generation | VerilogEval v1 (Human) | Pass@164.3 | 54 | |
| Verilog Code Generation | VerilogEval Machine | Pass@187.2 | 37 | |
| Verilog Code Generation | RTLLM v1.1 | Syn@596.6 | 31 | |
| Verilog Code Generation | RTLLM v2.0 | Pass@584.09 | 17 | |
| RTL Design Generation | RTLLM v2.0 | Delay (ns)0.07 | 15 | |
| RTL generation | AutoSilicon | Pass@553.3 | 6 |