Question: I need help with these single- cycle datapath questions. QUESTION 1. Modify the single-cycle datapath by implementing the 'load word indexed' instruction (lwx). Below is
I need help with these single- cycle datapath questions.

QUESTION 1. Modify the single-cycle datapath by implementing the 'load word indexed' instruction (lwx). Below is the syntax and the encoding. The instruction below reads the word from memory address (t1+t2) and stores it in register t0 unique t2 t0 opcode rS rt shamt funct a) Give the functional form of the instruction based on the register names b) Give the functional form based on the instruction fields c) Draw the changes on the datapath diagram. d) Give the values of the control signals. QUESTION 2. Repeat the question above for the 'increment' instruction (inc). Below is the syntax and the encoding. The instruction below increments both registers t0 and tl by 4. Notice that the immediate value in the instruction is equal to 4 inc $t0, Stl unique t0 tl 4 opcode rs rt immediate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
