arXiv:2602.00704cs.LG2026-02被引 1

用分块生成和局部性机制,让AI高效写出工业级硬件代码。

QiMeng-ChipV-RTL: Exploiting Information Locality for IP-level Verilog Generation

  • 将长文档拆成小模块,按局部信息分步生成代码。
  • 在真实芯片级测试中,通过率45.0%,远超现有方法的21.6%。
  • 适合需要自动化硬件设计的工程师和研发团队。

RTL代码生成是数字硬件设计中关键但耗时的步骤,传统上需工程师手动将复杂规格转换为数千行可综合的硬件描述语言代码。尽管大语言模型在该领域展现出潜力,现有方法(包括微调的专用模型与高级代理系统)难以应对工业级IP级设计任务。我们识别出三大挑战:(1)处理长而详细的文档,关键接口约束常被淹没在无关子模块描述中;(2)生成长篇RTL代码时,语法与语义正确性随输出长度急剧下降;(3)功能验证需经历复杂的调试循环,依赖仿真与波形分析。为此,我们提出ChipV-RTL,一种利用模块化硬件设计中信息局部性的多代理框架。它将长文档到长代码的生成问题分解为一系列短文档、短代码任务,实现可扩展生成与调试。具体包括层级文档分割、任务规划、局部代码生成、接口一致性合并及基于抽象语法树的局部性感知调试。在RealBench——一个IP级Verilog生成基准上实验表明,ChipV-RTL显著优于现有SOTA模型与代理,通过率达45.0%,对比为21.6%。代码与项目页见https://iprc-dip.github.io/ChipV-RTL/。

原文摘要 · Abstract (English)

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 ChipV-RTL, a multi-agent framework that leverages information locality in modular hardware design. ChipV-RTL decomposes the long-document to long-code generation problem into a set of short-document, short-code tasks, enabling scalable generation and debugging. Specifically, ChipV-RTL 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 ChipV-RTL substantially outperforms state-of-the-art (SOTA) LLMs and agents, achieving a pass rate of 45.0% compared to 21.6%. Code, project page are available at https://iprc-dip.github.io/ChipV-RTL/.

硬件生成LLM应用自动设计

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。