CPU-Eval: Evaluating Large Language Models for CPU Hardware Code Generation
Ishihara-Masuda-Lab released CPU-Eval, a 339-problem benchmark spanning six RISC-V cores to test large language models on full-system hardware code generation.
By Dillip Chowdary • Nov 30, 2026 • Source: github.com

At a glance
- Product
- CPU-Eval benchmark
- Scope
- 339 problems across 6 RISC-V processor designs
- Languages
- SystemVerilog, Chisel, and SpinalHDL
- License
- Apache License 2.0
- Availability
- GitHub repository and DATE 2027 proceedings
- Host requirements
- x86_64 Linux with SingularityCE or Apptainer
In this post
Ishihara-Masuda-Lab released CPU-Eval, an open-source benchmark of 339 hardware description language generation problems to evaluate large language models on RISC-V design. According to github.com's report, the framework tests models across six open-source processor architectures implemented in SystemVerilog, Chisel, and SpinalHDL. The platform validates candidate submodules by embedding them into full cores, running regression suites, and comparing execution traces against reference models.
This report details the benchmark architecture, containerized test workflow, verdict classification taxonomy, and academic release details. The platform serves chip designers and artificial intelligence researchers seeking rigorous full-system verification standards for automated hardware generation. By moving beyond isolated syntax checks toward full instruction trace validation, the suite establishes verifiable criteria for deploying language models in microprocessor development.
01Six RISC-V processors across three hardware languages
The benchmark covers 339 submodule generation tasks distributed across six functional RISC-V microarchitectures ranging from microcontrollers to application cores. Hardware targets include the Western Digital VeeR EL2 four-stage pipeline, the embedded Ibex core, and the FPGA-oriented VexRiscv design. Complex cores feature the Linux-capable CVA6 alongside out-of-order superscalar architectures like Berkeley Out-of-Order Machine and Rift2Core.
| CPU | Description | HDL | Problems | | BOOM | 64-bit out-of-order, Linux-capable | Chisel | 91 | | CVA6 | 32/64-bit in-order, Linux-capable | SystemVerilog | 93 | | Rift2Core | 64-bit out-of-order, M/S/U modes | Chisel | 48 | | VeeR EL2 | 32-bit in-order, 4-stage pipeline | SystemVerilog | 71 | | VexRiscv | 32-bit in-order, FPGA-oriented | SpinalHDL | 16 | | Ibex | 32-bit in-order, embedded | SystemVerilog | 20 |
Problem allocations reflect hardware complexity across diverse ecosystems, with CVA6 accounting for 93 problems and BOOM encompassing 91 tasks. The remaining challenges divide among VeeR EL2 with 71 tasks, Rift2Core with 48 tasks, Ibex with 20 problems, and VexRiscv with 16 tasks. Hardware description languages span SystemVerilog, Chisel, and SpinalHDL, ensuring multi-language coverage across distinct register-transfer design styles.
02Reference model verification and trace divergence logs
Rather than evaluating isolated module interfaces with shallow unit tests, the framework embeds candidate submodules directly into target processor codebases. The testing harness compiles the complete core and executes identical regression test programs used by original processor designers during architectural verification. This end-to-end integration ensures that generated hardware components satisfy full-chip timing constraints, interface protocols, and functional requirements.
During test program execution, the framework compares dynamic architectural state transitions step by step against an authoritative reference instruction set architecture model. When processor simulation deviates from ground truth, comparison logs isolate the instruction address and architectural register update where divergence occurred. Extended test suites built into the framework uncover edge cases and timing bugs that baseline upstream test suites miss.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Container image creation and local evaluation pipeline
Running the test suite requires an x86_64 Linux host with network connectivity, Git, Bash, and Python 3.12.3 with venv and pip. System toolchains must provide riscv64-unknown-elf GCC 13.2.0, binutils 2.42, and either SingularityCE or Apptainer supporting fakeroot builds. Engineers run the workflow through standardized command-line tools provided in the repository root directory.
- Prepare container environment Run tools/prepare_environment.py with the target CPU argument, output directory, and work root to assemble the SingularityCE or Apptainer image.
- Format candidate prompt Provide the CPU specification markdown document to the model as a user prompt without system instructions and store the resulting code.
- Execute test runner Invoke tools/evaluate_submission.py with run to compile the generated submodule and inspect the hardware execution trace logs.
Note: Evaluation compiles and executes untrusted model outputs directly on the host machine. Engineering teams must run evaluation jobs inside isolated environments, such as dedicated virtual machines or sandboxed infrastructure, to safeguard host resources from unverified code behaviors.
04Parallel cluster submission and failure verdict classifications
The harness supports both individual test invocations and distributed batch workflows across compute clusters. Users can evaluate multiple candidate completions per problem using the prepare command, which bundles generated answers into structured jobs for parallel cluster runtimes like Genkai. Automated generation scripts demonstrate sampling ten responses per problem through Ollama Cloud to calculate statistical pass@k reliability metrics across entire processor configurations.
Grading outcomes classify every candidate submission into explicit, informative categories. Submissions receive a PASS verdict only when hardware execution matches reference traces across all regression programs, forming the sole criterion for pass@k scoring. Defective answers trigger precise diagnostic outcomes like FAIL_CANDIDATE_COMPILE or FAIL_TRACE_MISMATCH, while system disruptions such as memory exhaustion yield INVALID verdicts with root causes.
05Upstream source reconstruction and academic research release
The repository provides full reproducibility by packaging all 339 problem statements alongside extraction tooling. By executing tools/reconstruct_problem_statements.py with a local source cache directory, developers can automatically rebuild every design problem from recorded upstream processor repositories and verify cryptographic integrity against bundled specification files. Directory structures maintain clean separation between CPU configurations, evaluation scripts, orchestration examples, and third-party license notices.
Authored by Yuisei Iwata, Yutaka Masuda, and Tohru Ishihara, the project appears in the 2027 Design, Automation and Test in Europe Conference proceedings, with preliminary findings documented in arXiv preprint 2611.32405. The benchmark code and documentation carry an Apache License 2.0 under copyright by Ishihara-Masuda-Lab. Research funding support stems from the JST Research and Development Program for Next-generation Edge AI Semiconductors under Grant Number JPMJES2511.
Frequently asked questions
Which processor designs are evaluated in CPU-Eval?
CPU-Eval includes six RISC-V processors: BOOM, CVA6, Rift2Core, VeeR EL2, VexRiscv, and Ibex. They range from small embedded microcontrollers to 64-bit Linux-capable out-of-order cores.
How does CPU-Eval verify generated hardware code?
It integrates the generated submodule into the complete processor and runs upstream regression test programs. Execution traces are dynamically compared against a reference instruction set architecture model to detect trace mismatches.
What toolchain requirements are needed to run the evaluator?
The evaluation harness requires an x86_64 Linux host with Python 3.12.3, riscv64-unknown-elf GCC 13.2.0, binutils 2.42, and SingularityCE or Apptainer with fakeroot support.
Under what license and academic venue is CPU-Eval published?
CPU-Eval is released under the Apache License 2.0 by Ishihara-Masuda-Lab. The peer-reviewed paper is accepted as a regular paper at the DATE 2027 conference, with a preprint on arXiv.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement