arXiv:2510.05327cs.ARcs.AI2025-10被引 6

用高质量知识库增强LLM生成硬件代码,无需专门训练就能提效近17%。

DeepV: A Model-Agnostic Retrieval-Augmented Framework for Verilog Code Generation with a High-Quality Knowledge Base

  • 通过构建高质量代码库实现模型无关的检索增强生成
  • 在VerilogEval上使GPT-5性能提升近17%
  • 适合硬件设计与LLM结合的研究者和工程师使用

随着大语言模型(LLMs)在现代技术中的深入应用,代码生成逐渐扩展至硬件设计自动化领域。基于LLM的寄存器传输级(RTL)IP设计代码生成方法日益增多,尤其体现在微调模型、提示工程和代理式方法的流行。然而,现有技术存在明显缺陷:无法将新IP集成到模型知识库中,导致生成代码质量低下。同时,通用大模型持续进步,旧模型微调方案难以维持竞争力。尽管已有检索增强生成(RAG)技术缓解微调问题,但多数研究依赖低质量代码库、引入高计算成本的微调,或未在RTL生成阶段直接应用RAG。本文提出DeepV:一种模型无关的RAG框架,通过大型高质量数据集增强上下文,无需任何特定于RTL的训练即可生成RTL设计。该框架使最新商业模型GPT-5在VerilogEval基准测试中性能提升近17%。我们已在Hugging Face Space开放DeepV供社区使用:https://huggingface.co/spaces/FICS-LLM/DeepV。

原文摘要 · Abstract (English)

As large language models (LLMs) continue to be integrated into modern technology, there has been an increased push towards code generation applications, which also naturally extends to hardware design automation. LLM-based solutions for register transfer level (RTL) code generation for intellectual property (IP) designs have grown, especially with fine-tuned LLMs, prompt engineering, and agentic approaches becoming popular in literature. However, a gap has been exposed in these techniques, as they fail to integrate novel IPs into the model's knowledge base, subsequently resulting in poorly generated code. Additionally, as general-purpose LLMs continue to improve, fine-tuned methods on older models will not be able to compete to produce more accurate and efficient designs. Although some retrieval augmented generation (RAG) techniques exist to mitigate challenges presented in fine-tuning approaches, works tend to leverage low-quality codebases, incorporate computationally expensive fine-tuning in the frameworks, or do not use RAG directly in the RTL generation step. In this work, we introduce DeepV: a model-agnostic RAG framework to generate RTL designs by enhancing context through a large, high-quality dataset without any RTL-specific training. Our framework benefits the latest commercial LLM, OpenAI's GPT-5, with a near 17% increase in performance on the VerilogEval benchmark. We host DeepV for use by the community in a Hugging Face (HF) Space: https://huggingface.co/spaces/FICS-LLM/DeepV.

硬件生成RAGVerilog大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。