Modelling and proving the monotonicity of processor pipelines in Coq

The work

AuthorsAlban Gruin; Armelle Bonenfant; Thomas Carle; Christine Rochange
Editors
Typeinproceedings
Year2024
Citekeygruin2024modelling

Where it appeared

Published in22nd ACM-IEEE International Symposium on Formal Methods and Models for System Design (MEMOCODE)
Pages12--21

Identifiers

DOI10.1109/memocode63347.2024.00007
handlehal-04729453

Related

Distinct frombensaid2023formal
Distinct frommelham1990formalizing
Distinct fromnaylor2025abstracting
Distinct fromparrot2023design

From bibtex.

Abstract

In critical real-time systems, the worst-case execution time (WCET) of software tasks must be statically bounded in order to guarantee that they all satisfy their timing constraints (e.g. deadlines). Obtaining such bounds is challenging due to the complexity of the software and of the acceleration mechanisms implemented in the hardware. Particular behaviors, known as timing anomalies, break some simplifying assumptions for the computation of WCET in single and multi-core processors. Some cores have been designed to implement a pipeline-level property known as monotonicity that guarantees that no timing anomaly can occur in the pipeline. Proving the monotonicity of a pipeline is tedious and error-prone, and so is reading the proof and convincing oneself of its validity. We thus propose to rely on the Coq proof assistant to guarantee the soundness of the proofs. In this paper, we show how the monotonicity property and the standard elements composing a pipeline can be modelled in Coq. Using an example based on an open-hardware RISC-V core from the literature, we introduce the main elements of the proof and discuss their reusability for other cores. We conclude that the model and proofs that we provide can be easily adapted to describe other in-order pipelines of equivalent complexity.

A copy is held

pdf, 485.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-18 03:37 UTC
Approved bya person 2026-10-05 21:11 UTC

Cite it as

@inproceedings{gruin2024modelling,
  title        = {Modelling and proving the monotonicity of processor pipelines in Coq},
  author       = {Alban Gruin and Armelle Bonenfant and Thomas Carle and Christine Rochange},
  year         = {2024},
  booktitle    = {22nd ACM-IEEE International Symposium on Formal Methods and Models for System Design (MEMOCODE)},
  pages        = {12--21},
  doi          = {10.1109/memocode63347.2024.00007},
}

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