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.

You are asked to design a small computing system with a customized

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!