[Paper Review] LocalV: Exploiting Information Locality for IP-level Verilog Generation
LocalV uses a multi-agent, locality-aware approach to IP-level Verilog generation, decomposing long documents into short tasks and achieving higher pass rates than SOTA on RealBench (45.0% vs 21.6%) and CVDP(cid003).
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%.
Motivation & Objective
- Motivation to automate IP-level RTL/Verilog generation to reduce manual engineering effort.
- Investigate whether hardware specifications exhibit information locality that enables short-document to short-code generation.
- Develop a multi-agent framework that partitions documents, plans tasks, generates code fragments, and merges them with interface consistency.
- Enable locality-guided debugging to trace errors back to minimal specification fragments.
Proposed method
- Formulate IP-level Verilog generation as producing a modular Verilog module from a long natural language document.
- Quantify information locality via entropy of the document-to-code relevance distribution for each code unit.
- Develop LocalV with: hierarchical document preprocessing, fragment-based task planning, constrained RTL generation by sub-tasks, fragment merging with interface checking, and AST-guided locality-aware debugging.
- Use a Retriever Agent to fetch localized documentation fragments for each sub-task during planning, generation, and debugging.
- Apply a locality-aware debugging loop that traces waveform/AST errors back to specific document fragments and outputs targeted edit actions.
- Evaluate LocalV on RealBench and CVDP(cid003) against SOTA LLMs and agent-based systems.

Experimental results
Research questions
- RQ1Can IP-level Verilog generation be effectively decomposed into short-document, short-code tasks without information loss?
- RQ2Does locality-aware preprocessing, planning, and debugging improve syntactic and functional correctness for long-context HDL generation?
- RQ3How does LocalV perform compared to state-of-the-art monolithic and agent-based baselines on RealBench and CVDP?
- RQ4What is the impact of indexing, planning, and debugging components on overall performance and efficiency?
Key findings
- LocalV achieves higher functional pass rates than SOTA baselines on RealBench (45.0% vs 21.6%).
- LocalV with Claude-based backbone reaches 75.0% syntactic and 45.0% functional pass rates on ALL tasks in Table 3, outperforming multiple baselines.
- Indexing, planning, and debugging are critical; removing indexing drops overall performance by about 10 percentage points, and removing debugging plus indexing drops to around 20% functional pass rate.
- Retrieval quality for AES IP shows precision and recall both at 0.93 for LocalV variants, indicating reliable fragment localization.
- PPA analysis shows LocalV-generated modules improve area, delay, and power by 2.37%, 4.34%, and 4.63% respectively over Golden RTL.
- Information locality reduces required context for RTL, Merger, and Debugger agents by substantial percentages (e.g., 70.8%, 54.8%, 61.6%).

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.