Answered step by step
Verified Expert Solution
Link Copied!

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 r0, r1,...
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 three-register instructions such as add r1, r2, r3. 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 r1, r2, r3 and for or r1, r2, r3.(Two instructions for a reason.)
c) Like MIPS, ANRIs Format I is used for immediate instructions such as addi r4, r5,6. 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 r4, r5,6 and for ori r4, r5,6.
d) Consider load and store instructions. Show encoding of lw r7,8(r9) and sw r10,12(r11) 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 r1, r2.
f) Based on the hardware above, ANRI would lack a means of loading an arbitrary 32-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 32-bit constant into a register using two instructions. Modify hardware to implement an instruction to help loading a 32-bit constant. Show the format and encoding of this new instruction. The format must fit in as much as possible with existing formats.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions