Question: d . Consider the code sequence given below. Identify the data hazards in the given sequence. Your answer should contain all the necessary diagrams of
d Consider the code sequence given below. Identify the data hazards in the given sequence. Your answer should contain all the necessary diagrams of every step.
Iw $$
add $$$$
sub $$$
sll $$
lw $$
Iw $$
i How many clock cycles are required for the above code sequence in case of an ideal pipeline no hazard and calculate average CPI?
ii How many data hazards are there in the given code sequence?
iii. Apply only stall forwarding to overcome the data hazards. Calculate the total clock cycles and average CPI required after applying the method.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
