Question: Write a MIPS Code that contains at least 7 instructions with multiple data hazards and at least one load-use data hazard. (Add comments to clarify

Write a MIPS Code that contains at least 7 instructions with multiple data hazards and at least one load-use data hazard. (Add comments to clarify it).
Instructions and hints:
1- You must run the code three times: a- without forwarding, b- with forwarding, and c- with forwarding and code reordering. Your code must include a load-use data hazard that can be finally fixed by forwarding + code reordering (no RAW stall at all).
2-You MUST use the following assembler EDUMIPS64:
3- Your code must contain ONLY the following instructions: lb,sub,subu,andi,xor,sh.

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!