GATEverse
← GATE CSE 2009

Q28

MCQ2 marks, −0.67

Consider a 44 stage pipeline processor. The number of cycles needed by the four instructions I1,I2,I3,I4I1, I2, I3, I4 in stages S1,S2,S3,S4S1, S2, S3, S4 is shown below:

S1S2S3S4 I12111I21322I32113I41222\begin{array}{|c|c|c|c|c|} \hline \textbf{} & \textbf {S1} &\textbf {S2} & \textbf {S3} & \textbf{S4 } \\\hline \textbf{I1}& 2 & 1 & 1 & 1 \\\hline \textbf{I2} & 1 & 3 & 2 & 2\\\hline \textbf{I3}& 2 & 1 & 1 & 3 \\\hline \textbf{I4} & 1 & 2 & 2 & 2 \\\hline \end{array}

What is the number of cycles needed to execute the following loop? For (i=1 to 2) {I1; I2; I3; I4;}

Sign in to save attempts.

Loading…