arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.01986cs.ARcs.AI
收藏

TuRTLe:用于RTL生成的LLM统一评估

TuRTLe: A Unified Evaluation of LLMs for RTL Generation

Barcelona Supercomputing Center(巴塞罗那超级计算中心);Universitat Politecnica de Catalunya(加泰罗尼亚理工大学)

Dario Garcia-Gasulla, Gokcen Kestor, Emanuele Parisi, Miquel Albertí-Binimelis, Cristian Gutierrez, Razine Moundir Ghorab, Orlando Montenegro, Bernat Homs, Miquel Moreto

AI总结:

针对EDA中RTL代码生成的复杂需求,提出统一评估框架TuRTLe,全面评估LLM在语法、功能、综合及PPA优化等方面的表现,发现推理模型整体更优但开销更大,且不同模型在模块补全与规范转RTL任务上各具优势。

摘要:

LLM的快速发展推动了生成式AI在包括电子设计自动化(EDA)在内的各个领域的应用。与传统软件开发不同,EDA带来了独特的挑战,因为生成的RTL代码不仅必须语法正确和功能准确,还必须能由硬件生成器进行综合,同时满足性能、功耗和面积约束。这些额外要求引入了现有代码生成基准通常无法捕捉的复杂性,限制了它们在评估用于RTL生成的LLM时的有效性。为了填补这一空白,我们提出了TuRTLe,这是一个旨在系统评估LLM在关键RTL生成任务上表现的统一评估框架。TuRTLe集成了多个现有基准并自动化了评估过程,能够对LLM在语法正确性、功能正确性、综合、PPA优化和精确行补全方面的性能进行全面评估。使用该框架,我们对一组多样化的开源LLM进行了基准测试,并分析了它们在EDA特定任务中的优缺点。结果显示,基于推理的模型(如DeepSeek R1)在多个评估标准上始终优于其他模型,但代价是增加了计算开销和推理延迟。此外,基础模型更适合模块补全任务,而指令微调模型在规范到RTL任务中表现更好。

英文摘要:

The rapid advancements in LLMs have driven the adoption of generative AI in various domains, including Electronic Design Automation (EDA). Unlike traditional software development, EDA presents unique challenges, as generated RTL code must not only be syntactically correct and functionally accurate but also synthesizable by hardware generators while meeting performance, power, and area constraints. These additional requirements introduce complexities that existing code-generation benchmarks often fail to capture, limiting their effectiveness in evaluating LLMs for RTL generation. To address this gap, we propose TuRTLe, a unified evaluation framework designed to systematically assess LLMs across key RTL generation tasks. TuRTLe integrates multiple existing benchmarks and automates the evaluation process, enabling a comprehensive assessment of LLM performance in syntax correctness, functional correctness, synthesis, PPA optimization, and exact line completion. Using this framework, we benchmark a diverse set of open LLMs and analyze their strengths and weaknesses in EDA-specific tasks. Our results show that reasoning-based models, such as DeepSeek R1, consistently outperform others across multiple evaluation criteria, but at the cost of increased computational overhead and inference latency. Additionally, base models are better suited in module completion tasks, while instruct-tuned models perform better in specification-to-RTL tasks.

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

↑