S-Type Instruction

The S-type (store) format (opcode 010 0011) is designed for storing instructions and involves a lesser, 12-bit immediate. It follows the format:

31-2524-2019-1514-1211-76-0
imm[11:5]rs2rs1funct3imm[4:0]opcode

where the immediate is split up between imm[11:5] and imm[4:0] to keep rs1 ad rs2 at the same place as the R-type and efficiently use the same hardware for obtaining the registers.