Verilog-Evolve: Feedback-Driven and Skill-Evolving Verilog Generation

Zehua Pei, Hui-Ling Zhen, Yu Zhang, Sinno Jialin Pan, Mingxuan Yuan, Bei YuarXiv 2026

TL;DR

Verilog-Evolve shifts LLM-based hardware design from isolated, one-shot code generation to an iterative, tool-guided optimization process. By combining a major/minor versioned refinement loop with a cross-session "skill memory" validated by actual EDA tools, it generates Verilog that is not only functionally correct but also optimized for real-world hardware constraints like area, timing, and task-specific downstream metrics.

What Problem Does This Paper Address?

While Large Language Models (LLMs) have gotten remarkably good at generating software code, hardware description languages (HDLs) like Verilog present a unique challenge. In hardware design, code isn't just text to be executed; it is a blueprint for physical circuits.

Current LLM pipelines typically optimize for "one-shot" functional correctness—meaning if the code passes a basic simulation test, it's considered a success. However, this ignores critical practical requirements:

  1. Weak Evidence: LLM self-reflection often hallucinates correctness, claiming a module works when it actually fails compilation or synthesis.
  2. Quality Disparity: Two functionally identical Verilog snippets can result in vastly different physical implementations, differing wildly in gate count, wiring complexity, and timing delays.
  3. Isolated Attempts: Most generation pipelines treat every prompt as an isolated sample, failing to log tool feedback or accumulate reusable design knowledge across different tasks.

Methods

The authors introduce Verilog-Evolve, a framework that treats Verilog generation as an iterative, multi-objective refinement problem. It consists of two main loops:

1. Task-Level Versioned Search (Major/Minor Loop)

Instead of generating a single file, the framework runs through multiple Major Rounds. Within each round, it spawns several Minor Candidates using diverse strategies:

  • Direct Generation: Standard prompt-to-code.
  • C-Bridge: Asking the LLM to write a C-style reference first to clarify datapath logic before translating it to Verilog.
  • Feedback-Conditioned Repair: Modifying the previous major version based on concrete error logs.

These candidates are fed into a pluggable evaluator pool featuring open-source tools like iverilog (simulation), Yosys (synthesis metrics), and ABC (timing proxy). A configurable multi-objective scoring function balances correctness penalties with physical constraints (area, wire bits, delay). The best eligible minor candidate is then promoted to the next major version.

Figure 1: Overview of Verilog-Evolve. Given a natural-language specification and module header, the framework performs task-level major/minor versioned search: multiple skill- conditioned minor RTL candidates are generated, evaluated by executable tool feedback, scored under configurable objectives, and promoted into the next major version. Cross-session his- tories are further distilled into verifier- and validation-gated skill updates, which are retrieved to guide future generation and repair.

2. Cross-Session Skill Evolution

To learn across different tasks, Verilog-Evolve maintains a persistent skill registry (SKILL.md). After a batch of tasks, the system reviews execution histories, aggregates successful strategies, and decides whether to create, improve, or skip a skill. To prevent brittle or harmful skills from entering the registry, updates must pass an evidence gate and a validation queue where independent "replay workers" test the new skills on historical cases.

Datasets

The framework was evaluated using two primary benchmarks:

  • VerilogEval (Machine & Human): Standard benchmarks used to test the functional correctness of LLM-generated Verilog code across a variety of syntax and logic problems.
  • Mixed-Precision GEMM Tasks: A custom downstream hardware benchmark consisting of three specialized General Matrix Multiply style blocks (int4_int8_mac_pe, mixed_precision_dot4, and requantize_int32_to_int8) designed to evaluate hardware-specific PPA (Power, Performance, Area) metrics.

Key Insights and Ideas

  • Functional Correctness $\neq$ Hardware Quality: The paper clearly demonstrates that optimizing purely for simulation pass rates yields bloated, inefficient circuits. Incorporating lightweight synthesis (Yosys) and timing proxies (ABC) into the LLM's reward loop forces it to generate cleaner, more hardware-friendly RTL.
  • The Power of the "C-Bridge": Forcing the LLM to generate an intermediate software-like representation (C code) helps anchor complex mathematical or datapath logic, leading to fewer structural bugs when translating to hardware.
  • Validation Gating is Crucial: Simply letting an LLM update its own prompt/skill database leads to optimization drift or regression. Gating skill updates behind a strict replay-validation mechanism ensures that long-term memory updates genuinely generalize to unseen tasks.

Key Results

Verilog-Evolve consistently outperformed baseline generation methods across both functional and hardware-driven metrics:

  • Functional Success: On VerilogEval-Human, the full framework boosted final functional success from 61.5% (Direct LLM) to 72.8%.
  • Hardware Optimization: In the GEMM accelerator tasks, incorporating downstream-aware evaluators reduced the total circuit cell count from 182.4 to 151.6 and slashed the ABC timing delay proxy from 6.81 to 5.48 compared to correctness-only baselines.
  • Skill Evolution Impact: As shown in the authors' ablation study, the validation-gated skill evolution mode achieved the highest generalization performance on held-out tasks while maintaining a clean, high-quality skill registry.
Ablation table showing the performance impact of different skill evolution modes on Human Success and GEMM metrics.

Limitations and Future Work

While Verilog-Evolve successfully leverages open-source tools like Yosys and ABC as proxies, these tools don't fully mirror commercial electronic design automation (EDA) environments. The authors note that open-source timing proxies are lightweight but lack the accuracy of industrial Static Timing Analysis (STA).

Future iterations aim to integrate industrial EDA toolchains (like Synopsys Design Compiler or Cadence Genus) directly into the evaluator loop and incorporate formal equivalence checking (SEC) to guarantee that aggressive optimization steps never compromise the original design intent.

Summary updated

BibTeX
@misc{pei2026verilog,
  author = {Zehua Pei and Hui-Ling Zhen and Yu Zhang and Sinno Jialin Pan and Mingxuan Yuan and Bei Yu},
  title = {{Verilog-Evolve: Feedback-Driven and Skill-Evolving Verilog Generation}},
  year = {2026},
  eprint = {2605.26498},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.26498},
}
Figure