Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q6. Assume we have the following sequence of instructions, and assume that it is executed on a 5-stage pipelined datapath: add r5,r2,r1 lw r3,4(r5) lw

Q6. Assume we have the following sequence of instructions, and assume that it is executed on a 5-stage pipelined datapath:

add r5,r2,r1

lw r3,4(r5)

lw r2,0(r2)

or r3,r5,r3

sw r3,0(r5)

a. If there is no forwarding or hazard detection, insert nops to ensure correct execution and draw the pipeline execution diagram.

b. Now use nops only when a hazard cannot be avoided by changing or rearranging these instructions and draw the pipeline execution diagram.

c. Now assume we schedule the above reordered instructions to be executed on a 2-issue statically scheduled processor, as shown below, draw the pipeline execution diagram again.

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions