Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Floating-Point Instructions (Loop Timing II) Consider the following code fragment: loop: l.d f0,0(r2) l.d f2,0(r3) s.d f0,0(r2) sub.d f4,f4,f0 add.d f4,f4,f4 addi r2,r2,8 addi r3,r3,8

Floating-Point Instructions (Loop Timing II) Consider the following code fragment:

loop:

l.d f0,0(r2)

l.d f2,0(r3)

s.d f0,0(r2)

sub.d f4,f4,f0

add.d f4,f4,f4

addi r2,r2,8

addi r3,r3,8

sub r4,r5,r3

bnez r4,

loop 'sub.d' and 'add.d' have 3 x-boxes. 'mul.d' has 4 x-boxes. Functional units are fully pipelined. The loop iterates 90 times. Draw the space-time diagram of this code. Calculate the total execution time of the loop.

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

Students also viewed these Databases questions