Coder Social home page Coder Social logo

gmh5225 / rv64i-iss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from levyhsu/rv64i-iss

0.0 0.0 0.0 1.97 MB

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

Home Page: https://levyhsu.com/2018/06/rv64i-instruction-set-simulator/

License: GNU General Public License v3.0

Shell 0.34% C++ 32.71% C 4.02% Assembly 35.34% Makefile 0.99% Batchfile 26.60%

rv64i-iss's Introduction

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

rv64i-iss's People

Contributors

levyhsu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.