TL;DR
Researchers have developed CodeV-SVA, a specialized family of LLMs designed to automatically generate hardware verification assertions. By using a novel "bidirectional" data synthesis pipeline that grounds assertions in real-world RTL code, their 14B parameter model matches or outperforms massive models like GPT-5 and DeepSeek-R1 on complex hardware verification tasks.
What Problem Does This Paper Address?
In hardware design, SystemVerilog Assertions (SVAs) are the gatekeepers of correctness. They are temporal logic statements used to verify that a design behaves as intended over time. However, writing high-quality SVAs is notoriously difficult, requiring deep expertise in both the design's intent and complex temporal syntax.
While general-purpose LLMs have shown promise in translating natural language (NL) to SVA, they face two major hurdles:
- Data Scarcity: High-quality, real-world SVA datasets are tiny (often just a few thousand examples from textbooks) compared to the massive datasets available for general software code.
- The "Vacuous Truth" Problem: It is hard to automatically validate if a generated SVA is correct. A formal verification tool might report that an assertion "passes," but the assertion could be a meaningless tautology (like
assert property (1'b1)) that doesn't actually check the design's logic.
Methods
The authors propose a four-stage data synthesis and training framework to build a specialized model from the ground up:
- RTL-Grounded Synthesis: Instead of relying on scarce human-written assertions, they use 42,000 open-source RTL designs as "seeds." An LLM analyzes these designs to generate potential natural language properties and their corresponding SVAs, which are then filtered using formal verification tools (JasperGold).
- Bidirectional Selection: This is the "secret sauce." To ensure the NL property and the SVA actually mean the same thing, they perform a round-trip translation: SVA $\rightarrow$ NL $\rightarrow$ SVA'. If the final SVA' is logically equivalent to the original, the data pair is considered high-quality. This catches subtle semantic errors that standard LLM-as-a-judge methods miss.
- Data Quality Refinement: They further refine the 105K pairs by removing trivial examples (difficulty filtering) and using DeepSeek-R1 to add "reasoning trajectories" (Chain-of-Thought) to the training data.
- Supervised Fine-Tuning (SFT): Finally, they fine-tune Qwen3 (8B and 14B) models on this high-quality, 83K-sample synthetic dataset.
Datasets
- Training Data: A newly synthesized dataset of 83,000 NL-SVA-RTL triplets, derived from the CodeV dataset (which contains 165K RTL files).
- Evaluation Benchmarks: The models were tested on FVEval-NL2SVA, which includes both human-written (NL2SVA-Human) and machine-generated (NL2SVA-Machine) assertion tasks.
Key Insights and Ideas
- RTL as a Source of Truth: By grounding the synthesis in actual RTL code, the authors achieved "textbook-level" diversity while scaling the data size by 15x to 66x compared to previous efforts.
- Diversity vs. Scale: As shown in Figure 1, traditional rule-based data augmentation loses diversity as it scales. The RTL-grounded approach maintains high diversity even at large scales.
- Bidirectional Filtering is Essential: The authors found that bidirectional translation improved dataset accuracy from 68% to 96%. It effectively identifies "meaningless tautologies" that pass formal verification but fail to capture the user's intent.
Key Results
The specialized CodeV-SVA-14B model achieved state-of-the-art results, proving that a well-trained smaller model can beat general-purpose giants:
- NL2SVA-Human: Achieved 75.8% (Func.@1), surpassing DeepSeek-R1-671B (74.6%) and GPT-5 (71.8%).
- NL2SVA-Machine: Achieved 84.0% (Func.@1), again beating the larger models.
- Efficiency: The 14B model provides a massive computational and cost advantage over proprietary models while maintaining superior accuracy in this specialized domain.
Limitations and Future Work
While the results are impressive, the authors note a few areas for growth:
- Distribution Gap: There is still a slight performance gap between machine-generated benchmarks and real-world human intent, though their refinement stages significantly narrowed this.
- End-to-End Integration: While the model excels at translating NL to SVA, future work could focus on better integrating this into full "Spec-to-Assertion" pipelines where the model must also extract the initial properties from messy documentation.
- Tool Dependency: The synthesis pipeline relies heavily on commercial formal verification tools (JasperGold), which may limit accessibility for some researchers.
Summary updated