S-Type Instruction
| 31-25 | 24-20 | 19-15 | 14-12 | 11-7 | 6-0 |
|---|---|---|---|---|---|
| imm[11:5] | rs2 | rs1 | funct3 | imm[4:0] | opcode |
where the immediate is split up between
imm[11:5]andimm[4:0]to keeprs1adrs2at the same place as the R-type and efficiently use the same hardware for obtaining the registers.