Using the CASM language for simulator synthesis and model verification

  • Authors:
  • Roland Lezuo;Andreas Krall

  • Affiliations:
  • Vienna University of Technology, Vienna, Austria;Vienna University of Technology, Vienna, Austria

  • Venue:
  • Proceedings of the 2013 Workshop on Rapid Simulation and Performance Evaluation: Methods and Tools
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present the CASM language, an abstract state machine (ASM) based modeling language originally designed for verifying compiler backends. We demonstrate the expressiveness by describing an instruction set simulator (ISS) for MIPS in approximately 700 lines of code. Further we present a refinement of the models to cycle-accurately describe two implementations of the classic 5-stage MIPS pipeline. Utilizing symbolic execution allows us to prove semantic equivalence of the pipeline implementations and the instruction set description. Finally we compile the models to C++ and provide a small runtime to create a system simulator achieving a performance of approx. 1 MHz in MiBench and SPECInt2000 benchmarks.