arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.14550cs.ARcs.AIcs.LGcs.MAcs.PL
收藏

VeriGraphi:一种用于大规模硬件设计的分层RTL生成多智能体框架

VeriGraphi: A Multi-Agent Framework of Hierarchical RTL Generation for Large Hardware Designs

Dept. of Computer Science \& Eng. University of South Florida Tampa, Florida, United States

Sazzadul Islam, Tasnim Tabassum, Hao Zheng

AI总结:

VeriGraphi通过构建基于规范的图谱,解决LLM在生成分层RTL时的结构失真问题,实现可靠生成并保持功能正确性。

摘要:

生成可综合的Verilog代码对于大规模、分层硬件设计仍然是对大型语言模型(LLMs)的重大挑战,因为LLMs难以复制人类专家在将复杂规范转换为RTL时所采用的结构化推理。当被要求生成分层Verilog时,LLMs经常在模块间丢失上下文,生成虚假的接口,制造模块间的连线,并无法维持结构一致性,这些失败随着设计复杂性和规范中包含非正式文本、图表和表格而加剧。为了解决这些挑战,我们提出了VeriGraphi,一种引入了以规范为核心的图谱作为RTL生成流水线的架构基础的框架。VeriGraphi构建了一个HDA,即一个结构化的图谱,明确编码模块层次、端口级别接口、连线语义和模块间依赖关系作为第一类图实体和关系。通过迭代的多智能体分析规范构建该图谱,该图谱在代码生成前提供了一个确定性的、机器可验证的结构支架。在图谱的引导下,一个渐进的编码模块逐步生成伪代码和可综合的RTL,同时在每个子模块阶段强制接口一致性和依赖正确性。我们评估了VeriGraphi在三个代表性的规范文档及其相应实现基准上的表现,并以RV32I处理器作为详细案例研究来说明整个流程。结果表明,VeriGraphi能够以最小的人工干预为RISC-V生成可靠的分层RTL,标志着LLM生成硬件设计的重要里程碑,同时保持强功能正确性。

英文摘要:

Generating synthesizable Verilog for large, hierarchical hardware designs remains a significant challenge for large language models (LLMs), which struggle to replicate the structured reasoning that human experts employ when translating complex specifications into RTL. When tasked with producing hierarchical Verilog, LLMs frequently lose context across modules, hallucinate interfaces, fabricate inter-module wiring, and fail to maintain structural coherence - failures that intensify as design complexity grows and specifications involve informal prose, figures, and tables that resist direct operationalization. To address these challenges, we present VeriGraphi, a framework that introduces a spec-anchored Knowledge Graph as the architectural substrate driving the RTL generation pipeline. VeriGraphi constructs a HDA, a structured knowledge graph that explicitly encodes module hierarchy, port-level interfaces, wiring semantics, and inter-module dependencies as first-class graph entities and relations. Built through iterative multi-agent analysis of the specification, this Knowledge Graph provides a deterministic, machine-checkable structural scaffold before code generation. Guided by the KG, a progressive coding module incrementally generates pseudo-code and synthesizable RTL while enforcing interface consistency and dependency correctness at each submodule stage. We evaluate VeriGraphi on a benchmark of three representative specification documents from the National Institute of Standards and Technology and their corresponding implementations, and we present a RV32I processor as a detailed case study to illustrate the full pipeline. The results demonstrate that VeriGraphi enables reliable hierarchical RTL generation with minimal human intervention for RISC-V, marking a significant milestone for LLM-generated hardware design while maintaining strong functional correctness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑