Please refer to the design documentation for more details.
R-Type:
ins rd rs1 rs2
I-Type (Except jalr ):
ins rd rs1 immed
SB-Type:
ins rs1 rs2 label
S-Type:
ins rs1 immed(rs2)
U-Type:
ins rs1 immed
UJ-Type:
jal rd label
jalr:
jalr rd immed(rs1)
- Extract RISCVSim.tar.gz
- Run the install script
- Run the Risc-V simulator from the shortcut.
- Navigate to the directory containing the Makefile.
- Run the following command for executing the Phase 2 code (without Piplining): make p2 INP=path/to/the/file(without the asm extension)
- Run the following command for executing the Phase 3 Code (with Piplining): make p3 INP=path/to/file (without the asm extension)
Example:
make p2 INP=test
Example 2:
make p3 INP=bubble
Example 3:
make p3 INP=fib