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.
VeriBugBench: An Empirically Grounded Framework for Constructing Verilog RTL Debugging Benchmarks
School of Computer and Information Engineering, Institute for Artificial Intelligence, Shanghai Polytechnic University(上海理工大学计算机与信息工程学院人工智能研究院);Guangzhou College of Commerce(广州商学院);Chongqing University(重庆大学);National University of Defense Technology(国防科技大学);Academy of Military Sciences(军事科学院)
When Fuzzing Meets Understanding: LLM-Driven Semantic Test Generation for RTL Verification
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences(中国科学院大学前沿交叉科学学院)