Question: Given the MIPS code below, answer the questions. ADDI T1, TO, O LW T2, 100(TO) LW T7, 220(TO) ADDI T3, TO, 50 LOOP 1: SLLI

 Given the MIPS code below, answer the questions. ADDI T1, TO,

Given the MIPS code below, answer the questions. ADDI T1, TO, O LW T2, 100(TO) LW T7, 220(TO) ADDI T3, TO, 50 LOOP 1: SLLI T5, T1, 2 LW T6, 1200(T5) ADD T6, T6, T2 ADD T6, T6, T7 SW 0(T5), T6 ADDI R1, R1,1 SLE T4, T1, T3 BNEZ T4, LOOP1 LOOP2: SW 10000(TO), T1 a) Find data hazards which can be overcome by forwarding methods. (5pt) b) Is there any stall despite forwarding method is applied? If yes, is it possible to overcome that? (5pt) c) Does any control hazard exist? If yes, what would the solution be? (10pt) d) What is the number of clock cycles if this code is executed when the loop count is 50? (10pt) Given the MIPS code below, answer the questions. ADDI T1, TO, O LW T2, 100(TO) LW T7, 220(TO) ADDI T3, TO, 50 LOOP 1: SLLI T5, T1, 2 LW T6, 1200(T5) ADD T6, T6, T2 ADD T6, T6, T7 SW 0(T5), T6 ADDI R1, R1,1 SLE T4, T1, T3 BNEZ T4, LOOP1 LOOP2: SW 10000(TO), T1 a) Find data hazards which can be overcome by forwarding methods. (5pt) b) Is there any stall despite forwarding method is applied? If yes, is it possible to overcome that? (5pt) c) Does any control hazard exist? If yes, what would the solution be? (10pt) d) What is the number of clock cycles if this code is executed when the loop count is 50? (10pt)

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!