DeepV:一种模型无关的检索增强框架,用于Verilog代码生成并配备高质量知识库
DeepV: A Model-Agnostic Retrieval-Augmented Framework for Verilog Code Generation with a High-Quality Knowledge Base
AI总结:
DeepV提出模型无关的RAG框架,利用高质量知识库增强上下文,无需RTL训练即可提升Verilog代码生成性能,在VerilogEval上使GPT-5提升近17%。
摘要:
随着大型语言模型(LLMs)持续融入现代技术,对代码生成应用的推动日益增强,这也自然延伸至硬件设计自动化领域。基于LLM的寄存器传输级(RTL)代码生成解决方案,特别是针对知识产权(IP)设计,已有所增长,尤其是微调LLM、提示工程和智能体方法在文献中变得流行。然而,这些技术暴露出一个缺口:它们未能将新型IP整合到模型的知识库中,从而导致生成的代码质量不佳。此外,随着通用LLM的不断改进,基于旧模型的微调方法将无法竞争以产生更准确和高效的设计。尽管存在一些检索增强生成(RAG)技术来缓解微调方法带来的挑战,但相关工作往往利用低质量的代码库,在框架中引入计算昂贵的微调,或者未在RTL生成步骤中直接使用RAG。在本工作中,我们介绍了DeepV:一种模型无关的RAG框架,通过大型高质量数据集增强上下文来生成RTL设计,无需任何RTL特定训练。我们的框架使最新的商业LLM——OpenAI的GPT-5——在VerilogEval基准上性能提升近17%。我们在Hugging Face(HF)空间为社区托管DeepV:https://huggingface.co/spaces/FICS-LLM/DeepV。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。