arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.19941cs.ARcs.AIcs.PLcs.SE
收藏

Bench4HLS: 面向端到端评估LLM在高层次综合代码生成中的表现

Bench4HLS: End-to-End Evaluation of LLMs in High-Level Synthesis Code Generation

Department of Electrical and Computer Engineering (ECE), University of Central Florida(电子与计算机工程系,中央佛罗里达大学)

M Zafir Sadik Khan, Kimia Azar, Hadi Kamali

AI总结:

Bench4HLS通过提供结构化、可扩展的测试平台,评估LLM在高层次综合代码生成中的性能与优化能力。

摘要:

在过去两年中,大型语言模型(LLMs)在代码生成方面展现了强大的能力,包括在寄存器传输级(RTL)层面的硬件设计。尽管其在高层次综合(HLS)中的应用仍相对不成熟,但在过去六个月中,HLS研究与RTL研究的比例从1:10转变为2:10,表明越来越多的研究者开始利用LLMs进行高层次设计输入,同时依赖下游综合进行优化。这种趋势凸显了建立专门用于评估基于LLM的HLS的综合评估和评估框架的必要性。为此,我们提出了Bench4HLS,用于评估LLM生成的HLS设计。Bench4HLS包含170个手动起草并验证的案例研究,涵盖从小型内核到复杂加速器的各类设计,均来自广泛使用的公共仓库。该框架支持对编译成功性的全自动评估、通过模拟的功能正确性验证以及综合可行性和优化性评估。关键在于,Bench4HLS集成了可插拔的API,用于在不同HLS工具链和架构上进行功率、性能和面积(PPA)分析,此处展示了Xilinx Vitis HLS和在Catapult HLS上的验证。通过提供一个结构化、可扩展和即插即用的测试平台,Bench4HLS建立了用于评估LLM在HLS工作流程中的基准方法。

英文摘要:

In last two years, large language models (LLMs) have shown strong capabilities in code generation, including hardware design at register-transfer level (RTL). While their use in high-level synthesis (HLS) remains comparatively less mature, the ratio of HLS- to RTL-focused studies has shifted from 1:10 to 2:10 in the past six months, indicating growing interest in leveraging LLMs for high-level design entry while relying on downstream synthesis for optimization. This growing trend highlights the need for a comprehensive benchmarking and evaluation framework dedicated to LLM-based HLS. To address this, We present Bench4HLS for evaluating LLM-generated HLS designs. Bench4HLS comprises 170 manually drafted and validated case studies, spanning small kernels to complex accelerators, curated from widely used public repositories. The framework supports fully automated assessment of compilation success, functional correctness via simulation, and synthesis feasibility/optimization. Crucially, Bench4HLS integrates a pluggable API for power, performance, and area (PPA) analysis across various HLS toolchains and architectures, demonstrated here with Xilinx Vitis HLS and validated on Catapult HLS. By providing a structured, extensible, and plug-and-play testbed, Bench4HLS establishes a foundational methodology for benchmarking LLMs in HLS workflows.

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

↑