Suppose the branch frequencies (as percentages of all instructions)are

Question
Suppose the branch frequencies (as percentages of all instructions)are as follows:Conditional branches15%Jumps and calls Taken conditional branches1%60% are taken We are examining a four-deep pipeline where the branch is resolved

at the end of the second cycle for unconditional branches and at the end of the third cycle for conditional branches. Assuming that only the first pipe stage can always be done independent of whether the branch goes and ignoring other pipeline stalls, how much faster would the machine be without any branch hazards? Now assume a high-performance processor in which we have a15-deep pipeline where the branch is resolved at the end of the fifth cycle for unconditional branches and at the end of the tenth cycle for conditional branches. Assuming that only the first pipe stage can always be done independent of whether the branch goes and ignoring other pipeline stalls, how much faster would the machine be without any branch hazards?

Question image 1Question image 2Question image 3