Question: You are asked to design a small computing system with a customized 17-bits ISA that can execute the following loop program: for (i=0, i Sum
You are asked to design a small computing system with a customized 17-bits ISA that can execute the following loop program:
for (i=0, i
Sum = Sum + 2i
There needs one R-type (Add), two I-type (beq, addi), and one J-type (J) Instructions and four registers $zero, $t0, $t1, $t2 to translate the above program into MIPS Code. Assuming t0, t1, t2 hold the values of x, i and Sum respectively. Here's the MIPS Code for the loop program above.

Question: Locate the HAZARDs (Data, Control) if there's any and Solve the Hazards.
LI: add $t1, Szero, Szero beg $t1,$t0, L2 add $t2, St2, $t1 add $12, $12, $t1 addi $12, $12,1 JLI exit... L2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
