跳到正文
arXiv (Robotics + Hardware + Signal)· Ce Guo, Tong Zhao·· 8 天前AI 评分18

ResBench:面向资源感知的LLM生成FPGA设计基准测试

ResBench: Benchmarking LLM-Generated FPGA Designs with Resource Awareness

AI 导读

ResBench是首个以资源占用为核心的基准测试,用于区分LLM生成的HDL代码在资源优化上的优劣。该基准包含12个类别共56道题目,覆盖从有限状态机到金融计算的应用,开源评估框架自动生成Verilog代码、验证正确性并测量资源占用。实验主要分析LUT使用量,结果显示不同LLM之间存在显著差异。

正文 · 原文

arXiv:2503.08823v3 Announce Type: replace Abstract: Field-Programmable Gate Arrays (FPGAs) are widely used in modern hardware design, yet writing Hardware Description Language (HDL) code for FPGA implementation remains a complex and time-consuming task. Large Language Models (LLMs) have emerged as a promising tool for HDL generation, but existing benchmarks for LLM-based code generation primarily focus on functional correctness while overlooking hardware resource usage. Furthermore, current benchmarks offer limited diversity and do not fully represent the wide range of real-world FPGA applications. To address these shortcomings, we introduce ResBench, the first resource-focused benchmark explicitly designed to distinguish between resource-optimized and inefficient LLM-generated HDL code. ResBench consists of 56 problems across 12 categories, covering applications from finite state machines to financial computing. Our open-source evaluation framework automatically tests LLMs by generating Verilog code, verifying correctness, and measuring resource usage. The experiments, which primarily analyze Lookup Table (LUT) usage, reveal significant differences among LLMs, demonstrating ResBench's capability to identify models that generate more resource-optimized FPGA designs.

来源:arXiv (Robotics + Hardware + Signal) · arxiv.org