Question: Question 2 [ 3 0 points ] Given 3 MIPS assembly programs and they are executed in a 5 - stage pipeline processor. Answer the

Question 2[30 points]
Given 3 MIPS assembly programs and they are executed in a 5-stage pipeline processor. Answer the following questions:
(a) Identify the type of hazards for each program.
(b) Identify all the data dependencies for each program
(c) Consider the program in (iii), and answer the following questions, [assuming there is no structural hazard]
i. Assume that only "nop" instruction can be added to resolve the data hazard, how many "nop" instructions are needed?
ii. Draw the pipeline diagram with the hardware methods that are taught during the lecture to resolve only the data hazard(s) found in part (a) for the program (iii).
iii. What is the speedup factor when comparing the methods in part c(i) and part c(iii)? Which one is more efficient?
Question 2 [ 3 0 points ] Given 3 MIPS assembly

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!