Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started