Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
Q1: Write a MIPS Code that contains at least 7 instructions with at least one load-use data hazard. (Add comments to clarify your code).
Q2: Execute your code written above without forwarding using EduMIPS64.
Print your EduMIPS64 screen after execution showing the Cycles and Statistics windows ONLY.
Q3: Execute your code written above with forwarding using EduMIPS64.
Print your EduMIPS64 screen after execution showing the Cycles and Statistics windows ONLY.
Q4: Reorder your code trying to avoid load-use data hazard.
Q5: Execute your reordered code written above with forwarding using EduMIPS64.
Print your EduMIPS64 screen after execution showing the Cycles and Statistics windows ONLY.

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

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

Why should I take drugs that have side effects?

Answered: 1 week ago