Question: (0) Q(3) Consider the following MIPS loop Loop: L.D FO, O(R1) ADD.D F4, FO, F2 S.D F4,0(R1) DADDUI R1, R1, #-8 BNE R1, R2, Loop

 (0) Q(3) Consider the following MIPS loop Loop: L.D FO, O(R1)

(0) Q(3) Consider the following MIPS loop Loop: L.D FO, O(R1) ADD.D F4, FO, F2 S.D F4,0(R1) DADDUI R1, R1, #-8 BNE R1, R2, Loop FO = array element add scalar in F2 store result decrement pointer branch R1 != R2 Latency of instructions is as follows: LD has 1 cycle stall, ADDD has 2 stalls, and DADDUI has 1 stall a. Unroll the loop twice and give total execution time in cycles. b. Show the unrolled loop after it has been scheduled and give the give total execution time in cycles. (12) (0) Q(3) Consider the following MIPS loop Loop: L.D FO, O(R1) ADD.D F4, FO, F2 S.D F4,0(R1) DADDUI R1, R1, #-8 BNE R1, R2, Loop FO = array element add scalar in F2 store result decrement pointer branch R1 != R2 Latency of instructions is as follows: LD has 1 cycle stall, ADDD has 2 stalls, and DADDUI has 1 stall a. Unroll the loop twice and give total execution time in cycles. b. Show the unrolled loop after it has been scheduled and give the give total execution time in cycles. (12)

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!