TL;DR
COEVO is a novel co-evolutionary framework for LLM-based RTL (hardware description code) generation that unifies functional correctness and PPA (Power, Performance, Area) optimization into a single loop. By treating correctness as a continuous metric and employing four-dimensional Pareto sorting, it prevents the premature discarding of partially correct but architecturally superior designs, achieving state-of-the-art code generation and hardware quality.
What Problem Does This Paper Address?
Automating the generation of Register-Transfer Level (RTL) hardware designs from natural language specifications using Large Language Models (LLMs) has advanced significantly. However, practical deployment requires not just functionally correct code, but also highly optimized hardware metrics: Power, Performance (delay), and Area (PPA).
Existing frameworks universally decouple these two goals. They either use sequential pipelines (fixing functional correctness first, then optimizing PPA) or enforce strict binary correctness gates in evolutionary algorithms that immediately discard any code failing a single test case. This approach systematically eliminates "imperfect" candidates that possess brilliant, highly efficient underlying hardware architectures. Furthermore, existing methods collapse the multi-objective PPA space into a single scalar value via weighted sums, obscuring natural engineering trade-offs.
Methods
COEVO unifies correctness and PPA optimization within a single evolutionary loop through several key innovations:
- Continuous Correctness Scoring: Instead of a binary pass/fail, an enhanced testbench evaluates code to provide a continuous correctness score ($c \in [0, 1]$) based on the fraction of passed test cases, alongside detailed diagnostic feedback.
- Adaptive Correctness Gate with Annealing: Early in the evolutionary process, the threshold for survival is kept low. This allows partially correct but highly efficient hardware candidates to survive and act as "stepping stones." As generations progress, the gate gradually tightens toward full correctness ($c = 1.0$).
- 4D Pareto-Based Non-Dominated Sorting: COEVO treats correctness, area, critical path delay, and power as four independent dimensions. It uses Pareto dominance to select survivors, preserving the full trade-off structure without requiring manual weight tuning.
- LLM-Driven Evolutionary Operators: The framework defines seven specialized operators across three categories: correctness-oriented (Fix, Simplify), PPA-oriented (Optimize, Restructure, Explore), and joint correctness-PPA operators (PPA-aware Fix, Architecture Fusion).
Datasets
The framework was evaluated on two standard spec-to-RTL benchmarks:
- VerilogEval 2.0: 156 design tasks covering combinational and sequential circuits.
- RTLLM 2.0: 50 design tasks spanning arithmetic modules, control logic, and datapath circuits.
Note: The authors identified and corrected a small number of specification ambiguities and testbench inconsistencies in these original benchmarks to ensure a fair evaluation.
Key Insights and Ideas
- Imperfection as a Stepping Stone: A design that fails a few test cases but has an incredibly efficient pipeline structure shouldn't be discarded. COEVO demonstrates that keeping these designs in the population allows the LLM to later fix functional bugs while inheriting the superior hardware architecture.
- Avoiding the Scalar Trap: Collapsing area, delay, and power into a single number forces engineers to guess weights manually. By treating them as independent dimensions in a 4D Pareto sort, COEVO naturally discovers diverse, optimal trade-offs.
- Dynamic Operator Shift: By using an adaptive operator selection mechanism (UCB-Softmax) with category-specific rewards, the framework naturally shifts its resource allocation from correctness-focused operators to PPA-focused operators as the population matures.
Key Results
- Functional Correctness State-of-the-Art: Using the GPT-5.4-mini backbone, COEVO achieved a 97.5% Pass@1 on VerilogEval 2.0 and 94.5% Pass@1 on RTLLM 2.0, consistently outperforming all agentic baselines (such as EvolVE and REvolution).
- Superior PPA Quality: COEVO achieved the best PPA product ($Area \times Delay \times Power$) on 43 out of 49 synthesizable RTLLM designs.
- Open-Source Viability: When paired with the open-source
Qwen2.5-Coder-7Bmodel (without any fine-tuning), COEVO achieved 72.7% Pass@1 on VerilogEval 2.0 and 74.5% on RTLLM 2.0, outperforming specialized supervised fine-tuning (SFT) and reinforcement learning (RL) models like CodeV-R1.
Limitations and Future Work
Not discussed in the paper.
Summary updated