Categorygithub.com/Code-Hex/go-riscv
repositorypackage
0.0.0-20220215161347-42b9e718015f
Repository: https://github.com/code-hex/go-riscv.git
Documentation: pkg.go.dev

# README

RISC-V emulator

memo

Install tool-chain

Instructions

RISC-V has been defined 6-type instructions

  • R-format
    • instructions using 3 register inputs
    • add, xor, mul - arithmetic/logical ops
  • I-format
    • instructions with immediates, loads
    • addi, lw, jalr, slli
  • S-format
    • store instructions
    • sw, sb
  • U-format
    • instructions with upper immediates
    • lui, auipc - upper immediate is 20-bits
  • SB-format
    • branch instructions
    • beq, bge
  • UJ-format
    • jump instructions
    • jal