提出统一评估框架TuRTLe,系统评测大模型生成硬件代码能力
TuRTLe: A Unified Evaluation of LLMs for RTL Generation
- 构建整合多基准的自动化评估框架,覆盖语法、功能、综合等五项任务
- 发现推理型模型如DeepSeek R1在多项指标上领先,但延迟更高
- 基础模型适合模块补全,指令微调模型更擅长需求转代码
大语言模型的快速发展推动了生成式AI在电子设计自动化(EDA)领域的应用。与传统软件开发不同,生成的RTL代码不仅需语法正确、功能准确,还需可被硬件生成器综合,并满足性能、功耗和面积(PPA)约束。现有代码生成基准难以全面捕捉这些复杂要求,限制了对大模型在RTL生成任务中表现的有效评估。为此,我们提出TuRTLe,一个统一的评估框架,可系统性地评估大模型在关键RTL生成任务中的表现。该框架整合多个现有基准并实现自动化评估,涵盖语法正确性、功能正确性、综合能力、PPA优化及精确行补全。基于此框架,我们评测了多种开源大模型,并分析其在EDA特定任务中的优劣。结果表明,推理型模型(如DeepSeek R1)在多项评估标准上持续领先,但伴随更高的计算开销和推理延迟;基础模型在模块补全任务中表现更佳,而指令微调模型在需求转RTL任务中更具优势。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。