论文

CPU-Eval 基准发布:339 道题暴露 LLM 生成 CPU 硬件代码的真实水平

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

精选理由

做芯片或 FPGA 的工程师可以拿它当试金石:同一个模型在 VerilogEval 上 90%+,换成真实 CPU 子模块直接掉 45 个百分点。用 Chisel、SpinalHDL 这些小众语言的人尤其要看看,选模型前先测一测。

剑桥团队等发布 CPU-Eval 基准,包含 339 道基于六款真实 CPU 设计构造的 HDL 生成题目,覆盖从嵌入式小核到可运行 Linux 的乱序执行核,语言涉及 SystemVerilog、Chisel 和 SpinalHDL。

正文

现有基准 VerilogEval 已被近期的 HDL 生成系统刷到 90% 以上通过率,区分度不足。CPU-Eval 上的测试显示,七款最先进 LLM 的平均 pass@1 比 VerilogEval v2 Spec-to-RTL 低 45.14 个百分点,暴露出被高通过率掩盖的能力差距。

基准还揭示两个规律:源代码行数越多的子模块 pass@1 越低,说明细粒度模块化设计更利于 LLM 辅助硬件开发;小众 HDL 上的通过率也更低,提示工程师在部署前应先验证所选 LLM 对自己所用 HDL 的熟练程度。

原文 · arXiv cs.AI

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

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.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:CPU-Eval、VerilogEval、SystemVerilog、Chisel,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Yuisei Iwata, Yutaka Masuda, Tohru Ishihara),经 AITOP 多维评分管线结构化提炼。