Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

image text in transcribed

(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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions