arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.09494cs.ARcs.LG
收藏

VeriBug:一种基于注意力的硬件设计缺陷定位框架

VeriBug: An Attention-based Framework for Bug-Localization in Hardware Designs

University of Illinois Chicago(伊利诺伊大学芝加哥分校);Politecnico di Torino(都灵理工大学)

Giuseppe Stracquadanio, Sourav Medya, Stefano Quer, Debjit Pal

AI总结:

针对硬件 RTL 调试成本高的问题,提出基于深度学习与控制-数据流图的 VeriBug 框架,通过操作数重要性评分和热图解释根因并定位缺陷,平均覆盖率达 82.5%。

摘要:

近年来,面向不同专用应用的 System-on-Chip(片上系统)设计在规模和复杂性上呈指数级增长。在这些系统中,未被发现的缺陷所带来的代价远高于传统处理器系统,因为它可能意味着财产损失或生命损失。不断缩短的上市时间以及快速生产数十亿台设备的日益增长需求,进一步加剧了这一问题。尽管围绕用于调试和验证的仿真与形式化方法已有数十年研究,但它仍是当代硬件设计周期中最耗时、最耗资源的过程之一。在本工作中,我们提出 VeriBug,它利用深度学习的最新进展来加速 Register-Transfer Level(寄存器传输级)调试,并生成可能根本原因的解释。首先,VeriBug 使用硬件设计的 control-data flow graph(控制-数据流图),并通过分析操作数及其赋值的上下文来学习执行设计语句。随后,它为设计语句中的每个操作数分配重要性分数,并使用该分数为失败生成解释。最后,VeriBug 生成热图,突出显示可能存在缺陷的源代码部分。我们的实验表明,在开源设计和不同类型的注入缺陷上,VeriBug 可实现 82.5% 的平均缺陷定位覆盖率。

英文摘要:

In recent years, there has been an exponential growth in the size and complexity of System-on-Chip designs targeting different specialized applications. The cost of an undetected bug in these systems is much higher than in traditional processor systems as it may imply the loss of property or life. The problem is further exacerbated by the ever-shrinking time-to-market and ever-increasing demand to churn out billions of devices. Despite decades of research in simulation and formal methods for debugging and verification, it is still one of the most time-consuming and resource intensive processes in contemporary hardware design cycle. In this work, we propose VeriBug, which leverages recent advances in deep learning to accelerate debugging at the Register-Transfer Level and generates explanations of likely root causes. First, VeriBug uses control-data flow graph of a hardware design and learns to execute design statements by analyzing the context of operands and their assignments. Then, it assigns an importance score to each operand in a design statement and uses that score for generating explanations for failures. Finally, VeriBug produces a heatmap highlighting potential buggy source code portions. Our experiments show that VeriBug can achieve an average bug localization coverage of 82.5% on open-source designs and different types of injected bugs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑