Consider a pipeline processor with 4 stages S1 to S4. We want to execute the following loop : for (i = 1; i < = 1000; i++)
{I1, I2, I3, I4} where the time taken (in ns) by instructions I1 to I4 for stages S1 to S4 are given below:
S1 | S2 | S3 | S4 | |
I1: | 1 | 2 | 1 | 2 |
I2: | 2 | 1 | 2 | 1 |
I3: | 1 | 1 | 2 | 1 |
I4: | 2 | 1 | 2 | 1 |