2,529 views
3 votes
3 votes

Whenever Question is given on pipeline with branching i am confused to calculate that how many stalls will be there in the pipeline according to the constraint depicted in the pipeline. How to solve Such Questions?

Like in this Question https://gateoverflow.in/683/gate2000-12   How many stalls will be created.Please Explain with any Example ?

And what is meant by this line "If there are N Cycles then N-1 Stalls will be there"?

Please Help

1 Answer

Best answer
3 votes
3 votes

look at this example . here five stage pipeline IF,ID,EX,MA,WB . and decoding will be done at ID stage (2nd stage) . when we execute this then expected optput is I1-I2-BI1. BUT in the pipeline IF stage is always overlaping with ID stage so befor decoding the correntlly fetched instn the sequence instn (I3) is already inserted in a pipeline  when ID stage decode the instn as a jump instn then I3 instn become unwanted instn. and actual output is - I1-I2-I3-BI1. HERE decoding (target address) is done at 2nd level and one unwanted instn is fetchd. this unwanted instn is colled branch panality(stall) .

selected by

Related questions

1 votes
1 votes
1 answer
4