arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.08683cs.ARcs.AIcs.LGcs.PLcs.SE
收藏

基于注意力汇增强大语言模型的零样本RTL代码生成

Zero-Shot RTL Code Generation with Attention Sink Augmented Large Language Models

Ozyegin University(奥兹耶金大学)

Selim Sandal, Ismail Akturk

AI总结:

本文研究利用带新型注意力汇机制的大语言模型,通过单一高层次设计提示实现零样本RTL代码生成,验证其能产出功能正确、优化且符合工业标准的代码,推动硬件设计自动化。

摘要:

硬件的设计与优化历来是资源密集型任务,需要相当丰富的专业知识,并依赖既有的设计自动化工具。本文探讨了利用大语言模型来简化硬件设计中代码生成流程的可能性。与先前研究不同,本文旨在使用能够通过单一提示接受高层次设计规格说明的大语言模型,生成相应的寄存器传输级(RTL)代码。将大语言模型用于RTL代码生成,不仅能加快设计迭代周期,还有助于探索对传统技术而言存在计算挑战的设计空间。通过评估,我们展示了现有注意力机制的不足,并呈现了当采用一种新型注意力机制时,语言模型生成功能正确、经过优化且符合工业标准的RTL代码的能力。这些发现凸显了大语言模型在塑造硬件设计中架构探索与自动化未来图景方面日益重要的作用。

英文摘要:

The design and optimization of hardware have traditionally been resource-intensive, demanding considerable expertise and dependence on established design automation tools. This paper discusses the possibility of exploiting large language models to streamline the code generation process in hardware design. In contrast to earlier studies, this paper aims to use large language models that accepts high-level design specifications through a single prompt to generate corresponding Register-Transfer Level (RTL) code. The ability to use large language models on RTL code generation not only expedites design iteration cycles but also facilitates the exploration of design spaces that have computational challenges for conventional techniques. Through our evaluation, we demonstrate the shortcoming of existing attention mechanisms, and present the abilities of language models to produce functional, optimized, and industry-standard compliant RTL code when a novel attention mechanism is used. These findings underscore the expanding role of large language models in shaping the future landscape of architectural exploration and automation in hardware design.

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

↑