RealBench: Benchmarking Verilog Generation Models with Real-World IP Designs

Pengwei Jin, Di Huang, Chongxiao Li, Shuyao Cheng, Yang Zhao, Xinyao Zheng, Jiaguo Zhu, Shuyi Xing, Bohan Dou, Rui Zhang, Zidong Du, Qi Guo, Xing HuarXiv 2025 · DOI

Introduction

As Large Language Models (LLMs) continue to revolutionize software engineering, their application to hardware description languages like Verilog has become a major area of research. However, a significant gap exists between academic benchmarks and industrial requirements. RealBench is a new, high-stakes benchmark designed to move Verilog generation out of the "toy problem" phase and into the realm of real-world hardware engineering. By utilizing complex IP designs—such as CPUs and SD controllers—and rigorous formal verification, RealBench reveals a sobering reality: even state-of-the-art models like OpenAI’s o1-preview struggle significantly with system-level hardware design.

The Gap in Hardware Benchmarking

Existing benchmarks for Verilog generation often rely on "flat" designs—isolated modules typically under 50 lines of code—and simple natural language prompts. While LLMs show promise on these simplified tasks, they do not reflect actual industry workflows.

In practice, hardware design is inherently hierarchical, involving complex dependencies, multi-modal specifications (including diagrams and tables), and strict timing or area constraints. Furthermore, current evaluation metrics often depend on basic testbenches. A piece of code might pass a simulation with limited coverage but still contain subtle logic bugs that only formal verification can uncover. RealBench addresses this by providing a more rigorous "yardstick" for LLM capabilities.

Methodology: Beyond Simple Simulation

RealBench bridges the gap between academic evaluation and industrial reality through three primary pillars:

  1. Complexity and Hierarchy: Instead of isolated tasks, RealBench utilizes four real-world open-source IP cores: an AES encoder/decoder, an SD card controller, and the Hummingbirdv2 E203 RISC-V CPU.
  2. Multi-modal Specifications: The benchmark includes manually authored design specifications featuring block diagrams, data flow charts, and state transition tables, mimicking the documentation used by human engineers.
  3. Rigorous Verification Pipeline: To ensure correctness, the authors implemented a two-stage verification process. First, testbenches are developed to achieve 100% line coverage. Second, formal equivalence checking (using tools like Yosys and JasperGold) is introduced to mathematically prove that the generated code matches the golden reference.
The RealBench verification pipeline compares traditional simulation-based testing against a more rigorous formal verification approach.

Dataset Characteristics

The RealBench dataset consists of 60 module-level tasks (averaging 241 lines of code) and 4 system-level tasks (averaging 3,537 lines of code). When compared to existing benchmarks like RTLLMV2 or VerilogEvalV2, RealBench designs are significantly more complex, containing roughly 4.3x more lines of code and 10.8x more circuit cells. This increased scale tests the model's ability to handle long-context dependencies and hierarchical instantiation.

Key Insights: The Formal Reality Check

One of the most critical findings from RealBench is the "silent failure" rate. The authors discovered that 44.2% of the code generated by GPT-4-Turbo that passed traditional testbenches actually failed formal verification. This discrepancy highlights the inadequacy of simulation alone for verifying hardware designs generated by AI.

Distribution of failure modes in LLM-generated Verilog, highlighting that a significant portion of code passing testbenches still fails formal verification.

Other key insights include:

  • Hierarchy as a Barrier: LLMs perform reasonably well on "leaf nodes" (simple, low-level modules) but struggle immensely with higher-level modules that require instantiating and connecting multiple sub-components.
  • Reasoning Model Hallucinations: While models like DeepSeek-R1 excel in math, they showed reduced advantages on RealBench. These models often suffered from severe hallucinations, such as inventing fictitious module headers or port names when faced with complex hierarchies.
  • Vision Limitations: Despite the inclusion of multi-modal inputs, current vision-language models (like GPT-4o-V) showed only marginal improvements over text-only models, suggesting they cannot yet effectively "read" or interpret complex hardware diagrams.

Results: A Sobering Evaluation

The performance of state-of-the-art models on RealBench was striking:

  • System-Level Failure: Every model tested, including o1-preview, GPT-4o, and DeepSeek-V3, scored 0% on system-level tasks.
  • Module-Level Struggle: Even the top-performing model, o1-preview, achieved only a 13.3% pass rate (formal@1) on module-level tasks.
  • The Complexity Gap: While these same models often score 60-80% on older benchmarks, their performance drops precipitously on RealBench, proving that previous benchmarks are no longer challenging enough to drive meaningful progress in the field.

Limitations and Future Work

The authors identify several hurdles for future research:

  • Verification Speed: Formal verification is computationally expensive, making it difficult to integrate into rapid "generate-and-debug" loops.
  • Multi-modal Understanding: There is a clear need for models that can better interpret specialized hardware diagrams and tables.
  • Hierarchical Integrity: Future research must focus on improving how models handle multi-level dependencies without hallucinating interfaces.

RealBench establishes a necessary "hard" target for the next generation of hardware-specific AI models, concluding that while LLMs are useful assistants for small code snippets, we remain far from fully autonomous hardware design.

Summary updated

BibTeX
@misc{jin2025realbench,
  author = {Pengwei Jin and Di Huang and Chongxiao Li and Shuyao Cheng and Yang Zhao and Xinyao Zheng and Jiaguo Zhu and Shuyi Xing and Bohan Dou and Rui Zhang and Zidong Du and Qi Guo and Xing Hu},
  title = {{RealBench: Benchmarking Verilog Generation Models with Real-World IP Designs}},
  year = {2025},
  eprint = {2507.16200},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.16200},
}
Figure