用大模型生成兼顾性能功耗面积的准确硬件代码
LLM-VeriPPA: Power, Performance, and Area Optimization aware Verilog Code Generation with Large Language Models
- 分两阶段生成并优化Verilog代码,提升正确性与PPA指标
- 在RTLLM数据集上代码语法正确率81.37%,功能正确率62.06%
- 适合芯片自动化设计、EDA工具开发人员参考
大型语言模型(LLMs)因其能根据人类指令生成高质量内容而日益受到关注。本文探索利用LLMs进行芯片设计,聚焦于功耗-性能-面积(PPA)优化及电路设计的准确Verilog代码生成。我们提出新型框架VeriPPA,采用两阶段流程:第一阶段提升生成代码的功能与语法正确性,第二阶段针对电路设计的PPA约束优化代码,这是芯片设计的关键环节。在RTLLM数据集上,该框架实现81.37%的语法正确率和62.06%的功能正确率,优于当前最先进方法;在VerilogEval数据集上,语法正确率达99.56%,功能正确率为43.79%,同样超越现有最优结果(语法92.11%,功能33.57%)。此外,框架还能有效优化设计的PPA表现。这些结果表明LLMs在复杂技术领域具有潜力,预示着芯片设计自动化的重要进展。
原文摘要 · Abstract (English)
Large Language Models (LLMs) are gaining prominence in various fields, thanks to their ability to generate high- quality content from human instructions. This paper delves into the field of chip design using LLMs, specifically in Power- Performance-Area (PPA) optimization and the generation of accurate Verilog codes for circuit designs. We introduce a novel framework VeriPPA designed to optimize PPA and generate Verilog code using LLMs. Our method includes a two-stage process where the first stage focuses on improving the functional and syntactic correctness of the generated Verilog codes, while the second stage focuses on optimizing the Verilog codes to meet PPA constraints of circuit designs, a crucial element of chip design. Our framework achieves an 81.37% success rate in syntactic correctness and 62.06% in functional correctness for code genera- tion, outperforming current state-of-the-art (SOTA) methods. On the RTLLM dataset. On the VerilogEval dataset, our framework achieves 99.56% syntactic correctness and 43.79% functional correctness, also surpassing SOTA, which stands at 92.11% for syntactic correctness and 33.57% for functional correctness. Furthermore, Our framework able to optimize the PPA of the designs. These results highlight the potential of LLMs in handling complex technical areas and indicate an encouraging development in the automation of chip design processes.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。