Skip to content

An instruction set simulator (ISS) for the RV32/64I subset of the RISC-V instruction set.

License

Notifications You must be signed in to change notification settings

LevyHsu/RV64I-ISS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RV64I-ISS

An instruction set simulator (ISS) for the RV64I subset of the RISC-V instruction set with full memory simulation.

make

$make

parent directory

  • documentation
  • src
  • tests
    - command_tests
    - harness_tests
    - instruction_tests
    - compiled_tests
    - csr_tests

Debug with "-v" flag

command_tests

   $./rv64sim < command_test_m.cmd

instruction tests

   $./run_test instruction_test_add

or

   $./run_instruction_tests

Support instruction list:

RV32I Base Instruction Set:

LUI AUIPC JAL JALR BEQ BNE BLT BGE BLTU BGEU LB LH LW LBU LHU SB SH SW ADDI SLTI SLTIU XORI ORI ANDI SLTI SLTIU XORI ORI ANDI SLLI SRLI SRAI ADD SUB SLL SLT SLTU XOR SRL SRA OR AND FENCE FENCE.I ECALL EBRAKE CSRRW CSRRS CSRRC CSRRWI CSRRSI CSRRCI

RV64I Base Instruction Set (in addition to RV32I):

LWU LD SD SLLI SRLI SRAI ADDIW SLLIW SRLIW SRAIW ADDW SUBW SLLW SRLW SRAW

CSR Register:

0xF11 Mevendorid
0xF12 Marchid
0xF13 Mimpid
0xF14 Mhartid
0x300 Mstatus
0x301 Misa
0x304 Mie
0x305 Mtvec
0x340 Mscratch
0x341 Mepc
0x342 Mcause
0x343 Mtval
0x344 Mip

About

An instruction set simulator (ISS) for the RV32/64I subset of the RISC-V instruction set.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published