Veri-Sure: A Contract-Aware Multi-Agent Framework with Temporal Tracing and Formal Verification for Correct RTL Code Generation
Veri-Sure is a contract-aware multi-agent framework that ensures silicon-grade RTL correctness by aligning agent intent through design contracts, performing precise localized repairs via static dependency slicing, and validating outputs through a hybrid pipeline of trace-driven temporal analysis and formal verification, all evaluated on the newly introduced industrial-grade VerilogEval-v2-EXT benchmark.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to build a complex, high-speed machine (like a futuristic robot) based on a set of instructions written in plain English. You ask a super-smart AI to translate those instructions into the actual blueprints (code) for the machine.
The problem is, the AI is great at writing sentences, but it often makes tiny, invisible mistakes in the blueprints that only show up when the machine starts running at full speed. In the real world of chip design, these mistakes are expensive—they can cost millions of dollars to fix once the chip is manufactured.
This paper introduces VERI-SURE, a new "team of AI experts" designed to fix these mistakes before the chip is ever built. Here is how it works, using simple analogies:
1. The Problem: The "Telephone Game" and the "Blind Spot"
When you ask a single AI to write code, two things go wrong:
- The Telephone Game: If you ask the AI to fix a bug, it might misunderstand your original goal. It changes the code to fix one thing but accidentally breaks the original intent.
- The Blind Spot: The AI usually checks its work by running a simulation (a test drive). But just like a test drive might miss a rare engine failure that only happens on a specific bumpy road, the simulation often misses tricky timing errors that only happen in the real world.
2. The Solution: A Specialized Construction Team
Instead of one AI doing everything, VERI-SURE sets up a construction crew where every member has a specific job. They all agree on a "Design Contract" first.
- The Architect (The Contract Maker): Before anyone writes a single line of code, this agent translates your messy English instructions into a strict, mathematical "contract." It defines exactly how the machine should behave, what the buttons do, and how fast it should run. This ensures everyone on the team is reading from the same map.
- The Coder (The Builder): This agent writes the actual blueprints (the code) based strictly on the contract.
- The Verifier (The Safety Inspector): This agent runs the test drive (simulation). If the machine fails, it doesn't just say "It broke." It looks at the crash data.
3. The Magic Trick: "Surgical Repair" vs. "Demolition"
When the test drive fails, older AI systems often panic and try to demolish the whole building and start over. This is risky because they might forget how to build the walls correctly.
VERI-SURE uses Surgical Repair:
- The Detective (Trace Analysis): It looks at the "black box" data (waveforms) to find the exact second the machine failed.
- The Surgeon (Dependency Slicing): Instead of guessing, it traces the wires back to find the exact small block of code causing the problem. It isolates that tiny piece.
- The Patch: The AI only rewrites that tiny, broken block. The rest of the machine stays exactly the same. This prevents the "Telephone Game" where fixing one thing breaks another.
4. The Super-Check: "Math Proof" vs. "Test Drive"
Sometimes, a test drive isn't enough to prove a machine is safe.
- The Asserter (The Rule Enforcer): This agent checks if the machine follows the rules of time (e.g., "Did the light turn on exactly when the button was pressed?").
- The Boolean Proofer (The Math Wizard): For the logic parts, this agent doesn't just run tests; it uses mathematical proofs to guarantee that the code cannot possibly be wrong, no matter what inputs you give it. It's like proving a bridge will never collapse using physics equations, rather than just driving a car over it once.
5. The New Test Track: "The Harder Obstacle Course"
To prove their team is the best, the authors built a new, harder obstacle course called VERILOGEVAL-V2-EXT.
- The old tests were like driving in a parking lot (easy, short tasks).
- The new test includes driving through a storm, navigating a maze, and handling heavy cargo (industrial-grade tasks like complex communication protocols and memory control).
The Result
When they put their team (VERI-SURE) on this new, hard obstacle course:
- Standalone AIs (the lone geniuses) got about 76% of the tasks right.
- Old AI Teams (without the surgical repair or math proofs) struggled with the hardest tasks.
- VERI-SURE achieved 93% success, even on the hardest, most complex tasks.
In short: VERI-SURE doesn't just ask an AI to "write code." It creates a disciplined team that agrees on a plan, fixes only the broken parts with surgery, and uses math to prove the fix is perfect, ensuring the final chip works exactly as intended.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.