U-Type Instruction
The U-type (upper immediate) format is designed for the instructions lui, auipc. It follows the format:
| 31-12 | 11-7 | 6-0 |
|---|---|---|
| imm[19:0] | rd | opcode |
where
rdis the destination register, andim[19:0]is a 20-bit large immediate for large address loading.