CPU-Eval: A New Benchmark for LLM Hardware Code Generation Reveals True Capability Gaps

The CPU-Eval benchmark uses real CPU design problems to expose significant capability gaps in LLM hardware code generation.
CPU-Eval is a new benchmark of 339 HDL generation problems derived from six real CPU designs, covering SystemVerilog, Chisel, and SpinalHDL across complexity levels from embedded cores to Linux-capable out-of-order cores. Seven advanced LLMs average 45.14 percentage points lower pass@1 than on the near-saturated VerilogEval v2, revealing capability differences masked by high pass rates. The study also finds lower pass rates for submodules with more lines of code and for CPUs using less common HDLs, highlighting the importance of fine-grained modular design and prior validation of HDL ecosystems for LLM-assisted hardware development.
Why Do We Need a New Benchmark for Hardware Code Generation?
Hardware Description Language (HDL) generation is an important application of large language models (LLMs) in hardware development. Benchmarks such as VerilogEval have driven rapid progress in this field, but recent systems have surpassed 90% pass rates on VerilogEval, meaning the benchmark is approaching saturation and can no longer distinguish further improvements in model capability. To provide a more challenging target, researchers have introduced CPU-Eval—a benchmark comprising 339 HDL generation problems derived from six real CPU designs.

CPU-Eval problems come from real CPU designs, including tape-out series, covering everything from small embedded cores to out-of-order cores capable of running Linux, and spanning multiple HDLs such as SystemVerilog, Chisel, and SpinalHDL. Each problem requires the LLM to perform a real CPU development task: generating HDL code.
HDL (Hardware Description Language) is a specialized language for describing the structure and behavior of digital circuits. Unlike general-purpose programming languages, its code ultimately maps to register-transfer level (RTL) circuits. Mainstream HDLs include Verilog, SystemVerilog, and higher-abstraction-level languages like Chisel (a Scala-based hardware construction language) and SpinalHDL. HDL generation tasks require models to understand not only syntax but also hardware-specific semantics such as sequential logic, parallel execution, and bit-width inference, making them more challenging than ordinary code generation.
VerilogEval is a widely used HDL generation benchmark that includes tasks converting specifications to RTL code. Its test set is limited in size and the problems are relatively short. As model capabilities have improved, pass rates have exceeded 90%, creating a "ceiling effect"—where score saturation prevents effective discrimination of subtle capability differences between models.
Design and Construction of CPU-Eval
Problem Sources and Coverage
The 339 CPU-Eval problems are extracted from six CPUs covering different application scenarios and complexity levels. The problems involve a variety of CPU functions and are written in three mainstream HDLs. This diversity ensures the benchmark can comprehensively evaluate model performance across different hardware design tasks.
Evaluation Methodology
In CPU-Eval, each problem requires the LLM to generate HDL code. Evaluation uses the pass@1 metric, i.e., the proportion of problems where the model passes the tests on its first attempt. The researchers compared seven advanced LLMs on CPU-Eval and VerilogEval v2 Spec-to-RTL.
pass@1 is a commonly used evaluation metric in code generation, defined as the proportion of problems for which the model generates code only once and passes all test cases. Unlike pass@k (which allows k generations and takes the best), pass@1 more closely reflects the "first-time-right" requirement of real development scenarios and better reflects the reliability of a model's single output. This metric is highly sensitive to the coverage and strictness of test cases, making the test set design of benchmark problems crucial.
Key Findings: True Capability Gaps Exposed
Pass Rates Drop Sharply
Results show that the average pass@1 of the seven LLMs on CPU-Eval is 45.14 percentage points lower than on VerilogEval v2 Spec-to-RTL. This huge gap indicates that VerilogEval's high pass rates mask capability differences between models. CPU-Eval provides a harder task that more realistically reflects model proficiency in complex hardware code generation.
Code Size Negatively Correlated with Pass Rate
CPU-Eval reveals that pass@1 is lower for submodules with more source lines of code. This suggests that fine-grained modular design may be more effective in LLM-assisted hardware generation. Breaking complex designs into smaller modules can reduce generation difficulty and improve model success rates.
Fine-grained modular design refers to splitting complex CPU designs into small, functionally independent submodules with clear interfaces (such as ALU, decoder, register file, etc.), keeping each module's line count low. This practice has long benefited reuse and verification in traditional hardware engineering, and in LLM-assisted generation scenarios it also reduces the context length and logical complexity of a single generation task, making it easier for the model to produce correct code in one shot and significantly improving pass@1.
HDL Popularity Affects Performance
The study also found that pass@1 is lower for CPUs written in less common HDLs. This means designers should verify whether a model is sufficiently proficient in the HDL they use before deploying LLM-assisted development. Differences in ecosystem and training data across HDLs may lead to varying model performance.
Implications for Hardware Development Practice
CPU-Eval is not just a benchmark; it also provides important guidance for hardware development practice. First, it emphasizes the value of modular design: for complex CPU designs, splitting functionality into fine-grained submodules can improve the pass rate of LLM-generated code. Second, it reminds designers to pay attention to HDL choice: if a project uses a niche HDL, LLM capability should be carefully evaluated. Finally, CPU-Eval provides a more challenging test platform for future research, driving continued progress of LLMs in hardware code generation.
Conclusion
CPU-Eval fills a gap in existing benchmarks, revealing the true capability gaps of LLMs in hardware code generation through real CPU design problems. Its multi-HDL, multi-complexity problem setup provides a more comprehensive perspective for evaluating and improving models. As LLMs play an increasingly important role in hardware development, such benchmarks will help researchers and engineers more accurately grasp the boundaries of model capability and drive the field forward.
One-line Summary
The CPU-Eval benchmark uses real CPU design problems to expose significant capability gaps in LLM hardware code generation.
Paragraph Summary
CPU-Eval is a new benchmark comprising 339 HDL generation problems derived from six real CPU designs, covering three hardware description languages—SystemVerilog, Chisel, and SpinalHDL—and spanning complexity levels from embedded cores to Linux-capable out-of-order cores. The average pass@1 of seven advanced LLMs on this benchmark is 45.14 percentage points lower than on the near-saturated VerilogEval v2, revealing model capability differences masked by high pass rates. The study also finds that pass rates decrease as submodule line counts increase, and are lower for CPUs using less common HDLs, suggesting that fine-grained modular design and prior validation of HDL ecosystems are crucial for LLM-assisted hardware development.
Related articles

ChatGPT Plus Top-Up in China: Third-Party Website Recharge That Supports WeChat Pay and Alipay, No Overseas Card Needed
A Bilibili creator tests ChatGPT Plus top-up methods in China: comparing third-party website recharge, direct credit card, and mobile in-app purchase, with a full walkthrough of password-free WeChat/Alipay recharge and an analysis of Session credential and payment risk-control risks.

6GB Delivers Opus-Level Performance: Bonsai 2.5 27B Hands-On Test
Prism ML releases Ternary Bonsai 2.5 27B: ternary quantization brings it to just 5.9GB, runnable on a single consumer GPU while retaining 262k context and vision. Hands-on agentic benchmarks approach full-precision Qwen 3.8 27B, exceeding 150 tokens/s on a 4090, with impressive frontend and dashboard results, though game development and long tasks remain weak spots.

System Exchange Spawns an Offbeat Journey to the West: Why This Comedy Series Works
A Bilibili comedy short series reimagines Journey to the West with a system-exchange premise, as the protagonist challenges Sun Wukong, Erlang Shen, and other classics.