Open-Source LLM-Driven Formal Verification: A Multi-Agent Pipeline for RTL Repair
Abstract
Verification consumes the majority of modern chip design effort, yet the formal verification tools that provide mathematical guarantees of correctness remain expensive and restrictively licensed. While large language models (LLMs) have shown promise for hardware design, existing approaches to RTL repair validate their results through simulation - which exercises only a subset of inputs - or rely on commercial tools, and few combine formal proof with an entirely open-source toolchain. In this paper, we present a multi-agent pipeline that couples an LLM with an open-source formal backend (Yosys, SymbiYosys, and Z3) to repair RTL through counterexample-guided iteration: the framework generates formal properties, verifies the design, and feeds counterexamples back to the LLM until the design is proved correct by k-induction or an iteration budget is exhausted. Through an ALU case study, we show that the pipeline can detect and repair a real functional bug with a formal proof of correctness. Across a six-benchmark suite, one design is repaired reliably, and we characterize four distinct failure modes: bounded-cover vacuity, specification ambiguity, temporal-logic bugs, and multi-property pressure. We frame this work as a feasibility study with a detailed failure analysis, and additionally report a practical limitation of the Yosys bind directive relevant to the open-source formal verification community.
Create a lesson
Metadata
- Categories
- cs.AR, cs.LG, cs.SE
- Comments
- 6 pages, 3 figures
Related papers
CHIA: An open-source framework for principled, agentic AI-driven hardware/software co-design research
Shared title terminologycs.ARAngela Cui, Ferran Hermida-Rivera, Jack Toubes et al.
AgentDRC: Multi-Agent Algorithms for Spatially-Aware Automated DRC Correction
Shared title terminologycs.ARPengju Liu, Nuo Xu, Winson Chen et al.
Inference-Time Scaling in Agentic Hardware Verification Workflows: A Multi-Strategy Characterization Across Protocol Complexity
Shared title terminologycs.ARVikash Kumar
OpenLayout: An Open and Agentic-Driven Platform for Holistic VLSI Physical Design and Benchmarking
Shared title terminologycs.ARQiufeng Li, Sizhe Tang, Quan Cheng et al.
An Open-Source Power Measurement Platform for System-Level Semiconductor Testing
Shared title terminologycs.ARLinus Bantel, Sarah Rottacker, Dirk Pflüger
LACE: Large Language Model Aided Multi-Agent Framework for Agile RISC-V Instruction Extension
Shared title terminologycs.ARPingqing Zheng, Jiayin Qin, Fuqi Zhang et al.