groundy
models & research

Can LLMs Debug Verilog? VeriPilot Puts an Agent on RTL Errors

VeriPilot wraps an LLM in a four-phase Verilog debug loop with a golden reference, lifting GPT-4o repair on CVDP from 54.3% to 85.71% in an unreproduced v1 preprint.

9 min · · · 3 sources ↓

A preprint posted to arXiv on 22 June 2026 argues yes, with caveats. VeriPilot wraps an LLM in a four-phase loop that localizes and repairs Verilog bugs against a golden reference model, lifting GPT-4o’s repair success on NVIDIA’s Comprehensive Verilog Design Problems (CVDP) benchmark from 54.3% to 85.71% per its abstract. The result is author-reported in a v1 preprint with no peer review, and as of 26 June 2026 nothing has been independently reproduced.

How VeriPilot changes RTL debugging

VeriPilot’s central move is to stop feeding the LLM raw compiler errors and output-waveform mismatches, and instead hand it the earliest execution state where the design under test diverges from a known-good reference model. That reframes the task: rather than asking the LLM to infer a fault from a failing waveform, the framework points it at the exact state where the DUT first stopped matching the reference. The distinction matters because inference from waveforms is precisely where prior LLM-for-hardware systems are weakest on large designs.

End-to-end LLM repair loops, as the paper frames its predecessors, give the model coarse feedback: does it compile, does the testbench pass, which output bit flipped. That signal is cheap to produce and thin to reason from. On a design with long control and data dependencies, the model has no reliable way to walk backward from a flipped output to the offending statement, so it guesses. VeriPilot’s bet is that deterministic program analysis can do the backward walk and leave the LLM the smaller job of patching a region once the correct reference logic sits next to it.

The motivation is concrete even if the outcome is not yet proven. Hardware teams spend a large share of verification effort tracing failing waveforms back to source, work that accumulates senior-engineer-hours and does not parallelize well. Whether an agent actually shifts that cost is an empirical question a method paper cannot answer.

How the four-phase debug loop works

VeriPilot runs four phases per repair round, and the persistence of the debugging context across rounds is what separates it from a single-shot repair attempt.

The first phase, simulation and verification, runs the DUT against its golden reference and records the earliest execution state at which the two diverge. Pinning the bug to the first divergence rather than the final output mismatch is the structural advantage the rest of the loop leans on: a final-output mismatch can sit many cycles downstream of the actual fault, so tracing from the first disagreement prunes the search dramatically.

The second phase, variable mapping, reconciles variables across a cross-language control and data flow graph (CDFG). The Verilog design under test is paired with a golden reference model in another language, so the framework first has to establish which variables on each side correspond before it can trace a signal across that language boundary.

The third phase, backward-trace localization, walks deterministically from the divergence point back through the CDFG to a minimal set of suspicious code regions. This is the step that substitutes graph traversal for the long-range LLM reasoning the paper specifically faults in prior systems on large codebases.

The fourth phase, LLM-guided patch generation, hands the model the suspicious regions alongside the matching reference logic and asks for a fix. The debugging context persists across rounds, so the agent carries forward what already failed instead of re-proposing the same patch in the next iteration.

Why structured localization beats raw waveform feedback

The argument for structured localization rests on a specific failure mode: LLMs reasoning backward through long dependency chains in source code are unreliable, and adding more waveform context does not fix that, it just gives the model more noise to reason over. VeriPilot attacks the problem on two coordinated fronts.

The golden reference model gives the agent a ground-truth oracle. Instead of asking the LLM to infer what the hardware should have done from a specification, the framework runs the reference in lockstep and records the exact cycle and signal where the DUT departs from correct behavior. The reference does the semantic alignment; the model is never asked to.

The CDFG gives the framework a graph it can traverse without inference. A control and data flow graph encodes which statements feed which others across both the Verilog and the reference language, so a backward walk from the divergence point reaches a candidate set of statements by traversal rather than by guessing. The LLM sees only that candidate set, paired with the reference logic for the same region.

The combination is the whole bet: deterministic analysis does the part LLMs are bad at, long-range backward reasoning across languages, and the LLM does the part deterministic analysis cannot, writing a patch that fixes the semantic error. Whether that division of labor holds on real industrial RTL, as opposed to benchmark circuits, is the question the paper does not close.

The CVDP results

On CVDP, VeriPilot lifts GPT-4o’s standalone repair success from a 54.3% baseline to 85.71%, per the paper’s abstract. CVDP being an NVIDIA benchmark gives it some credibility as a third-party test set, but here it is run by the authors on their own system, so the result is self-reported even if the circuit suite is not. The 54.3% GPT-4o baseline does isolate the framework’s contribution cleanly: same model, same benchmark, with and without the debug loop. No benchmark beyond CVDP is reported in the abstract or materials available on 26 June 2026.

Where VeriPilot is likeliest to break

The approach is most credible on the kind of designs CVDP contains, and least credible in four situations the benchmark may not represent: large CDFGs that stress context, an incorrect or non-alignable golden reference, designs with no usable reference at all, and real multi-module industrial RTL.

The first pressure point is context. Localization narrows what the LLM sees, but on a large design the CDFG, the cross-language variable map, and the debugging context accumulating across repair rounds can still exceed what the model uses well. The framework trades one saturation problem, raw waveforms, for another, a large structured context, and the paper does not yet characterize where that trade breaks.

The second is the golden reference itself. Every downstream step depends on the reference being correct and alignable to the DUT. A bug in the reference, or a variable mapping that does not hold, localizes to the wrong region. The deterministic trace is only as good as the oracle it traces from.

The third, related, is reference availability. The entire method assumes you already have a trusted golden model. In real verification, producing that reference is often the hard part of the job, and teams without one cannot use this approach at all. That narrows the realistic user base to projects that maintain a parallel software or behavioral model alongside the RTL, which is common but not universal.

The fourth is generalization beyond the benchmark. CVDP is a research benchmark built to measure LLM-for-hardware progress, not taped-out production SoCs. Nothing in the available materials shows the method surviving contact with real multi-module industrial RTL, where the reference may be partial, testbench coverage uneven, and the bug classes wider than functional logic errors. Treat the transfer claim as untested until outside teams report on it.

How VeriPilot compares to prior LLM-for-hardware work

VeriPilot enters a crowded field of LLM-for-hardware systems, and its differentiator is the golden-reference plus CDFG localization mechanism, not a measured head-to-head lead on a shared benchmark.

The prior work splits roughly into two camps. Generation-focused systems attack the problem of producing or seeding Verilog. Repair-focused end-to-end loops iterate against compiler and testbench feedback. VeriPilot’s critique, as the paper frames its predecessors, is that those loops hand the model coarse output-level feedback and then lean on the LLM for long-range dependency reasoning it cannot do reliably.

The competitive framing is the authors’, and exact head-to-head numbers against any prior system are not in the abstract or introduction, so the comparison should be read as VeriPilot’s argument for why a localization-first design is different, not as a measured ranking. The one claim verifiable independently of any benchmark score is that the source code is public at github.com/YihanWn/VeriPilot, which is unusual in this subfield and lets a practitioner reproduce the localization mechanism rather than take the score on faith. The work comes from the State Key Lab of Processors at the Institute of Computing Technology, Chinese Academy of Sciences, with Long Cheng at North China Electric Power University, per the paper.

What to test before trusting VeriPilot on production RTL

A practitioner evaluating VeriPilot should test three things before routing real debugging work through it: whether localization holds on designs outside CVDP, whether the golden reference you actually have is good enough for the variable mapping to be trustworthy, and how the persistent context behaves across long repair rounds.

The broader claim, that this redraws where chip teams spend review time, is speculative. A method paper demonstrating benchmark repair lift is not a deployment study, and the economics argument rests on an assumption the paper does not test: that localization translates into less manual waveform tracing on the designs engineers actually ship. The honest read is narrower. VeriPilot is a credible demonstration, with public source code, that structured localization helps an LLM repair Verilog bugs on a third-party benchmark, reported in a v1 preprint with no peer review and no independent reproduction. What is worth keeping from the paper is the localization mechanism; the headline number is provisional pending outside validation.

Frequently Asked Questions

Why does VeriPilot report two different CVDP success numbers for GPT-4o?

The abstract reports GPT-4o’s CVDP repair rate rising from 54.3% to 85.71%, while the introduction’s contribution bullet cites a smaller gain of 77.1%. The v1 preprint does not reconcile the two figures, and outside reproduction will have to establish which one actually holds.

Was CVDP the only benchmark VeriPilot was evaluated on?

No. The paper also runs VeriPilot on the Strider and CirFix RTL benchmarks, claiming gains in localization accuracy and repair success on designs with deep control and data dependencies. Exact scores for those suites are not in the abstract or introduction, so the 54.3% to 85.71% lift is a CVDP-only headline.

Have prior LLM-for-hardware repair systems been independently reproduced?

Essentially none have. Independent practitioner write-ups of LLM-for-hardware repair are absent, so scores for AutoChip, RTLFixer, MEIC, and VeriDebug have stood on author report without outside confirmation. VeriPilot’s public repository at github.com/YihanWn/VeriPilot at least makes its localization step re-runnable by a third party, which is still rare in this area.

What has to be true about the golden reference for VeriPilot’s localization to work?

The reference must be written in a language the framework can map onto the Verilog DUT through a cross-language control and data flow graph, and the variable mapping must hold across that boundary. The paper does not characterize how the mapping behaves when the reference and DUT use very different internal state representations, which is the case where a misalignment would silently route the backward trace to the wrong region.

How does VeriPilot’s method differ from AutoChip, RTLFixer, and MEIC?

Those three, along with VeriDebug, run end-to-end repair loops driven by compiler and testbench feedback with no golden reference model. VeriPilot instead pairs the design under test with a reference written in another language and walks a cross-language control and data flow graph from the first divergence, so the LLM patches a localized region rather than reasoning backward across long dependency chains. The paper frames this as a structural difference and reports no exact head-to-head scores against any of them.

sources · 3 cited

  1. VeriPilot source code (GitHub) github.com community accessed 2026-06-26