REvolution:一种由大型语言模型驱动的RTL生成进化框架
REvolution: An Evolutionary Framework for RTL Generation driven by Large Language Models
AI总结:
REvolution将进化计算与大型语言模型结合,通过双种群算法和自适应提示策略,在VerilogEval和RTLLM基准上将RTL生成通过率提升最多24个百分点,并显著优化了PPA。
摘要:
大型语言模型(LLMs)被用于寄存器传输级(RTL)代码生成,但面临两大主要挑战:功能正确性以及功耗、性能和面积(PPA)优化。基于迭代和反馈的方法部分解决了这些问题,但仅限于局部搜索,阻碍了全局最优解的发现。本文介绍了REvolution,一个将进化计算(EC)与LLMs相结合以实现RTL自动生成和优化的框架。REvolution并行进化一组候选解,每个候选解由设计策略、RTL实现和评估反馈定义。该框架包含一种双种群算法,将候选解分为失败组和成功组,分别用于错误修复和PPA优化。一种自适应机制通过根据每种提示策略的成功率动态调整其选择概率,进一步提高了搜索效率。在VerilogEval和RTLLM基准上的实验表明,REvolution将各种LLMs的初始通过率提高了最多24.0个百分点。DeepSeek-V3模型实现了95.5%的最终通过率,与最先进的结果相当,且无需单独训练或领域特定工具。此外,生成的RTL设计在PPA方面相比参考设计有显著改进。这项工作通过结合LLMs的生成能力与EC的广泛搜索能力,引入了一种新的RTL设计方法,克服了先前方法的局部搜索局限性。
英文摘要:
Large Language Models (LLMs) are used for Register-Transfer Level (RTL) code generation, but they face two main challenges: functional correctness and Power, Performance, and Area (PPA) optimization. Iterative, feedback-based methods partially address these, but they are limited to local search, hindering the discovery of a global optimum. This paper introduces REvolution, a framework that combines Evolutionary Computation (EC) with LLMs for automatic RTL generation and optimization. REvolution evolves a population of candidates in parallel, each defined by a design strategy, RTL implementation, and evaluation feedback. The framework includes a dual-population algorithm that divides candidates into Fail and Success groups for bug fixing and PPA optimization, respectively. An adaptive mechanism further improves search efficiency by dynamically adjusting the selection probability of each prompt strategy according to its success rate. Experiments on the VerilogEval and RTLLM benchmarks show that REvolution increased the initial pass rate of various LLMs by up to 24.0 percentage points. The DeepSeek-V3 model achieved a final pass rate of 95.5\%, comparable to state-of-the-art results, without the need for separate training or domain-specific tools. Additionally, the generated RTL designs showed significant PPA improvements over reference designs. This work introduces a new RTL design approach by combining LLMs' generative capabilities with EC's broad search power, overcoming the local-search limitations of previous methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。