arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.20653cs.SEcs.SYeess.SY
收藏

SysVCoder: 一种LLM驱动的系统级设计系统性生成框架

SysVCoder: An LLM-Driven Framework for Systematic Generation of System-Level Design

School of Computer Science and Technology, Shandong University(山东大学计算机科学与技术学院);Department of Electrical and Computer Engineering, North Dakota State University(北达科他州立大学电气与计算机工程系)

Jian Zuo, Junzhe Liu, Xianyong Wang, Chen Liang, Navya Goli, Umamaheswara Rao Tida, Zhenge Jia, Zhaoyan Shen, Mengying Zhao

AI总结:

提出SysVCoder框架,通过两阶段生成流水线、规则对齐机制和领域特定检索增强生成策略,提升Verilog系统级设计的生成质量与效率,在功能正确性上优于现有方法。

摘要:

近年来,大型语言模型(LLMs)在使用硬件描述语言(如Verilog)生成硬件设计方面展现出巨大潜力。然而,现有的基于LLM的框架难以准确捕捉真实世界架构设计的复杂性,尤其是对于具有层次化、多级模块实例化的大规模系统。为解决这一问题,我们提出了SysVCoder,一种LLM驱动的框架,旨在提升Verilog系统级设计的生成质量和效率。SysVCoder引入了一个两阶段生成流水线,利用中间表示实现从自然语言规范到复杂多模块设计的更结构化和准确的转换。此外,我们结合了基于规则的对齐机制和领域特定检索增强生成策略(DS-RAG),通过将LLM输出锚定到领域知识来增强功能正确性。我们还提出了SysVDB,一个包含60个系统级硬件设计及其对应验证测试平台的综合数据集。实验结果表明,在相同基础LLM下,SysVCoder在功能正确性方面比最先进的框架(如CodeV和VeriGen)分别高出30.7%和38.3%。值得注意的是,SysVCoder在使用仅7B参数模型的情况下,达到了与NVIDIA基于GPT-4的VerilogCoder相当的性能,同时将令牌消耗降低了7.6倍,综合延迟降低了37.5倍。SysVCoder和SysVDB均已在以下网址公开:此 https URL。

英文摘要:

Recent advances in large language models (LLMs) have demonstrated strong potential in generating hardware designs using hardware description languages (HDLs) such as Verilog. However, existing LLM-based frameworks struggle to accurately capture the complexity of real-world architectural designs, particularly for large-scale systems with hierarchical, multi-level module instantiations. To address this issue, we present SysVCoder, an LLM-driven framework that enhances both the generation quality and efficiency of system-level design in Verilog. SysVCoder introduces a two-stage generation pipeline that leverages an intermediate representation to enable a more structured and accurate translation from natural language specifications to complex multi-module designs. Furthermore, we incorporate a rule-based alignment mechanism and a domain-specific retrieval-augmented generation strategy (DS-RAG) to enhance functional correctness by grounding LLM outputs in domain knowledge. We also present SysVDB, a comprehensive dataset comprising 60 system-level hardware designs along with their corresponding verification testbenches. Experimental results demonstrate that SysVCoder outperforms state-of-the-art frameworks such as CodeV and VeriGen by 30.7% and 38.3% in terms of functional correctness under the same base LLM. Notably, SysVCoder achieves performance comparable to NVIDIA's GPT-4 based VerilogCoder while using only a 7B-parameter model, reducing token consumption by 7.6x and synthesis latency by 37.5x. Both SysVCoder and SysVDB are made public at https://gitee.com/sdu-aes-lab/sysvcoder/.

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

↑