arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.13761cs.LOcs.SC
收藏

RTL算法的形式化验证:Verilog到C++到ACL2的转换

Formal Verification of Arithmetic RTL: Translating Verilog to C++ to ACL2

David M. Russinoff

摘要:

我们提出了一种算法RTL设计的形式化验证方法,它结合了时序逻辑等价性检查和交互式定理证明。一个Verilog模块的中间模型是用Restricted Systemic C(RAC)手工编码的,RAC是一个C的原始子集,由Systemic C的整数和定点寄存器类模板扩充。该模型被设计为尽可能的抽象和紧凑,但足够忠实的RTL允许有效的等价性检查与商业工具。然后,它会自动转换为ACL 2的逻辑,从而能够根据正式的体系结构规范对正确性进行机械检查。在本文中,我们描述了RAC语言,翻译过程,以及一些技术,方便正式分析所产生的ACL2代码。

英文摘要:

We present a methodology for formal verification of arithmetic RTL designs that combines sequential logic equivalence checking with interactive theorem proving. An intermediate model of a Verilog module is hand-coded in Restricted Algorithmic C (RAC), a primitive subset of C augmented by the integer and fixed-point register class templates of Algorithmic C. The model is designed to be as abstract and compact as possible, but sufficiently faithful to the RTL to allow efficient equivalence checking with a commercial tool. It is then automatically translated to the logic of ACL2, enabling a mechanically checked proof of correctness with respect to a formal architectural specification. In this paper, we describe the RAC language, the translation process, and some techniques that facilitate formal analysis of the resulting ACL2 code.

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

↑