AI
New Framework Enables LLMs to Generate and Verify Hardware Code More Reliably
Researchers introduce Veri-Sure, a multi-agent system that combines temporal analysis and formal verification to improve AI-generated Register-Transfer Level code for hardware design.
A team of computer scientists has developed a novel framework designed to address persistent challenges in using large language models for hardware description language code generation. The approach tackles fundamental mismatches between how LLMs reason about software and how they must handle the precise, cycle-level timing requirements of hardware design.
The Problem With LLM-Generated Hardware Code#
Register-Transfer Level (RTL) code describes the concurrent behavior of digital circuits with strict timing constraints—a fundamentally different task from software generation. Traditional LLM-based approaches struggle because they rely heavily on simulation-based testing that provides limited feedback, while debugging attempts often require regenerating entire files, introducing errors in the process. As repairs cycle through multiple agents, the original design intent can drift and become distorted.
How Veri-Sure Works#
Veri-Sure introduces a multi-agent collaboration model that establishes a shared "design contract" to keep all agents aligned on the intended behavior. When corrections are needed, the system employs static dependency slicing—a precision-guided repair mechanism that modifies only the problematic code sections rather than rewriting everything. This targeted approach minimizes the introduction of new errors.
The framework integrates a verification pipeline that combines two complementary techniques:
- Trace-driven temporal analysis: examining execution traces to catch timing-related bugs
- Formal verification: proving correctness properties mathematically
Expanded Benchmarking and Results#
The researchers also created VerilogEval-v2-EXT, an extended evaluation suite that adds 53 industrial-grade hardware design challenges to the original benchmark, organized by difficulty level. Testing showed that Veri-Sure outperforms standalone LLMs and previous multi-agent systems in generating hardware code that passes formal verification checks.
The work represents progress toward making AI-assisted hardware design more practical and trustworthy for real-world applications.

