RTL-BenchLS: A Large-Scale Benchmark for RTL Reasoning and Generation with Large Language Models

Jing Wang, Shang Liu, Wenji Fang, Yuchao Wu, Yugao Zhu, Zhiyao XiearXiv 2026

TL;DR

While large language models (LLMs) appear to excel at generating hardware code on existing benchmarks, their performance quickly saturates on simple, single-module tasks. To push the boundaries of AI-assisted hardware design, RTL-BenchLS introduces a massive dataset of over 10,000 formally verified Verilog designs alongside three novel reasoning tasks. Evaluating frontier models on this benchmark reveals a stark reality: even the best models struggle significantly, with top scores reaching only ~23% on natural-language reasoning and ~12% on real-world bug fixing.

What Problem Does This Paper Address?

Large Language Models have shown immense promise in automating hardware design by translating natural language specifications into Register-Transfer Level (RTL) code (e.g., Verilog). However, the benchmarks used to evaluate these models—such as VerilogEval and RTLLM—are suffering from a severe case of ceiling effect. State-of-the-art models already achieve nearly 88% success rates on these datasets.

The underlying issue is twofold:

  1. Scale and Complexity: Existing benchmarks are small (often fewer than 200 designs) and predominantly feature simple, single-module components under 100 lines of code.
  2. The Bottleneck of Manual Curation: Expanding these benchmarks traditionally requires human engineers to manually draft specifications and craft complex testbenches to verify the generated code. This makes scaling up incredibly difficult and expensive.

Without more challenging, diverse, and large-scale benchmarks, the hardware community cannot accurately track LLM progress or identify where these models genuinely fail in real-world engineering workflows.

Figure 1: RTL-BenchLS solves limitations of existing bench- marks by contributing a benchmark with unprecedented scale and a set of self-supervised tasks.

Methods

The authors bypass the manual testbench bottleneck by shifting entirely to an automated, testbench-free evaluation framework powered by industrial formal verification tools. Instead of running simulations with testbenches, they use Logic Equivalence Checking (LEC) for combinational circuits and Sequential Equivalence Checking (SEC) to mathematically prove whether the LLM's code matches the golden reference.

To evaluate deep hardware reasoning rather than simple code generation, the paper introduces three novel tasks:

  • Task 1: Round-Trip Reasoning: The LLM is given an RTL design and must first compress it into an intermediate abstract (e.g., natural language, truth tables, or executable Python/C code). Then, it must reconstruct functionally equivalent RTL from its own abstract.
  • Task 2: Masked-Content Reasoning: A block of code (like an always block) or a sub-module is hidden. The LLM must understand the surrounding context, generate a concise description of the missing logic, and then fill in the blank.
  • Task 3: Repository-Issue Reasoning: Simulating a real debugging scenario, the LLM is given a GitHub issue report and the surrounding repository context to locate and fix a real-world hardware bug.
Figure 5: Task 1: Round-Trip Reasoning.

Datasets

The authors compiled RTL-BenchLS, a dataset containing 10,028 cleanly compiling, formally verified Verilog designs. The data is split into two primary categories:

  • Real-World Designs (S1): 971 modules harvested from 25+ high-impact open-source GitHub repositories (including NVIDIA DLA, RISC-V CPUs like XuanTie C910, and network IPs).
  • LLM-Generated Corpora (S2–S5): 9,057 modules distilled from existing datasets (OriGen, AutoVCoder, etc.), heavily filtered to remove trivial or near-duplicate entries.

Additionally, for the repository-issue task, they curated 108 real-world issue-fix pairs from active hardware repositories, ensuring each fix was a functional change verifiable by formal tools.

Figure 2: Statistics on benchmarks’ design scale, including lines of code (LoC) and number of modules (NoM). RTL- BenchLS contributes significantly more designs, covering a larger range of design scales.

Key Insights and Ideas

  • The "Reasoning Gap": Forcing an LLM to generate an intermediate abstract before writing code (Task 1) causes a massive performance drop compared to direct specification-to-RTL generation. This indicates that while LLMs are good at pattern-matching text to code, they lack robust internal representations of hardware logic.
  • Code Beats Natural Language for Hardware Abstracts: When performing round-trip reasoning, LLMs are significantly better at reconstructing RTL when the intermediate abstract is written in an executable programming language (like Python or C) rather than pure natural language. Software code preserves structural and sequential semantics far better than prose.
  • Context is the Real Bottleneck in Debugging: In the repository bug-fixing task, performance remained low across all design sizes. This reveals that for cross-artifact debugging, the complexity of the code itself isn't the primary hurdle; rather, the difficulty lies in parsing informal issue reports and tracking dependencies across a large repository context.

Key Results

  • Round-Trip Reasoning (Task 1): When using natural language abstracts, the best model (Claude Sonnet 4.5) achieved only a 23.1% pass rate, while weaker models plummeted below 6%. However, when using Python as the intermediate abstract, Sonnet 4.5's success rate climbed to 52.1%.
  • Masked-Content Reasoning (Task 2): Performance was tightly clustered across all models, spanning a narrow 22% to 28% range, with LLaMA-3.3-70B slightly leading the pack at 28.2%.
  • Repository-Issue Fixing (Task 3): This proved to be the most difficult task. Even in a simplified setting where the buggy module was pre-identified, DeepSeek-v3.2 led with just 12.0%, while most other frontier models hovered between 3.7% and 8.3%.

Limitations and Future Work

While Task 3 represents a major step toward evaluating real-world engineering capabilities, the authors evaluated it under a simplified setting where the buggy module was already isolated for the LLM. In a true developer workflow, an AI agent would first have to navigate the entire repository to localize the bug—a challenge the authors flag for future work.

Additionally, the benchmark highlights that current LLM architectures are highly sensitive to prompt styles and compression ratios, suggesting that future research should focus on developing specialized, hardware-aware LLM agents capable of cross-artifact reasoning.

Summary updated

BibTeX
@misc{wang2026rtl,
  author = {Jing Wang and Shang Liu and Wenji Fang and Yuchao Wu and Yugao Zhu and Zhiyao Xie},
  title = {{RTL-BenchLS: A Large-Scale Benchmark for RTL Reasoning and Generation with Large Language Models}},
  year = {2026},
  eprint = {2606.08976},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.08976},
}
Figure