666 views
0 votes
0 votes

What does the Following line states:- 

Branch instruction aren't overlapped i.e. the instruction after the branch is not fetched till the branch instruction is executed.

Say in below Question :-    

An instruction pipeline has Five Stages where each stage takes 2ns and all instruction use all five stages.Branch instruction aren't overlapped i.e. the instruction after the branch is not fetched till the branch instruction is executed.

How many stalls will be there?

Will it be 4.According to my understanding before fetching the branch target the branch instruction will be completely executed hence since its a five stage pipeline then when the branch instruction will be at final stage before fetching the branch target the instruction which was incorrectly fetched will be in stage 4. Hence total 4 Stalls isn't it?

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
2