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

ChipGPT:我们距离自然语言硬件设计还有多远

ChipGPT: How far are we from natural language hardware design

State Key Lab of Processors, Institute of Computing Technology, Chinese Academy of Sciences, China(处理器国家重点实验室,计算技术研究所,中国科学院,中国);University of Chinese Academy of Sciences(中国科学院大学);School of Information Science and Technology, ShanghaiTech University, China(信息科学与技术学院,上海科技大学,中国)

Kaiyan Chang, Ying Wang, Haimeng Ren, Mengdi Wang, Shengwen Liang, Yinhe Han, Huawei Li, Xiaowei Li

AI总结:

本文提出基于LLMs的无重训四阶段零代码逻辑设计框架ChipGPT,通过自然语言生成并优化Verilog程序,实验证明其提升了硬件设计的可编程性、可控性及优化空间。

摘要:

随着像 ChatGPT 这样的大型语言模型(LLMs)展现出前所未有的机器智能,它在协助硬件工程师通过自然语言交互实现更高效率的逻辑设计方面也表现出优异的性能。为了评估 LLMs 辅助硬件设计过程的潜力,本工作尝试展示一个自动化设计环境,该环境探索利用 LLMs 从自然语言规范生成硬件逻辑设计。为实现更易用且高效的芯片开发流程,我们提出了一个基于 LLMs 的可扩展四阶段零代码逻辑设计框架,且无需重新训练或微调。首先,演示项目 ChipGPT 从为 LLM 生成提示词开始,随后由其生成初始的 Verilog 程序。其次,输出管理器在将这些程序收集到最终设计空间之前,对其进行纠正和优化。最终,ChipGPT 将搜索该空间,以在目标指标下选择最优设计。该评估揭示了 LLMs 是否能够针对某些规范生成由自然语言描述的正确且完整的硬件逻辑设计。结果表明,与先前工作和仅使用原生 LLMs 相比,ChipGPT 提高了可编程性和可控性,并展现出更广阔的设计优化空间。

英文摘要:

As large language models (LLMs) like ChatGPT exhibited unprecedented machine intelligence, it also shows great performance in assisting hardware engineers to realize higher-efficiency logic design via natural language interaction. To estimate the potential of the hardware design process assisted by LLMs, this work attempts to demonstrate an automated design environment that explores LLMs to generate hardware logic designs from natural language specifications. To realize a more accessible and efficient chip development flow, we present a scalable four-stage zero-code logic design framework based on LLMs without retraining or finetuning. At first, the demo, ChipGPT, begins by generating prompts for the LLM, which then produces initial Verilog programs. Second, an output manager corrects and optimizes these programs before collecting them into the final design space. Eventually, ChipGPT will search through this space to select the optimal design under the target metrics. The evaluation sheds some light on whether LLMs can generate correct and complete hardware logic designs described by natural language for some specifications. It is shown that ChipGPT improves programmability, and controllability, and shows broader design optimization space compared to prior work and native LLMs alone.

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

↑