Question: 9. Given the MIPS code below, answer the questions. ADDI T1, TO, O LW T2, 100(TO) LW T7, 220(TO) ADDI T3, TO, 50 LOOP1: SLLI
9. Given the MIPS code below, answer the questions. ADDI T1, TO, O LW T2, 100(TO) LW T7, 220(TO) ADDI T3, TO, 50 LOOP1: SLLI T5, T1, 2 LW T6, 1200(T5) ADD T6, T6, T2 ADD T6, T6, T7 SW O(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
Get step-by-step solutions from verified subject matter experts
