RISC-V指令集
risc-v有六种基本指令格式:
R-type 寄存机-寄存器操作
I-type 短立即数和访存load操作
S-type 访存store操作
B-type 条件跳转操作
U-type 长立即数操作
J-type 无条件跳转
其中rd, rs1, rs2各占用5bit,funct3占用3bit, funct7占用7bit, opcode占用7bit, 加起来一条指令固定占用32bit