Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

computer architecture 5. The following code does computation over two vectors. Consider differentexecution scenarios and provide the average number of cycles per iteration for each

image text in transcribed

computer architecture

5. The following code does computation over two vectors. Consider differentexecution scenarios and provide the average number of cycles per iteration for each of them. e se DADDIU R4,R1,#800 ; RI-upper bound for X foo: L. D F2,0(RI): (F2) = X(i) MUL.D F2,F2,FO (F2) a X(i) L.D F6,0 (R2) ; (F6) Y(i) DIV. D F6F6F8 ; (F6) = Y(i)/b SUB.D F6,F2,F6 ; (F6) a X(i) -Y(i)/b Number of Clock Cycles Operations FP Multiplication FP Division FP Subtraction Integer 15 DADDIU R1,R1,#8 ; increment X index DADDIU R2, R2,#8 ; increment Y index DSLTU R3,R1,R4 ; test: continue loop? BNEZ R3,foo ; loop if needed Calculation Memory Access Assume a single -issue pipelinenotusing Tomasulo's algorithm. Show how an iteration of the loop would execute without being scheduled by compiler. 5. The following code does computation over two vectors. Consider differentexecution scenarios and provide the average number of cycles per iteration for each of them. e se DADDIU R4,R1,#800 ; RI-upper bound for X foo: L. D F2,0(RI): (F2) = X(i) MUL.D F2,F2,FO (F2) a X(i) L.D F6,0 (R2) ; (F6) Y(i) DIV. D F6F6F8 ; (F6) = Y(i)/b SUB.D F6,F2,F6 ; (F6) a X(i) -Y(i)/b Number of Clock Cycles Operations FP Multiplication FP Division FP Subtraction Integer 15 DADDIU R1,R1,#8 ; increment X index DADDIU R2, R2,#8 ; increment Y index DSLTU R3,R1,R4 ; test: continue loop? BNEZ R3,foo ; loop if needed Calculation Memory Access Assume a single -issue pipelinenotusing Tomasulo's algorithm. Show how an iteration of the loop would execute without being scheduled by compiler

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago