Skip to content

Code-Hex/go-riscv

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published