arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.07945cs.ARcs.AIcs.CL
收藏

ProtocolLLM:用于通信协议SystemVerilog生成的RTL基准

ProtocolLLM: RTL Benchmark for SystemVerilog Generation of Communication Protocols

University of Illinois Urbana Champaign(伊利诺伊大学厄巴纳-香槟分校);CISPA Helmholtz Center for Information Security(CISPA 沃尔夫冈·泡利研究所)

Arnav Sheth, Ivaxi Sheth, Mario Fritz

AI总结:

本文提出ProtocolLLM,首个针对通信协议SystemVerilog生成的RTL基准,评估多模型在时序、可综合性等多维度的能力,发现多数模型难以生成符合时序约束的代码。

摘要:

大型语言模型(LLMs)的最新进展表明,其在通用编程语言的代码生成方面表现出色。然而,它们在硬件描述语言(HDLs)(如SystemVerilog)方面的潜力很大程度上仍未被探索。由于正确硬件功能所必需的严格时序语义、并发性和可综合性约束,HDL代码生成带来了独特的挑战。此外,基于HDL的设计流程包含结构化代码生成之外的广泛任务,包括测试平台开发、基于断言的验证、时序收敛以及用于片上通信的协议级集成。在这项工作中,我们评估了开源和最先进的LLMs在生成广泛使用的通信协议的可综合且功能准确的SystemVerilog实现方面的能力,这些协议是嵌入式和片上系统(SoC)的关键组件。我们引入了ProtocolLLM,这是第一个专门针对这些协议的基准套件,其任务跨越多个设计抽象层次和不同的提示特异性。我们的评估方法除了可综合性和语法正确性外,还关注时序正确性。我们观察到,大多数模型无法为遵循时序约束的通信协议生成SystemVerilog代码。

英文摘要:

Recent advances in large language models (LLMs) have demonstrated strong performance in generating code for general-purpose programming languages. However, their potential for hardware description languages (HDLs), such as SystemVerilog, remains largely unexplored. HDL code generation poses unique challenges due to strict timing semantics, concurrency, and synthesizability constraints essential for correct hardware functionality. Further, HDL-based design flows encompass a broad set of tasks beyond structural code generation, including testbench development, assertion-based verification, timing closure, and protocol-level integration for on-chip communication. In this work, we evaluate the capabilities of both open-source and state-of-the-art LLMs in generating synthesizable and functionally accurate SystemVerilog implementations of widely used communication protocols that are critical components of embedded and System-on-Chip (SoC) systems. We introduce ProtocolLLM, the first benchmark suite specifically targeting these protocols with tasks spanning multiple design abstraction levels and varying prompt specificity. Our evaluation method also focuses on timing correctness in addition to synthesizability and syntactic correctness. We observe that most of the models fail to generate SystemVerilog code for communication protocols that follow timing constrains.

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

↑