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) 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
Get step-by-step solutions from verified subject matter experts
