770 views
0 votes
0 votes

The title says it all:
 

How many stall cycles are caused due to each incorrect branch prediction?

Additional details you might need:

  • Branch is executed in execution stage of pipeline (but will love to know what happens when branch is executed in decode stage too)

1 Answer

0 votes
0 votes

it is not possible to execute branch in decode stage but it can be predicted in any stage and also it not necessary for branch target destination available at execution stage, but if nothing is given then you must assume that branch target will be available after execution stage.

regardless of branch execution stage(whichever it may be) the stall caused by branch is K-1 Here K is number of stage at which branch target will be available

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
1 answer
2
0 votes
0 votes
1 answer
4
Jaggi asked Jul 7, 2018
976 views
A computer with a 5 stage pipeline deals with conditional branches by stalling for the next 3 cycle after hitting one. how much does stalling hurt the performance is 20% ...