I-Type Instruction

The I-type (immediate) format (opcode 001 0011) is designed for instructions that involve two registers and one 12-bit immediate, such as arithmetic, bitwise, conditional setting, and load instructions. It follows the format:

31-2019-1514-1211-76-0
imm[11:0]rs1funct3rdopcode

where imm[11:0] is the 12-bit immediate and indicates that the 0th bit is stored at pos. 20, rs1 is the source register, and rd is the destination register.

Note! ! Any value outside this range will be INVALID!

Because the immediate is 12-bit, it can hold values in the range