VeriPilot: An LLM-Powered Verilog Debugging Framework

Yihan Wang, Cheng Liu, Jiazheng Zhang, Lei Zhang, Long Cheng, Xiaowei Li, Huawei LiarXiv 2026

Here is a blog-style summary of the paper VeriPilot: An LLM-Powered Verilog Debugging Framework.

TL;DR

VeriPilot is an automated Verilog debugging framework that mimics human engineers by aligning a buggy hardware design with a high-level "golden" reference model. By combining static analysis graphs with LLM reasoning, it precisely pinpoints internal bugs and generates targeted code repairs, boosting the success rate of models like GPT-4o from 54.3% to 85.71% on complex hardware designs.

What Problem Does This Paper Address?

Debugging Register-Transfer Level (RTL) descriptions in Verilog is notoriously slow and error-prone. While Large Language Models (LLMs) have shown promise in automated code repair, existing approaches usually operate in an "end-to-end" fashion: they feed the LLM a compiler error or an incorrect output waveform and ask it to fix the whole file.

This approach breaks down on complex circuits for two reasons:

  1. Long Dependency Chains: The root cause of a hardware bug is often deeply buried inside intermediate registers or control logic, far away from the final observable output. LLMs struggle to trace these long causal chains.
  2. Context Saturation: As codebases grow, stuffing entire Verilog files into an LLM prompt degrades its reasoning capabilities.

Furthermore, high-level functional specifications describe what a circuit should do but abstract away the low-level hardware details (like pipeline states and intermediate wires), leaving the LLM with no clear reference for what the internal signals should look like.

Methods

VeriPilot bridges this gap by replicating the manual workflow of human hardware engineers. Instead of just looking at final outputs, it looks inside the circuit.

Fig. 1. Overview of the manual debugging methodology. The process initiates with an output comparison between the DUT and the golden model to detect failures. By leveraging aligned signals and variables from both entities, engineers then perform a backward traversal through the circuit’s internal logic hierarchy to isolate and rectify the root cause of the erroneous behavior.

The framework operates as a multi-agent pipeline across four distinct phases:

  1. Simulation & Verification: Co-simulates the Design Under Test (DUT) alongside a high-level executable "golden model" (written in Python or C++) to catch the exact clock cycle where internal behaviors first diverge.
  2. Variable Mapping: To compare the two different languages, VeriPilot aligns the internal variables of the Verilog RTL with the variables of the Python golden model. It uses a multi-view approach combining semantic similarity (via LLM), behavioral similarity (via simulation traces), and structural similarity solved via the Hungarian bipartite matching algorithm.
  3. Bug Localization: Using Control-Data-Flow Graphs (CDFGs) extracted via static analysis, VeriPilot performs a deterministic backward traversal (BackTrace) from the mismatched outputs to isolate a minimal "suspicious region" of code.
  4. Bug Repair: Instead of passing the whole codebase, the Repair Agent constructs a highly localized prompt containing only the suspicious Verilog code snippet paired with its corresponding correct logic from the golden model.
Fig. 2. VeriPilot is an LLM-powered multi-agent Verilog debugging framework. It consists of four phases: (1) simulation & verification to identify the earliest divergent execution state between the DUT and the golden model, (2) variable mapping to align semantically equivalent variables through cross-language CDFGs, (3) bug localization via deterministic backward tracing over aligned dependency graphs, and (4) bug repair using localized debugging evidence to guide LLM-based patch generation. A shared debugging context persistently stores intermediate results and historical debugging information to support iterative multi-round repair.

Datasets

The authors evaluated VeriPilot on two primary benchmarks:

  • The Strider Dataset: A collection of 57 real-world defect-fix pairs from introductory hardware programming assignments.
  • NVIDIA's CVDP (Comprehensive Verilog Design Problems) Benchmark: Specifically, the cid16 Design Verification subset. This is a significantly more challenging benchmark featuring complex, multi-location bugs, missing ports, and functional omissions in industrial-style designs.

Key Insights and Ideas

  • Decomposing the Search Space: End-to-end debugging forces the LLM to guess blindly. Aligning internal states with a golden model breaks a massive, ambiguous search space down into small, localized, and easily verifiable chunks.
  • Tool-Augmentation Beats Raw Reasoning: Rather than letting the LLM hallucinate the bug's location, VeriPilot uses deterministic graph-traversal algorithms on CDFGs to guarantee precise localization. The LLM is reserved for what it does best: semantic alignment and code synthesis.
  • The Power of "What's Right": Providing the LLM with localized examples of the correct behavior (from the golden model) alongside the broken code drastically reduces the ambiguity of the repair task.

Key Results

VeriPilot significantly outperforms traditional automated program repair (APR) tools, standalone LLMs, and state-of-the-art multi-agent hardware assistants like MAGE.

  • NVIDIA CVDP Benchmark: VeriPilot boosted the repair success rate of GPT-4o from 54.3% to 85.71%, and GPT-5 from 74.28% to 91.43%.
  • Localization Precision: On the hardest cases where standalone LLMs failed completely, VeriPilot reduced the code search space by an average of 60.1%, isolating the exact logic cones responsible for the failures.
  • Mapping Accuracy: The multi-view variable alignment strategy improved signal mapping precision from 55.89% (raw LLM baseline) to 80.99%.

Limitations and Future Work

Despite its success, VeriPilot hits a wall in two specific scenarios:

  1. State Representation Mismatches: If the golden model and the RTL use radically different internal architectures, variable mapping fails. For instance, if a golden model tracks time as a single integer but the RTL distributes it across a complex cascade of BCD counter registers, the states cannot easily align.
Example of semantic alignment failure due to architectural differences.
  1. Large-Scale Architectural Omissions: If a bug requires adding entirely new submodules or inserting multi-stage pipelines (rather than fixing local logic expressions), localized debugging evidence is insufficient.

Future work will likely focus on improving cross-abstraction alignment for highly divergent architectures and developing better hierarchical reasoning mechanisms for large-scale structural repairs.

Summary updated

BibTeX
@misc{wang2026veripilot,
  author = {Yihan Wang and Cheng Liu and Jiazheng Zhang and Lei Zhang and Long Cheng and Xiaowei Li and Huawei Li},
  title = {{VeriPilot: An LLM-Powered Verilog Debugging Framework}},
  year = {2026},
  eprint = {2606.23759},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.23759},
}
Figure