ACL2 中的 RV32I
RV32I in ACL2
AI总结:
本文在 ACL2 中以操作语义风格构建 RV32I 仿真器,分离解码与语义函数,并自动验证各指令的编解码及状态性质定理。
摘要:
我们提出了一个用于 RISC-V 32 位基础指令集架构的简单 ACL2 仿真器,采用操作语义风格编写。与许多其他 ISA 模型一样,我们的 RISC-V 状态对象是单线程对象,并证明了读后写、写后写、写所读以及状态良构性定理。与某些其他模型不同,我们将指令解码函数与其语义对应函数分离开来。因此,我们验证了每条 RV32I 指令的编码/解码函数,其证明完全自动化。
英文摘要:
We present a simple ACL2 simulator for the RISC-V 32-bit base instruction set architecture, written in the operational semantics style. Like many other ISA models, our RISC-V state object is a single-threaded object and we prove read-over-write, write-over-write, writing-the-read, and state well-formedness theorems. Unlike some other models, we separate the instruction decoding functions from their semantic counterparts. Accordingly, we verify encoding / decoding functions for each RV32I instruction, the proofs for which are entirely automatic.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。