A general purpose cycle accurate RISC cpu simulator.
This simulator currently supports MIPS arch. It is designed to support other CPU architectures as well.
- R type: Add, And, Or, Xor, Slt
- I type: Beq, Lw, Sw
- J type: j
Imposter needs meson build system and a sane C compiler.
Imposter's dependencies can be installed via Homebrew :
$ brew install clang meson
You need Clang or gcc, plus meson.
They can be installed using the system package manager, for example:
# Debian, Ubuntu, etc.
$ apt-get install meson clang
# Fedora
$ dnf install meson clang
# CentOS, RHEL, ...
$ yum install meson clang
# Arch Linux
$ pacman -S meson clang
First, ensure that you have a working C compiler.
Then install meson
Go to the root of the project and run:
$ meson build
$ cd build/
$ ninja
Tweak the ins.txt
to include instructions then run Imposter:
$ ./imposter
You know the drill:
- fork
- new feature branch
- do stuff
- commit
- push
- pull request