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

通过突破符号快速错误检测的界限对处理器核进行有效的预硅验证

Effective Pre-Silicon Verification of Processor Cores by Breaking the Bounds of Symbolic Quick Error Detection

Karthik Ganesan, Florian Lonsing, Srinivasa Shashank Nuthakki, Eshan Singh, Mohammad Rahmani Fadiheh, Wolfgang Kunz, Dominik Stoffel, Clark Barrett, Subhasish Mitra

摘要:

我们提出了一种新的方法来预硅处理器设计的验证。硅前验证的目的是在早期阶段发现设计中的逻辑错误,从而避免时间和成本密集的硅后调试。我们的方法依赖于符号快速错误检测(符号QED或SQED)。SQED的目标是通过结合有界模型检验(BMC)和QED测试来发现设计的符号表示中的逻辑错误。QED测试在生成触发bug的短指令序列(跟踪)方面非常强大。我们扩展了现有的SQED方法与象征性的起始状态。这样,我们使BMC工具能够在生成跟踪时任意选择起始状态。为了避免误报,(例如,在根据处理器指令集体系结构可能不具有的不可达状态中开始的跟踪),我们定义约束以限制可能的开始状态的集合。我们证明,这些约束条件,连同合理的假设系统的行为,使我们能够避免误报。使用我们的方法,我们发现了开源RISC-V处理器内核中以前未知的漏洞,这些漏洞是现有方法无法检测到的。此外,我们的新方法在检测具有长痕迹的错误和检测硬件木马方面优于现有方法,即,未经授权的设计修改。

英文摘要:

We present a novel approach to pre-silicon verification of processor designs. The purpose of pre-silicon verification is to find logic bugs in a design at an early stage and thus avoid time- and cost-intensive post-silicon debugging. Our approach relies on symbolic quick error detection (Symbolic QED, or SQED). SQED is targeted at finding logic bugs in a symbolic representation of a design by combining bounded model checking (BMC) with QED tests. QED tests are powerful in generating short sequences of instructions (traces) that trigger bugs. We extend an existing SQED approach with symbolic starting states. This way, we enable the BMC tool to select starting states arbitrarily when generating a trace. To avoid false positives, (e.g., traces starting in unreachable states that may not be-have in accordance with the processor instruction-set architecture), we define constraints to restrict the set of possible starting states. We demonstrate that these constraints, togeth-er with reasonable assumptions about the system behavior, allow us to avoid false positives. Using our approach, we discovered previously unknown bugs in open-source RISC-V processor cores that existing methods cannot detect. Moreover, our novel approach out-performs existing ones in the detection of bugs having long traces and in the detection of hardware Trojans, i.e., unauthorized modifications of a design.

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

↑