Question: Before starting the processor design - we need to be clear about the behavior of the different MIPS instructions we'll be focusing on in our
Before starting the processor design - we need to be clear about the behavior of the different MIPS instructions we'll be focusing on in our designs. This includes R-type (add,sub), lw, sw, beq, j, and a few others. Which of the following descriptions matches the behavior of a MIPS lw instruction?
A. The ALU performs an add, the data memory is read, and the register file writes the value read from memory to register rt. The program counter is incremented by 4.
B. The ALU performs an add and the register file writes the value computed to register rd. The program counter is incremented by 4.
C. The ALU performs a sub. If the result of the sub is zero, this impacts the value written to the program counter.
D. The ALU performs an add, the value in register rt is written to memory at the address computed by the ALU. The program counter is incremented by 4.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
