- This program is made for showing how the "MIPS 5-staged pipeline" works.
- Your assembly.s code will be converted to assembly.asm code and then executed.
- You can see the process of execution in the data path of the window.
- This program supports the following instructions
- R-type
add, sub, and, or, slt
- I-type
lw, sw, beq
- J-type
j
- R-type
- Code Type: ARM64
- Platform: macOS 12.6 (21G115)
- Checkout following link
- You can find a few ways to install raylib
https://github.com/raysan5/raylib/wiki/Working-on-macOS
https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux
- You need to install flex and bison before installing spim
$ brew install flex bison
$ sudo apt-get -y install flex bison
$ make (all) [SIZE_FACTOR=size_factor]
- SIZE_FACTOR: size factor of the window (default: 8.0)
- Only 7, 8, and 9 are supported for SIZE_FACTOR
- If you want to resize the simulator, you have to execute
$ make re SIZE_FACTOR=other_value
$ make run [INPUT_FILE="test.s"] [SIZE_FACTOR=size_factor]
- Default INPUT_FILE is "test.s"
- Rule "run" executes following two commands
cd ./libs/assembler/spim; ./spim -file ../../../test.s -dump; cd ../../../;
./mips_pipeline_simulator ./libs/assembler/spim/text.asm ./libs/assembler/spim/data.asm
- Using in manual is not recommended
$ make run [INPUT_FILE="your_assembly_file.s"]
- INPUT_FILE has to be ".s" file
make (all)
: compile programmake run
: run program (includes make all)make clean
: remove all object filesmake fclean
: remove all object files and executable filemake re
: recompile program
Key | Action |
---|---|
← |
Move camera to left |
→ |
Move camera to right |
↑ |
Move camera to up |
↓ |
Move camera to down |
i/o |
Zoom in / Zoom out |
r |
Reset camera |
d |
Open/Close User Data Segment Page |
[/] (in Data Segment Page) |
Move to prev/next page |
ESC ⎋ |
Exit program |
Mouse | Action |
---|---|
Click "next_cycle" button |
Execute next cycle of pipeline |