Question

Detect hazards in the following program. Associate the hazard type with the instruction causing the hazard....

Detect hazards in the following program. Associate the hazard type with the instruction causing the hazard.

1a. EX/MEM.RegisterRd = ID/EX.RegisterRn1

1b. EX/MEM.RegisterRd = ID/EX.RegisterRm2

2a. MEM/WB.RegisterRd = ID/EX.RegisterRn1

2b. MEM/WB.RegisterRd = ID/EX.RegisterRm2

LDUR X3, [X21, #43]

ADD X4, X3, X2

SUB X6, X8, X7

LSL X5, X1, #3

SUB X18, X9, X5

Homework Answers

Answer #1

I have completed this problem Please give thumbs up if you like it

Hazard means : Average execution cycles of program increases due to stalls is known as Hazard

It can be happen due to any type of dependencies between two or more instructions like Data dependency, control Dependency or Structural Dependency which causes Hazards

X3 causes dependency between I2 - I1

And X5 causes dependency between I5 - I4

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions