Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For the following snippets of assembly, determine the type of the hazard ( s ) , which instruction ( s ) , and which register
For the following snippets of assembly, determine the type of the hazards which instructions
and which registers it occurs for. Assume the forwarding logic has been implemented, and the
branch misprediction penalty is cycles. Assume there is code above and below the provided
code. Each part of this question is independent from the other parts.
Example:
AND R R R
ADD R R R Data Hazard, RRead after Write
a ADD R R R
SUB R R R
AND R R R
b ADD R R R
STR RR #
SUB R R R
LDR RR #
c LSL R R #
ADD R R R
B END
LSL R R #
ADD R R R
END
dFor this question, Let R R R
START
ADD R R R
AND R R R
CMP R R
BLT START
SUB R R R
STR RR #
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started