In: Computer Science
4 – The following 32-bit binary word written in hexadecimal format represents a single RISC-V assembly instruction. What is the RISC-V instruction format and specific assembly language instruction?
0x00156A33
:: Solution ::
0x00156A33
Binary Value = 0000 0000 0001 0101 0110 1010 0011 0011
Each RISC-V Instruction has right most 7 bits for opcode.
Opcode 0110011 represents R-Type operations. Format for R-type Risc-V instruction is as below.
func7 + func3 represents actual operation. Based on below information, we can tell operation is OR operation
So, Instruction is
OR X20, X10, X1
Please rate my answer. Thank you...