CktEvo: Repository-Level RTL Code Benchmark for Design Evolution

Zhengyuan Shi, Jingxin Wang, Tairan Cheng, Changran Xu, Weikang Qian, Qiang XuarXiv 2026

TL;DR

CktEvo introduces the first repository-level benchmark and closed-loop framework designed to optimize multi-file hardware descriptions (RTL) using Large Language Models (LLMs). By shifting focus from generating isolated code snippets to iteratively evolving complete IP cores, CktEvo achieves up to a 10.50% reduction in Area-Delay Product (ADP) while strictly guaranteeing functional correctness through formal verification.

What Problem Does This Paper Address?

While LLMs have shown promise in generating and debugging hardware code (Verilog/VHDL), existing benchmarks and frameworks suffer from a major disconnect with real-world engineering. Most current approaches focus on generating isolated code snippets from natural-language prompts. However, in actual chip design, critical metrics like Power, Performance, and Area (PPA) are emergent properties that result from complex interactions across an entire multi-file repository and the downstream Electronic Design Automation (EDA) toolchain.

Furthermore, natural language prompts are often ambiguous, leading to model hallucinations that require tedious expert review. To bridge this gap, the authors address the challenge of repository-level RTL design evolution: taking an existing, functionally correct, multi-file hardware repository and autonomously optimizing its PPA metrics without altering its behavior.

Methods

The authors propose an automated, closed-loop evolution framework that treats RTL optimization as an iterative, multi-objective optimization problem.

Figure 1: Overview of close-loop evolution framework.

The workflow operates in six main steps:

  1. EDA Toolchain Execution: The current codebase is run through logic synthesis and static timing analysis (STA) to establish baseline PPA metrics.
  2. Graph-based Code Analyzer: A pre-processing module parses the raw text files into a structured Control Data Flow Graph (CDFG) and maps the timing and area bottlenecks reported by the EDA tools directly to specific lines of code.
  3. Prompt Generator: This module translates the annotated CDFG and relevant code snippets into a concise, context-rich prompt for the LLM.
  4. LLM Querying: LLMs (such as DeepSeek-v3, GPT-4o, or Qwen3-coder) are prompted to generate code revisions in a standard diff format.
  5. Revision and Rectification: The framework applies the patch and runs a fast synthesis check to filter out basic syntax errors.
  6. Formal Verification: To ensure the edits are strictly function-preserving, a commercial logic equivalence checking tool (Synopsys Formality) verifies the revised code against the original "golden" design.

To manage the search space efficiently, the framework uses an island-based evolutionary algorithm (inspired by AlphaEvolve) combined with a MAP-Elites archive to maintain both high-quality and diverse design variants.

Datasets

The paper introduces CktEvo, a newly curated benchmark consisting of 11 high-quality, human-reviewed, multi-file Verilog repositories. These designs are sourced from open-source platforms like GitHub and OpenCore, and they span various scales and application domains.

Table 1: Statistics of benchmark designs.

Unlike previous single-file datasets, CktEvo includes complex, pipelined designs like risc (a 42-module RISC CPU) and emerging domains like nn_engine (a neural network engine) and hsm (a hardware security module), providing a rigorous testbed for cross-file reasoning.

Key Insights and Ideas

  • Targeted Bottleneck Analysis is Crucial: LLMs cannot efficiently rewrite entire repositories from scratch. Pinpointing specific bottlenecks using the Graph-based Code Analyzer allows the LLM to make localized, highly effective edits.
  • Delay Optimization Dominates Area Savings: Across all tested models, the framework achieved significantly higher reductions in timing delay than in cell area. This is because the analyzer excels at identifying and exposing critical timing paths to the LLM.
  • Control Logic vs. Standard Interfaces: LLMs are highly effective at optimizing control-intensive designs (like state machines in mem_ctrl or simple_cpu) by flattening deeply nested logic and merging redundant states. However, they provide negligible gains on mature, standardized interface designs (like usb and ethmac), where logic redundancy is already minimal.

Key Results

The authors evaluated their framework using three state-of-the-art LLMs across both open-source (Yosys) and commercial (Synopsys Design Compiler) toolchains.

Open-Source Toolchain Results

Using Yosys and the Skywater 130nm library, all three LLMs successfully optimized the entire benchmark suite without any human intervention.

Table 2: Evolution results of different LLMs with open-source toolchain

DeepSeek-v3 led the performance, achieving a geometric mean ADP reduction of 10.50% (driven by a 7.92% reduction in delay and a 2.80% reduction in area). Notably, it achieved a 34.97% timing improvement on the hardware security module (hsm).

Commercial Toolchain Results

When subjected to a commercial toolchain with aggressive optimization flags enabled (compile_ultra), the headroom for improvement was smaller but still present.

Table 3: Evolution results with commercial toolchain

DeepSeek-v3 achieved an average ADP reduction of 1.77%. While numerically small, further reducing the critical path delay of the audio design by 10.61% on top of a commercial-grade baseline represents a valuable gain in industrial settings where PPA margins are incredibly tight.

Limitations and Future Work

  • Overlapping with Synthesis Capabilities: Many of the local optimizations performed by current LLMs (e.g., coding style adjustments, simple logic flattening) duplicate what advanced commercial synthesis tools can already achieve automatically.
  • Need for High-Level Architectural Shifts: To unlock more substantial PPA gains, future evolution agents must move beyond module-level rewrites and attempt global architectural transformations, such as altering entire data pipelines or memory structures across multiple files.
  • Lack of Environment-Specific Knowledge: LLMs currently lack precise awareness of specific Process Design Kits (PDKs) and EDA toolchain behaviors. The authors suggest that future work should focus on mining explicit "optimization rules" using domain-adaptive post-training or Retrieval-Augmented Generation (RAG).

Summary updated

BibTeX
@misc{shi2026cktevo,
  author = {Zhengyuan Shi and Jingxin Wang and Tairan Cheng and Changran Xu and Weikang Qian and Qiang Xu},
  title = {{CktEvo: Repository-Level RTL Code Benchmark for Design Evolution}},
  year = {2026},
  eprint = {2603.08718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.08718},
}
Figure