Question: Q 2 ( b ) [ 1 5 Marks ] The J - type instruction in RISC - V has the following encoding format. Only

Q 2(b)
[15 Marks]
The J-type instruction in RISC-V has the following encoding format. Only the most significant 20 bits (20:1) of the 21-bit (20:0) signed immediate value are encoded in the instruction; the least significant bit (bit 0) is not encoded because it is always 0.
\begin{tabular}{|c|c|c|}
\hline \(31: 12\) & \(11: 7\) & \(6: 0\)\\
\hline imm \(_{20,10: 1,11,19: 12}\) & rd & op \\
\hline 20 bits & 5 bits 7 bits \\
\hline
\end{tabular}
Convert the following jump instructions into machine code. Instruction addresses are given to the left of each instruction. The J-Type instruction's 7-bit opcode (i.e., the op) is 1101111.
Q 2 ( b ) [ 1 5 Marks ] The J - type instruction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!