# An Operational Framework for Specifying Memory Models using   Instantaneous Instruction Execution

**Authors:** Sizhuo Zhang, Muralidaran Vijayaraghavan, Arvind

arXiv: 1705.06158 · 2017-05-18

## TL;DR

This paper introduces the I2E framework, a simplified way to specify weak memory models that accurately captures modern microarchitectures without complex microarchitectural details.

## Contribution

The I2E framework allows for straightforward specification of weak memory models using instantaneous instruction execution, simplifying reasoning and verification tasks.

## Key findings

- I2E models capture behaviors of modern microarchitectures accurately.
- The framework eliminates the need to consider microarchitectural complexities.
- It uses non-deterministic data movement, invalidation buffers, and timestamps.

## Abstract

There has been great progress recently in formally specifying the memory model of microprocessors like ARM and POWER. These specifications are, however, too complicated for reasoning about program behaviors, verifying compilers etc., because they involve microarchitectural details like the reorder buffer (ROB), partial and speculative execution, instruction replay on speculation failure, etc. In this paper we present a new Instantaneous Instruction Execution (I2E) framework which allows us to specify weak memory models in the same style as SC and TSO. Each instruction in I2E is executed instantaneously and in-order such that the state of the processor is always correct. The effect of instruction reordering is captured by the way data is moved between the processors and the memory non-deterministically, using three conceptual devices: invalidation buffers, timestamps and dynamic store buffers. We prove that I2E models capture the behaviors of modern microarchitectures and cache-coherent memory systems accurately, thus eliminating the need to think about microarchitectural details.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1705.06158/full.md

## Figures

28 figures with captions in the complete paper: https://tomesphere.com/paper/1705.06158/full.md

## References

62 references — full list in the complete paper: https://tomesphere.com/paper/1705.06158/full.md

---
Source: https://tomesphere.com/paper/1705.06158