Question: Computer Architecture question Question 1: Pipelining - Control Hazards ( 20 points) Assume that we have a 5-stage pipeline that has no particular branch prediction

 Computer Architecture question Question 1: Pipelining - Control Hazards ( 20

Computer Architecture question

Question 1: Pipelining - Control Hazards ( 20 points) Assume that we have a 5-stage pipeline that has no particular branch prediction mechansim employed. Thus, when we have a branch instruction, we insert pipeline bubbles until the branch outcome is known. For this question, we assume that the branch outcome is known at the end of third pipeline stage (i.e., EX). a) Below is an affect of taken branch on the pipeline. Please, explain what is happening in the pipeline. Why do we see that inst +1 stalls at cycle 3 , and there is a another IF at cycle 4 for inst +1 ? What is happening for inst +2 and inst +3 ? b) Below is an affect of not-taken branch on the pipeline. Please, explain what is happening in the pipeline. Why don't we see the behaivor that we saw inst +1 in taken branch scenario? Why does inst +1 stall at cycle 3 , and continue with ID stage at cycle 4 ? What is happening for inst +2 and inst +3

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