UCAgent:一种端到端的块级功能验证代理
UCAgent: An End-to-End Agent for Block-Level Functional Verification
AI总结:
UCAgent通过构建纯Python验证环境和31阶段细粒度验证流程,解决传统方法在复杂半导体设计验证中的不足,实现98.5%的代码覆盖率和100%的功能覆盖率。
摘要:
功能验证仍然是现代集成电路开发周期中的关键瓶颈,占许多项目总开发时间的约70%。然而,传统方法,包括约束随机和形式验证,难以跟上现代半导体设计复杂性的增长。尽管近年来大型语言模型(LLMs)在代码生成和任务自动化方面显示出潜力,但实现端到端功能验证自动化仍面临挑战,包括(i)生成Verilog/SystemVerilog验证代码的准确性有限,(ii)LLMs在执行复杂多步骤验证工作流时的脆弱性,以及(iii)在工作流过程中保持验证一致性困难。为了解决这些挑战,我们提出了UCAgent,一种基于三种核心机制的端到端代理,用于基于Picker和Toffee构建纯Python验证环境,避免依赖LLM生成的SystemVerilog验证代码;引入可配置的31阶段细粒度验证流程,引导LLM,每个阶段由自动检查器验证;并提出验证一致性标签机制(VCLM),为LLM生成的产物分配层次标签,提高验证的可靠性和可追溯性。实验结果表明,UCAgent能够完成多个模块的端到端自动化验证,包括UART、FPU和整数除法器模块,实现高达98.5%的代码覆盖率和100%的功能覆盖率。UCAgent还发现了现实设计中之前未发现的设计缺陷,展示了其实际潜力。
英文摘要:
Functional verification remains a critical bottleneck in modern IC development cycles, accounting for approximately 70% of total development time in many projects. However, traditional methods, including constrained-random and formal verification, struggle to keep pace with the growing complexity of modern semiconductor designs. While recent advances in Large Language Models (LLMs) have shown promise in code generation and task automation, significant challenges hinder the realization of end-to-end functional verification automation. These challenges include (i) limited accuracy in generating Verilog/SystemVerilog verification code, (ii) the fragility of LLMs when executing complex, multi-step verification workflows, and (iii) the difficulty of maintaining verification consistency across specifications, coverage models, and test cases throughout the workflow. To address these challenges, we propose UCAgent, an end-to-end agent that automates hardware block-level functional verification based on three core mechanisms. First, we establish a pure Python verification environment using Picker and Toffee to avoid relying on LLM-generated SystemVerilog verification code. Second, we introduce a configurable 31-stage fine-grained verification workflow to guide the LLM, where each stage is verified by an automated checker. Furthermore, we propose a Verification Consistency Labeling Mechanism (VCLM) that assigns hierarchical labels to LLM-generated artifacts, improving the reliability and traceability of verification. Experimental results show that UCAgent can complete end-to-end automated verification on multiple modules, including the UART, FPU, and integer divider modules, achieving up to 98.5% code coverage and up to 100% functional coverage. UCAgent also discovers previously unidentified design defects in realistic designs, demonstrating its practical potential.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。