LocalV: Exploiting Information Locality for IP-level Verilog Generation

πŸ“… 2026-01-31
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This work addresses three key challenges in industrial-scale IP module RTL code generation: difficulty in understanding long design documents, declining correctness in long-code generation, and complex debugging. To tackle these issues, the authors propose LocalV, a multi-agent framework that introduces a divide-and-conquer strategy grounded in the locality of hardware design information. By hierarchically partitioning documentation, enforcing interface-consistent merging, and employing an AST-guided, locality-aware debugging mechanism, LocalV decomposes long-horizon generation tasks into scalable short-document-to-short-code subtasks. Evaluated on the RealBench benchmark, LocalV achieves a 45.0% functional pass rate, substantially outperforming the current state-of-the-art method at 21.6%, thereby demonstrating its effectiveness and superiority in automated Verilog code generation and debugging.

Technology Category

Application Category

πŸ“ Abstract
The generation of Register-Transfer Level (RTL) code is a crucial yet labor-intensive step in digital hardware design, traditionally requiring engineers to manually translate complex specifications into thousands of lines of synthesizable Hardware Description Language (HDL) code. While Large Language Models (LLMs) have shown promise in automating this process, existing approaches-including fine-tuned domain-specific models and advanced agent-based systems-struggle to scale to industrial IP-level design tasks. We identify three key challenges: (1) handling long, highly detailed documents, where critical interface constraints become buried in unrelated submodule descriptions; (2) generating long RTL code, where both syntactic and semantic correctness degrade sharply with increasing output length; and (3) navigating the complex debugging cycles required for functional verification through simulation and waveform analysis. To overcome these challenges, we propose LocalV, a multi-agent framework that leverages information locality in modular hardware design. LocalV decomposes the long-document to long-code generation problem into a set of short-document, short-code tasks, enabling scalable generation and debugging. Specifically, LocalV integrates hierarchical document partitioning, task planning, localized code generation, interface-consistent merging, and AST-guided locality-aware debugging. Experiments on RealBench, an IP-level Verilog generation benchmark, demonstrate that LocalV substantially outperforms state-of-the-art (SOTA) LLMs and agents, achieving a pass rate of 45.0% compared to 21.6%.
Problem

Research questions and friction points this paper is trying to address.

RTL generation
IP-level design
information locality
Verilog
hardware description
Innovation

Methods, ideas, or system contributions that make the work stand out.

information locality
multi-agent framework
IP-level Verilog generation
hierarchical document partitioning
AST-guided debugging
πŸ”Ž Similar Papers
No similar papers found.
H
Hanqi Lyu
University of Science and Technology of China; SKL of Processors, Institute of Computing Technology, CAS
Di Huang
Di Huang
ICT, CAS
Y
Yaoyu Zhu
SKL of Processors, Institute of Computing Technology, CAS
K
Kangcheng Liu
SKL of Processors, Institute of Computing Technology, CAS; University of Chinese Academy of Sciences
Bohan Dou
Bohan Dou
δΈ­ε›½η§‘ε­¦ζŠ€ζœ―ε€§ε­¦
LLM
Chongxiao Li
Chongxiao Li
ICT, CAS
Computer Architecture
P
Pengwei Jin
SKL of Processors, Institute of Computing Technology, CAS
S
Shuyao Cheng
SKL of Processors, Institute of Computing Technology, CAS
Rui Zhang
Rui Zhang
Institute of Computing Technology, Chinese Academy of Sciences (ICT-CAS)
Computer VisionDeep Learning
Z
Zidong Du
SKL of Processors, Institute of Computing Technology, CAS
Q
Qi Guo
SKL of Processors, Institute of Computing Technology, CAS
Xing Hu
Xing Hu
Institute of Computing Technology, Chinese Academy of Sciences
micro-architectureDeep learning architecture
Yunji Chen
Yunji Chen
Institute of Computing Technology, Chinese Academy of Sciences
processor architecturemicroarchitecturemachine learning