Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The implementation of ANRI, a new RISC ISA, appears below. Many instructions are similar to those of MIPS, though they differ in format and other
The implementation of ANRI, a new RISC ISA, appears below. Many instructions are similar to those of MIPS, though they differ in format and other features. Like MIPS, ANRI registers are named r r
a How does ANRI differ from MIPS in the number of registers and the immediate size?
b Like MIPS, ANRIs Format R is used for threeregister instructions such as add r r r Show a possible ANRI Format R consistent with the hardware. Show the bit positions and the name of each field in ANRI Format R based on reasonable guesses. Show possible field values for add r r r and for or r r rTwo instructions for a reason.
c Like MIPS, ANRIs Format I is used for immediate instructions such as addi r r Assume that like MIPS, each of the dozens of ANRI arithmetic and logical instructions has an immediate variant. Show the bit position and name of each instruction field in ANRI Format I based on reasonable guesses and heeding the text above. Show possible field values for addi r r and for ori r r
d Consider load and store instructions. Show encoding of lw rr and sw rr in ANRI Format I, or something similar. Dont forget to base the encoding on the hardware.
e Consider procedure call instructions. Based on the implementation, why does it appear that ANRI would lack the equivalent of MIPS jal SomeProcedure though it could still encode the equivalent of jalr r r
f Based on the hardware above, ANRI would lack a means of loading an arbitrary bit constant into a register using two instructions. Modify the hardware so that ANRI could encode an instruction like MIPS lui, one that could be used to load an arbitrary bit constant into a register using two instructions. Modify hardware to implement an instruction to help loading a bit constant. Show the format and encoding of this new instruction. The format must fit in as much as possible with existing formats.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started