TriCheck: Memory Model Verification at the Trisection of Software, Hardware, and ISA

The work

AuthorsCaroline Trippel; Yatin A. Manerkar; Daniel Lustig; Michael Pellauer; Margaret Martonosi
Editors
Typeinproceedings
Year2017
Citekeytrippel2017tricheck

Where it appeared

Published inProceedings of the 22nd International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS 2017)

Identifiers

arXiv1608.07547 from its landing_page_url
DOI10.1145/3037697.3037719

Related

Distinct fromhossain2020transform
Distinct fromhsiao2024rtl2mupath
Distinct fromtrippel2018meltdownprime

From bibtex.

Abstract

Memory consistency models (MCMs) which govern inter-module interactions in a shared memory system, are a significant, yet often under-appreciated, aspect of system design. MCMs are defined at the various layers of the hardware-software stack, requiring thoroughly verified specifications, compilers, and implementations at the interfaces between layers. Current verification techniques evaluate segments of the system stack in isolation, such as proving compiler mappings from a high-level language (HLL) to an ISA or proving validity of a microarchitectural implementation of an ISA. This paper makes a case for full-stack MCM verification and provides a toolflow, TriCheck, capable of verifying that the HLL, compiler, ISA, and implementation collectively uphold MCM requirements. The work showcases TriCheck's ability to evaluate a proposed ISA MCM in order to ensure that each layer and each mapping is correct and complete. Specifically, we apply TriCheck to the open source RISC-V ISA, seeking to verify accurate, efficient, and legal compilations from C11. We uncover under-specifications and potential inefficiencies in the current RISC-V ISA documentation and identify possible solutions for each. As an example, we find that a RISC-V-compliant microarchitecture allows 144 outcomes forbidden by C11 to be observed out of 1,701 litmus tests examined. Overall, this paper demonstrates the necessity of full-stack verification for detecting MCM-related bugs in the hardware-software stack.

A copy is held

pdf, 987.7 kB. Not published — it may be under copyright. The facts and links here are.

How it got here

How it got hereagent via bibtex
Added2026-09-17 23:33 UTC
Approved bya person 2026-10-05 21:22 UTC

Cite it as

@inproceedings{trippel2017tricheck,
  title        = {TriCheck: Memory Model Verification at the Trisection of Software, Hardware, and ISA},
  author       = {Caroline Trippel and Yatin A. Manerkar and Daniel Lustig and Michael Pellauer and Margaret Martonosi},
  year         = {2017},
  booktitle    = {Proceedings of the 22nd International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS 2017)},
  doi          = {10.1145/3037697.3037719},
}

This record lives at https://refs.drheap.org/trippel2017tricheck/ and will keep doing so.