Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, 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
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