Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . 1 Identify all of the data hazards and their resolution with NOPs assuming no forwarding or hazard detection hardware is being used Hazards

2.1 Identify all of the data hazards and their resolution with NOPs assuming no forwarding or
hazard detection hardware is being used
Hazards identified:
or x13, x12, x11
ld x10,0(x13) EX to 1st RAW Hazard
ld x11,8(x13) EX to 2nd RAW Hazard
add x12, x10, x11 MEM to 1st RAW [load-use-data] & MEM to 2nd Hazards
subi x13, x12,16 Ex to 1st RAW Hazard
NOPS introduced to resolve Hazards:
or x13, x12, x11
NOPS
NOPS
ld x10,0(x13) EX to 1st RAW Hazard resolution with 2 NOPs
ld x11,8(x13) EX to 2nd RAW Hazard resolved as well from above 2 NOPs
NOPS
NOPS
add x12, x10, x11 MEM to 1st RAW [load-use-data] & MEM to 2nd Hazards
resolved with 2 NOPs
NOPS
NOPS
subi x13, x12,16 Ex to 1st only RAW Hazard resolved with 2 NOP

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions