Symbolic Encoding
Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.
RISC-V Instruction Encoding with Symbolic Registers
The following questions ask you to provide the 32-bit binary encoding
of different RISC-V instructions. You will need to use the RISC-V ISA handout for reference. For clarity, please separate each
field of the instruction with an underscore in your answer (e.g.,
11111_00000).
jal ra, label where label is 10 instructions after the current instruction? 0b
lw s1, 4(sp)? 0b
beq a2, t6, label where label is 7 instructions after the current instruction? 0b
sw t3, 8(a0)? 0b
0b0000000_00101_01010_101_01000_0110011 encode (using symbolic registers)?