retagged by
1,472 views
2 votes
2 votes

Consider this question and its selected answer: https://gateoverflow.in/3690/gate2004-it-47

And this question: https://gateoverflow.in/1314/gate2009-28

Both questions are somewhat similar.

In the first one's answer, instruction $I_1$ (when i = 2), the $S_2$ stage is started in 9th cycle and not 8th, because the result of previous instruction ($I_4$) is still in the $S_2$/$S_3$ buffer during 8th clock cycle. https://gateoverflow.in/3690/gate2004-it-47?show=135162#c135162

While, in the answer of the second question, the $S_1$ stage of instruction $I_4$ (during first iteration), should start from clock 7, but the answer shows it in clock 6. Similarly with other instructions.

I am not getting why this difference? Is there any point that I am missing? 

PS. From where can I study this? Hamacher book doesn't contain pipelining in this much detail.

retagged by

Please log in or register to answer this question.

Related questions

52 votes
52 votes
10 answers
1
Kathleen asked Sep 22, 2014
33,924 views
Consider a $4$ stage pipeline processor. The number of cycles needed by the four instructions $I1, I2, I3, I4$ in stages $S1, S2, S3, S4$ is shown below:$$\begin{array}{|...
1 votes
1 votes
1 answer
4
Parshu gate asked Dec 10, 2017
375 views
In pipelining questions we have "If operand forwarding is there " and "If operand forwarding is not there " Please explain this difference and how to draw the chart f...