Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EXERCISES 1) 30] The following code implements Y aX Y for a vector length 100. Initially, R1 is set to the base address of array

image text in transcribed
EXERCISES 1) 30] The following code implements Y aX Y for a vector length 100. Initially, R1 is set to the base address of array X and R2 is set to the base address of Y: DADDIU R4 ,R1, #800 ; R1 = upper bound for x foo: L.D F2,0 (R1) (E2)X(i) ADD . D F6,F4 , F6 ; (F6) -a"X(i) + Y(i) DADDI URI, R1, #8 ; increment X index DADDIU R2, R2,#8 ; increment y index DSLTU R3, R1,R4: test: continue loop? BNEZ R3,fooloop if needed Assume the functional unit latencies as shown in the table below. Assume a one cycle delayed branch that resolves in the ID stage. Assume that results are fully bypassed Instruction producing result FP mult FP add HP mult FP add Integer operations and all Instruction using result Latency in clock cycles FP ALU FP ALL HP store Any a) [15] Assume a single-issue pipeline. Show how the loop would look both unscheduled by the compiler and after compiler scheduling for both floating-point operation and branch delays, including any stalls or idle clock cycles. What is the execution time (in cycles) per element of the result vector, Y, unscheduled and scheduled? b) 15] Assume a single-issue pipeline. Unroll the loop as many times as necessary to schedule it without any stalls, collapsing the loop overhead instructions. How many times must the loop be unrolled? Show the instruction schedule. What is the execution time per element of the result

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

Step: 3

blur-text-image

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago