Question: Question 1 Let us consider the following code segment: ADD X 1 , X 2 , X 3 SUB X 2 , X 1 ,

Question 1
Let us consider the following code segment:
ADD X1, X2, X3
SUB X2, X1, X4
LDUR X3,[X5,\#10]
ADD X6, X3, X2
How many data hazards are there in this code?
Question 2
In Question 1, if we use stalling to resolve every hazard, how many cycles will it take to finish the code sequence?
Question 3
In Question 1, if we use both forwarding and stalling, how many cycles will it take to finish the code sequence?
The answer is not 5 or 6
Question 4
data hazard require both stalling and forwarding
Question 1 Let us consider the following code

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 Programming Questions!