Saved in:
Bibliographic Details
Main Authors: Guo, Ce, Zhao, Tong
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.08823
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909547712479232
author Guo, Ce
Zhao, Tong
author_facet Guo, Ce
Zhao, Tong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2503_08823
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ResBench: Benchmarking LLM-Generated FPGA Designs with Resource Awareness
Guo, Ce
Zhao, Tong
Hardware Architecture
Artificial Intelligence
Computation and Language
Emerging Technologies
Machine Learning
I.2.2
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.
title ResBench: Benchmarking LLM-Generated FPGA Designs with Resource Awareness
topic Hardware Architecture
Artificial Intelligence
Computation and Language
Emerging Technologies
Machine Learning
I.2.2
url https://arxiv.org/abs/2503.08823