Veri-Sure : A Contract-Aware Multi-Agent Framework with Temporal Tracing and Formal Verification for Correct RTL Code Generation

Jiale Liu, Taiyu Zhou, Tianqi Jiang · 2026

Read Veri-Sure : A Contract-Aware Multi-Agent Framework with Temporal Tracing and Formal Verification for Correct RTL Code Generation by Jiale Liu, Taiyu Zhou, Tianqi Jiang (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-19747.txt.

Introduction

Jiale Liu, Taiyu Zhou, and Tianqi Jiang build a framework for designing computer chips with language models. Models can now write RTL code, the register-transfer level description of a chip. Getting that code silicon-grade correct is the bottleneck. Simulation-based checks miss cases, iterative debugging can introduce regressions, and repairs can hallucinate.

Their framework, Veri-Sure, attacks all three problems. It is contract-aware, tying generation to formal statements of intent. Multiple agents share the work, and a temporal tracing system tracks changes over time. Formal verification then checks the result with proof rather than tests alone. The aim is chip designs that stay correct through the whole repair loop. The work targets a costly pain point in electronic design automation.

Catalog record

CREATORJiale Liu, Taiyu Zhou, Tianqi Jiang
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE72 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2601-19747

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Veri-Sure : A Contract-Aware Multi-Agent Framework with Temporal Tracing and Formal Verification for Correct RTL Code Generation Jiale Liu, Taiyu Zhou, Tianqi Jiang Abstract In the rapidly evolving field of Electronic Design Automation (EDA), the deployment of Large Language Models (LLMs) for Register-Transfer Level (RTL) design has emerged as a promising direction. However, silicon-grade correctness remains bottlenecked by (i) limited test coverage and reliability of simulation-centric evaluation, (ii) regressions and repair hallucinations introduced by iterative debugging, and (iii) semantic drift as intent is reinterpreted across agent handoffs. In this work, we propose Veri-Sure , a multi-agent framework that establishes a design contract to align agents’ intent and uses a patching mechanism guided by static dependency slicing to perform precise, localized repairs. By integrating a multi-branch verification pipeline that combines trace-driven temporal analysis with formal verification consisting of assertion-based checking and boolean equivalence proofs, Veri-Sure enables functional correctness beyond pure simulations. We also introduce VerilogEval-v2-EXT , extending the original benchmark with 53 more industrial-grade design tasks and stratified difficulty levels, and show that Veri-Sure achieves state-of-the-art verified-correct RTL code generation performance, surpassing standalone LLMs and prior agentic systems. Code and dataset are available at GitHub . 1 Introduction The explosive demand for computing power in the era of artificial intelligence and digital transformation continues to push chip designs to billions of transistors, raising the bar for productivity and correctness in Electronic Design Automation (EDA). In practice, the central artifact in the design flow is the Register-Transfer Level (RTL) description, typically written in Hardware Description Languages (HDLs) such as Verilog and SystemVerilog, which specifies clocked state and the combinational logic between registers, precisely capturing concurrent circuit behavior under strict timing constraints and enabling downstream synthesis and implementation. As a result, writing high-quality, synthesizable RTL remains an indispensable yet costly step in modern chip development. Large language models (LLMs) have recently made rapid progress in software code generation ( Jiang et al. 2026 ; Guo et al. 2024 ; Huang et al. 2025 ) , suggesting a compelling opportunity to generate RTL code directly from natural-language specifications. However, RTL code generation poses requirements that are completely different from software, since HDL describes concurrent hardware behavior with strict cycle-level timing, protocol semantics, and hierarchical structural constraints ( Akyash & Mardani Kamali 2025 ) . As a result, general-purpose coding models, which are optimized for autoregressive, sequential text generation, often achieve surface-level syntactic correctness yet fail to reliably preserve temporal intent, handshake protocols, or globally consistent structure ( Thakur et al. 2024 ) . These failures are worsened by the scarcity of high-quality HDL data relative to software corpora, which limits the models’ exposure to high-quality RTL patterns and actual verification-driven development practices ( Liu et al. 2024 ; Zhu et al. 2025 ) . To bridge this gap, recent methods have strengthened LLM-based RTL code generation through domain adaptation and tool augmentation, including supervised fine-tuning (SFT) ( Thakur et al. 2024 ; Lu et al. 2024 ; Liu et al. 2024 ) and reinforcement learning (RL) ( Zhu et al. 2025 ; Min et al. 2025b ) on curated HDL corpora, retrieval of reference implementations ( Gao et al. 2024 ; Liu et al. 2023 ) , and tool-in-the-loop prompting with simulation feedback ( Thakur et al. 2023 ; Ho et al. 2025 ; Zhao et al. 2025 ) . While these techniques improve compile rates and module-level functional pass rates compared to baselines, they remain insufficient for industrial-scale RTL blocks where correctness depends on subtle temporal corner cases and multi-iteration refinements. In particular, we identify that existing LLM-based pipelines are still bottlenecked by (i) limited test case coverage and code reliability due to simulation-centric evaluations, (ii) regression risk, potential hallucinations, and inefficiency caused by whole-file regeneration during debugging, and (iii) semantic drift as cycle-accurate intent is gradually reinterpreted across iterations or agent handoffs. Given that hardware bugs can survive simulation and lead to costly tape-out failures, an effective RTL code generation system should not only be able to generate HDL code but also independently perform verification, debugging to ensure the realiability and correctness of the whole design. Moreover, progress toward industrial-grade RTL code generation is difficult to measure with existing public benchmarks. Widely used datasets such as VerilogEval-v2 ( Pinckney et al. 2025 ) are dominated by short, pedagogical modules and under-represent key industrial needs like advanced arithmetic units, communication protocols, buffer/memory control, Clock Domain Crossing (CDC) related patterns, and pipeline-style designs. They also lack difficulty stratification for diagnosing the failure modes of systems. To address these challenges, we propose Veri-Sure , a contract-aware multi-agent framework with trace-driven temporal analysis and formal verification. Veri-Sure first distills the natural language specification into a structured design contract that fixes interface semantics and cycle accurate intent, then uses this contract as the shared source of truth across agents. It then generates candidate RTL code and validates it through simulation. When simulation fails, Veri-Sure performs diagnosis using the temporal analysis and contract derived formal checks, including assertion checking and Boolean equivalence proofs. Guided by the diagnosis, it applies dependency-slicing-guided patching to perform precise, localized repairs, avoiding unstable whole file rewrites. Finally, we introduce VerilogEval-v2-EXT , which extends VerilogEval-v2 with 53 industry-grade tasks and a structure-based difficulty level classification to enable finer-grained evaluation. Our main contributions are summarized as follows: • We design Veri-Sure , a multi-agent framework for RTL code generation that tightly couples LLM code synthesis with an automated generate-verify-debug loop, leveraging simulation, trace-driven temporal analysis, and formal verification. • We propose a dependency-slicing-guided patching mechanism that leverages static dependency slicing over signal relationships to localize failing behaviors and apply precise, minimal edits, avoiding costly whole-file regeneration and reducing regression risks and repair hallucinations. • We integrate a multi-branch verification and debugging pipeline that goes beyond simulation by combining trace-driven temporal analysis with formal verification, including assertion-based checking and Boolean equivalence proofs, improving overall code reliability and correctness. • We introduce VerilogEval-v2-EXT , extending the original benchmark with expanded task coverage and stratified difficulty levels, and demonstrate state-of-the-art verified-correct RTL code generation performance against standalone LLMs and agentic baselines. 2 Related Work 2.1 Automatic RTL Code Generation Early studies explored open-loop RTL code generation with general-purpose LLMs via zero-shot or few-shot prompting. Systems such as ChatEDA ( Wu et al. 2024 ) and ChipNeMo ( Liu et al. 2023 ) demonstrated the promise of natural-language-to-RTL workflows, but also highlighted a recurring gap: models may produce syntactically plausible Verilog code while violating cycle-accurate behavior, protocol semantics, or synthesizability constraints. To improve domain alignment, subsequent work moved beyond vanilla prompting toward domain-adapted training and generation scaffolding. Fine-tuning on curated HDL corpora, as demonstrated by VeriGen ( Thakur et al. 2024 ) and RTLLM ( Lu et al. 2024 ) , improves syntax validity and basic module-level functionality. RTLCoder ( Liu et al. 2024 ) further filters examples through verification to reduce noisy RTL patterns. BetterV ( Pei et al. 2024 ) introduces a generative discriminator to steer outputs toward more verifiable implementations, while CodeV-R1 ( Zhu et al. 2025 ) couples fine-tuning with multi-level code summarization to improve long-range coherence. Orthogonally, AutoVCoder ( Gao et al. 2024 ) leverages retrieval-augmented generation to condition synthesis on relevant reference designs.

Read the complete text