跳到正文
arXiv (Robotics + Hardware + Signal)· Yuisei Iwata, Yutaka Masuda, Tohru Ishihara·· 2 小时前AI 评分22

CPU-Eval:面向CPU硬件代码生成的大语言模型评测基准

CPU-Eval: Evaluating Large Language Models for CPU Hardware Code Generation

AI 导读

研究团队推出CPU-Eval基准,包含从六款CPU(含已流片量产系列)构建的339道HDL生成题,覆盖小型嵌入式核到可运行Linux的乱序核,涉及SystemVerilog、Chisel和SpinalHDL。

正文 · 原文

arXiv:2611.32405v1 Announce Type: new Abstract: Benchmarks such as VerilogEval have supported rapid advances in hardware description language (HDL) generation by large language models (LLMs). However, recent HDL-generation systems achieve pass rates above 90% on VerilogEval, leaving limited headroom for revealing further advances. To provide a challenging target for further progress on a practically important hardware-development task, we introduce CPU-Eval, a benchmark of 339 HDL-generation problems constructed from six CPUs. Drawn from practical CPU designs, including families fabricated in silicon, the problems span CPUs from small embedded cores to Linux-capable out-of-order cores and cover diverse CPU functions written in SystemVerilog, Chisel, and SpinalHDL. In each problem, an LLM performs the real CPU-development task of generating HDL. Across seven state-of-the-art LLMs, mean pass@1 is 45.14 percentage points lower on CPU-Eval than on VerilogEval v2 Spec-to-RTL, exposing capability differences obscured by VerilogEval's high pass rates. CPU-Eval reveals that pass@1 is lower for submodules with more source-code lines, which motivates fine-grained modular design for LLM-aided hardware generation. We also show that pass@1 is lower for CPUs written in less widely used HDLs, motivating designers to verify that an LLM is sufficiently proficient at generating code in the HDL they use before deployment.

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