Question: concider following insctrution seq that is executed on a 5-stage pipeline design: Load x1, 0(x31) Load x2, 8(x31) Add x3, x1, x2 Mul x5, x1,

concider following insctrution seq that is executed on a 5-stage pipeline design:

Load x1, 0(x31)

Load x2, 8(x31)

Add x3, x1, x2

Mul x5, x1, x3

Sub x5, x5, x3

Load x6, 16(x31)

Add x6, x5, x6

Sub x7, x8, x9

Div x7, x7, x8

In this case the compiler is responsible for avoiding RAW hazards. Insert the minimum number of required NOPs into the instruction stream without re-ordering instructions to avoid all hazards.

Pleases write in detial

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!