TB 或 TB:基于覆盖率的直接偏好优化用于 Verilog 刺激生成
TB or Not TB: Coverage-Driven Direct Preference Optimization for Verilog Stimulus Generation
AI总结:
TB or not TB通过覆盖率驱动的直接偏好优化,提升Verilog刺激生成的覆盖率和效率。
摘要:
随着大语言模型(LLMs)的快速发展,人们越来越关注将其应用于硬件设计和验证。在这些阶段中,设计验证仍然是最耗时和资源密集的阶段,其中为待测设计(DUT)生成有效的刺激至关重要且劳动密集。我们提出了TB or not TB,一种使用通过覆盖率驱动的直接偏好优化(CD-DPO)微调的LLMs进行自动刺激生成的框架。为了实现基于偏好的训练,我们引入了PairaNet,一个从PyraNet衍生出的数据集,通过模拟导出的覆盖率指标对高质量和低质量的测试台进行标记。所提出的CD-DPO方法将定量覆盖率反馈直接整合到优化目标中,引导模型生成最大化验证覆盖率的刺激。在CVDP CID12基准测试中,实验表明TB or not TB在开放源代码和商业基线中表现更优,实现了高达77.27%的代码覆盖率提升,证明了基于覆盖率的偏好优化在LLM基于的硬件验证中的有效性。
英文摘要:
With the rapid advancement of Large Language Models (LLMs), there is growing interest in applying them to hardware design and verification. Among these stages, design verification remains the most time-consuming and resource-intensive phase, where generating effective stimuli for the design under test (DUT) is both critical and labor-intensive. We present {\it TB or not TB}, a framework for automated stimulus generation using LLMs fine-tuned through Coverage-Driven Direct Preference Optimization (CD-DPO). To enable preference-based training, we introduce PairaNet, a dataset derived from PyraNet that pairs high- and low-quality testbenches labeled using simulation-derived coverage metrics. The proposed CD-DPO method integrates quantitative coverage feedback directly into the optimization objective, guiding the model toward generating stimuli that maximize verification coverage. Experiments on the CVDP CID12 benchmark show that {\it TB or not TB} outperforms both open-source and commercial baselines, achieving up to 77.27\% improvement in code coverage, demonstrating the effectiveness of Coverage-driven preference optimization for LLM-based hardware verification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。