3. (3 pts) Determine which MIPS assembly instruction(s) if any, that we discusse
ID: 3600805 • Letter: 3
Question
3. (3 pts) Determine which MIPS assembly instruction(s) if any, that we discussed in class (R-format (including add, sub, or, and, nor, slt), lw, sw, beq, j) will not work correctly and explain what will happen instead, if each of the following control signals in the single-cycle datapath that we saw in class (shown below) is always one of 0 or 1:
a). MemtoReg = 0 (always stuck at 0)
b). ALUSrc = 1 (always stuck at 1)
Shift. Jump address [31-01 28 PC+4 131-28] Instruction [25-0 26 left 2 Add LI LU Add ALU result 4 RegDst Jump Shift eft 2 Instruction 91-261 Control ALUD MemRead MemtoRe ControlALUOP MemWrite ALU RegWrite Instruction [25-21 Read Read register 1 Read Instruction [2016 Readdaa 1 MWrite data 2 PCaddress Instruction 31-0 register 2 ALU ALUAddress "dataM Zero Instruction Instruction[15-11] Xregist memory Write write Data datamemory data Registers Instruction [15-016 32 control Instruction [5-0]Explanation / Answer
a)
In this case the branch instructions will not effort.
consequently instruction similar to beq,slt and j will not work which needs jump.
b)
In this case the ALU instructions will not effort. Instructions be
add,sub,or,and,nor
c)
In this case instruction which perform writebacks like load/stores instructions will not effort
lw,sw
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.