Skip to content

alifarazz/RISCImposter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RISC Imposter

A general purpose cycle accurate RISC cpu simulator.

This simulator currently supports MIPS arch. It is designed to support other CPU architectures as well.

Instruction Support:

MIPS:

  • R type: Add, And, Or, Xor, Slt
  • I type: Beq, Lw, Sw
  • J type: j

Dependencies

Imposter needs meson build system and a sane C compiler.

macOS

Imposter's dependencies can be installed via Homebrew :

$ brew install clang meson

Linux

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

Windows:

First, ensure that you have a working C compiler.

Then install meson

Compiling

Go to the root of the project and run:

$ meson build
$ cd build/
$ ninja

Usage

Tweak the ins.txt to include instructions then run Imposter:

$ ./imposter

Contribution:

You know the drill:

  • fork
  • new feature branch
  • do stuff
  • commit
  • push
  • pull request