Clone this repo:

Branches

  1. 3897558 Updated repo to stay in sync with mpact_sim and mpact_riscv. by Tor Jeremiassen · 1 year, 10 months ago main
  2. 9c6e663 Updated WORKSPACE to deduplicate info by Tor Jeremiassen · 3 years ago v0.0.2
  3. 009194e Added link to codelabs in README.md by Tor Jeremiassen · 3 years, 1 month ago v1.0.0
  4. 891304a Final edits before open-sourcing by Tor Jeremiassen · 3 years, 1 month ago
  5. 56fd7f2 Initial commit of MPACT-Sim codelab exercises by Tor Jeremiassen · 3 years, 1 month ago

MPACT-Sim Codelabs

This repoistory contains the codelab exercises for the MPACT-Sim codelabs. These codelabs provide a tutorials on how to get started using MPACT-Sim to create instruction set simulators.

The codelabs guide you to write most of the required code to build an instruction set simulator for the RiscV 32I instruction set (integer instructions only).

There are four directories that contain code and build targets for the coding exercises :

  • riscv_isa_decoder
    This directory contains the skeleton and solution for writing the description file for the encoding independent instruction decoder.

  • riscv_bin_decoder
    This directory contains the skeleton and solution for writing the description file for the binary decoder.

  • riscv_semantic_functions
    This directory contains the skeleton and solution for writing the semantic functions that implement the instructions in the codelab.

  • riscv_full_decoder
    This directory contains the skeleton and solution for writing the full instruction decoder that integrates the decoders that were generated in prior exercises.

Additionally, there is a directory other, that contains support code that is not part of the exercises, but allows a finished simulator to be built and executed. A sample “Hellow World” executable is also provided.