TL;DR
Passing a unit test doesn't mean your hardware design is actually ready for silicon. VeriScope is a new 568-problem benchmark that evaluates AI-generated Verilog not just on whether it compiles and passes simulation, but on whether its code, waveforms, and synthesized circuit schematics look genuinely verification-ready. While top LLMs score around 84/100 overall, their performance drops into the 70s on complex system-level designs—and nearly 30% of complex submissions that pass simulation still get flagged for needing deeper verification.
What Problem Does This Paper Address?
In software engineering, if an AI writes a Python function that passes all unit tests, you're usually in pretty good shape. In hardware design—specifically when writing Verilog (a hardware description language used to model digital circuits at the Register-Transfer Level, or RTL)—passing a testbench is only the beginning. An executable RTL draft can still fail synthesis (turning code into actual logic gates), trigger lint warnings, or hide subtle timing bugs that a limited testbench never exercises.
Existing Verilog benchmarks like VerilogEval (156 problems) and RTLLM (29–50 designs) mostly focus on small, textbook-style logic blocks and rely heavily on functional pass/fail. They don't test what happens in a realistic first-pass agentic workflow, where an AI receives a natural-language specification, produces a single RTL draft, and engineers must decide whether that draft is solid enough to enter expensive downstream verification.
Methods
VeriScope evaluates models in a strict one-shot, greedy-decoding setting: each model reads a task brief (problem.md) without seeing the testbench, reference code, or compiler feedback, and outputs a single RTL draft. That draft is then graded across three layers:
- Functional Execution ($S_{\text{func}}$): The code is compiled with Icarus Verilog and run against a hidden, pre-validated testbench.
- RTL-Level Assessment ($S_{\text{rtl}}$): A code-specialized LLM judge scores the source code on six dimensions (correctness, synthesizability, best practices, code quality, efficiency, and readability), with deterministic score caps if compilation or simulation fails.
- Artifact-Level Assessment ($S_{\text{art}}$): A vision-language LLM judge (defaulting to Kimi-K2.5, cross-checked with Qwen3-VL and Gemma-3-27B-IT) inspects the RTL alongside simulation waveform images and Yosys-generated circuit schematics—mirroring how hardware engineers visually debug timing and structure.
The final combined score weights functional execution at 60% and the combined quality judges at 40%.
Datasets
The authors introduce VeriScope, a 568-problem hierarchical benchmark curated by experienced hardware engineers. Every problem is a three-file bundle (problem.md, config.yaml, testbench.v) validated against a hidden reference solution (reference.v). The tasks span five difficulty levels:
- L1 (Basic Combinational, 233 tasks): Gates, multiplexers, adders, shifters.
- L2 (Sequential, 134 tasks): Flip-flops, counters, finite-state machines.
- L3 (Module, 106 tasks): ALUs, FIFOs, CRC blocks, SPI controllers, AXI-Lite peripherals.
- L4 (System, 92 tasks): RISC-V CPUs, caches, DMA engines, bus arbiters.
- L5 (Expert, 3 tasks): Dual-core out-of-order SoC, pipelined RISC-V CPU, minimal SoC integration (merged with L4 into a 95-task L4+ slice for quantitative analysis).
Key Insights and Ideas
- The "Execution-Dominated" Leaderboard: The 60/40 combined score correlates almost identically with functional execution alone (Spearman $\rho = 0.998$). So, the artifact judge isn't meant to replace execution on a leaderboard.
- A Post-Simulation Screening Signal: Where the artifact judge shines is after a model passes simulation. Among 2,206 L3–L4+ submissions that passed simulation, 29.6% (653 cases) received an artifact score below 6, flagging them as needing extra verification.
- Why Do Sim-Passing Designs Get Flagged? A manual 100-sample audit of these disagreements revealed 70% testbench coverage gaps (the testbench didn't exercise all paths, such as an edge detector only toggling a signal at the very end of simulation), 12% real RTL defects, and 18% judge hallucinations.
- Visuals Catch What Code-Only Review Misses: Among 10,280 sim-passing cases, 11.6% scored at least 2 points lower on the visual artifact judge than on the code-only judge, driven by waveform anomalies.
- Instruct Beats Thinking One-Shot: Under single-attempt greedy decoding, "Instruct" models outperformed their "Thinking" counterparts across all three matched pairs tested.
Key Results
Across 26 public models and two 32B open-weight calibration baselines:
- Full Benchmark Top-5: Claude Sonnet 4.6 (84.5), GLM-5 (84.1), GPT-5.2 (83.7), Gemini 3 Pro Preview (82.0), and GLM-4.7 (81.3).
- The L3–L4+ Cliff: Top models hold an 85–91 score band on L1–L2, but drop sharply on system-level L4+ tasks. On the L3–L4+ slice, the top-5 shifts to GLM-5 (78.1), Claude Sonnet 4.6 (77.9), GPT-5.2 (76.3), GLM-4.7 (71.8), and Gemini 3 Pro Preview (71.4).
- Backend Hygiene: Across 5,299 sim-passing artifacts, high-quality artifacts (score $\ge 8.5$) passed Yosys synthesis 100% of the time and Verilator lint 89.8% of the time, compared to 95.1% and 61.4% for low-quality artifacts (score $\le 5$).
- Small Models Struggle: Qwen3.5-0.8B compiled only 3.7% of problems (functional score 1.4).
Limitations and Future Work
- Judge Hallucinations: Because 18% of flagged disagreements were judge hallucinations, the artifact score should be used as a human-in-the-loop review-targeting signal, not an automated pass/fail gate.
- One-Shot Setting: The study isolates first-pass generation; chain-of-thought ("Thinking") models and iterative compiler-feedback loops may perform differently under multi-sample or tool-use protocols.
- Small L5 Sample: With only 3 expert-level L5 tasks, L5 is a pilot stress test rather than a standalone statistical tier.
Summary updated