Question: For this problem, modify the hardware to include the three following instructions in the instruction set. These instructions are a combination of a jump and

For this problem, modify the hardware to include the three following instructions in the instruction set. These instructions are a combination of a jump and addi instruction.
jbdec rd,imm # X[rd] X[rd]-1; PC PC + sext(imm)
jhdec rd,imm # X[rd] X[rd]-2; PC PC + sext(imm)
jwdec rd,imm # X[rd] X[rd]-4; PC PC + sext(imm)
Example: jhdec x10,my_label # jump to my_label; increase x10 by 2
For this problem, fully describe the following:
(a) Required changes to the RISC-V MCU hardware
(b) Required changes the RISC-V assembler
(c) Required changes in RISC-V memory requirements
(d) Describe why these instructions are potentially useful
(e) Could these instructions be used to call subroutines

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 Databases Questions!