从盲目到定向:通过功能关键信号驱动的LLM断言生成实现高效的RTL验证
From Indiscriminate to Targeted: Functionally Critical Signal-Driven Assertion Generation using LLMs for Efficient RTL Verification
AI总结:
本文提出AgileAssert框架,通过构建RTL语义图并识别关键信号,指导LLM生成定向断言,提升验证效率,减少断言数量并提高覆盖率。
摘要:
功能验证已成为IC开发中最耗时的阶段,断言基于验证(ABV)是减少调试时间的关键。然而,现有基于LLM的断言生成方法通常追求盲目验证,追求最大覆盖率而不考虑信号重要性,而工业实践要求在最小验证成本下最大化覆盖率。因此,识别对设计功能和错误传播影响最大的信号——实现从盲目到定向验证的转变——仍然是关键挑战。为此,我们提出了AgileAssert,一个关键信号驱动的断言生成框架,通过构建RTL语义图并采用混合评分和选择机制识别前K个关键信号,随后通过结构感知的RTL切片为LLM提供精确目标和上下文信息,从而引导LLM生成紧密约束的定向断言以实现高效验证。在块级和CPU级设计上评估,平均断言数量减少66.68%,优于三种现有SOTA方法,并显著提高覆盖率指标,同时减少输入token消耗64%。在变异测试中,当我们的方法在错误检测率上超过现有方法时,平均使用的断言数量减少72.74%。
英文摘要:
Functional verification has become the most time-consuming phase in IC development, and Assertion-Based Verification (ABV) is key to reducing debugging time. However, existing LLM-based assertion generation methods typically pursue indiscriminate verification, aiming for maximal coverage without considering signal criticality, whereas industrial practice demands maximizing coverage with minimal verification cost. Consequently, identifying signals that have the greatest impact on design functionality and error propagation-enabling a shift from indiscriminate to targeted verification-remains a key challenge. To address this, we propose AgileAssert, a key signal-driven assertion generation framework that constructs RTL semantic graphs and identifies the top-K critical signals via a hybrid scoring and selection mechanism, followed by structure-aware RTL slicing to provide the LLM with precise targets and contextual information, thereby guiding LLMs to generate tightly constrained targeted assertions for efficient verification. Evaluated on block- and CPU-level designs, with an average 66.68% reduction in assertions, our approach outperforms three existing SOTA methods, and significantly improving coverage metrics while reducing input token consumption by 64%. In mutation testing, when our approach surpasses existing methods in error detection rate, the average number of assertions used decreases by 72.74%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。