TL;DR
FVDebug is an automated debugging assistant developed by NVIDIA that uses Large Language Models (LLMs) to pinpoint the root causes of formal verification failures in hardware designs. By transforming flat, complex counter-example waveforms into structured causal graphs and using an agentic exploration strategy, it identifies bugs and generates valid RTL patches in minutes—a process that typically takes human engineers hours or days.
What Problem Does This Paper Address?
Formal Verification (FV) is critical for proving that hardware designs adhere to their specifications, using tools to check properties written as SystemVerilog Assertions (SVAs). However, when a property fails, the tool generates a Counter-Example (CEX)—a complex, cycle-by-cycle trace of signal values showing the violation.
Deciphering these traces is a massive bottleneck, consuming nearly 50% of verification engineers' time. Engineers must manually trace signal dependencies backward through waveforms, cross-reference RTL code, and consult design specs. While LLMs show promise in automation, standard approaches treat waveforms as flat text, leading to high false-positive rates (flagging benign behaviors) and an inability to trace multi-cycle causal chains.
Methods
FVDebug addresses these challenges by emulating the structured, multi-source reasoning of a human expert through a four-stage pipeline:
- Causal Graph Synthesis: Instead of analyzing a flat text trace, FVDebug queries the model checker (e.g., JasperGold) recursively to construct a Directed Acyclic Graph (DAG). Nodes represent specific signal events (
signal@cycle=value), and edges represent immediate causal dependencies. - Graph Scanner: The system performs a "sanity sweep" across the DAG. To combat the LLM's natural confirmation bias (assuming the RTL is always correct or flagging everything as a bug), the authors introduce a novel for-and-against prompting scheme. The LLM must explicitly generate arguments both for and against a signal behavior being suspicious before reaching a conclusion.
- Insight Rover: Acting as a deep-dive agent, the Rover navigates the causal graph using tree-of-thought reasoning. It maintains multiple competing failure hypotheses, dynamically expanding promising paths and pruning weak ones based on cycle-accurate evidence.
- Fix Generator & Report: Top-ranked hypotheses are passed to an ensemble of code-generation strategies. The resulting RTL patches undergo multi-level validation (substring matching, whitespace normalization) against the codebase to ensure syntax correctness and applicability.
Datasets
The authors evaluated FVDebug across three distinct sets of hardware failures:
- SVA-Eval-Human: A curated benchmark of 38 real hardware debugging challenges across diverse designs, complete with human-verified ground truth fixes.
- CVA6 RISC-V Processor Failures: Two highly complex, multi-module processor bugs (MMU Ghost Response and LSU Transaction ID Mismatch) originally discovered via automated formal verification tools.
- Proprietary Industrial Case Studies: Two production-scale NVIDIA designs consisting of over 550,000 lines of RTL code, testing the tool against real-world testbench errors and missing constraints.
Key Insights and Ideas
- Causality Over Chronology: Treating a counter-example as a flat sequence of temporal events performs poorly. Explicitly structuring the trace into a causal graph is fundamental to accurate root-cause identification.
- Forced Dual Perspectives: Forcing the LLM to argue both sides (for-and-against prompting) dramatically improves ranking consistency and fix accuracy by breaking the path of least resistance (confirmation bias).
- Agentic Search Efficiency: The Insight Rover's selective exploration reduces the node search space by over 90% compared to standard breadth-first search (BFS), making the analysis of large industrial designs computationally tractable.
Key Results
FVDebug demonstrates substantial improvements over unstructured baselines and ablated versions of the framework:
- Benchmark Performance: On the
SVA-Eval-Humanbenchmark, the full FVDebug pipeline achieved a 95.6% root cause hypothesis quality score, alongside a 71.1% Pass@1 and 86.8% Pass@5 functional fix rate (where the generated patch successfully cleared formal verification). - Scalability to Complex Designs: On the CVA6 processor design, FVDebug successfully navigated a 20-level deep causal graph to correctly identify the root cause.
- Industrial Application: For production-scale designs exceeding half a million lines of code, FVDebug automatically traced dependencies up to 15 levels deep, pinpointing the exact testbench errors and missing constraints in under 7 minutes.
Limitations and Future Work
While FVDebug excels at identifying root causes and fixing localized bugs, automated fix generation for complex, multi-line, or multi-module architectural issues (such as those in advanced processor pipelines) remains an open challenge.
Moving forward, the authors propose extending this causal graph methodology to simulation-based verification. Instead of relying on formal property failures, the graph could be constructed by tracing backward from signal mismatches against a golden reference model, unifying debugging workflows across the entire hardware design lifecycle.
Summary updated