Consider a 4-stage pipeline processor. The number of cycle needed by the four instruction l1, l2, l3, l4 in stages S1, S2, S3, S4 is show below

  S1 S2 S3 S4
l1 2 1 1 1
l2 1 3 2 2
l3 2 1 1 3
l4 1 2 2 2

The number of cycles needed to execute the following loop is ____________.

for(i=1 to 2)
{     l1; l2; l3; l4;
}

Responses

More Comments

the answer should be 25 .

sudsho's picture

answer is 23 only..here only 4 instructions are repeated 2 times and we can assume pipeline buffers to store multiple results in between...

sumitverma's picture

@habibkhan correct answer is 23. Please recheck your solution. In your solution, I2 will leave at 18.

pratikshende's picture

correct ans is 23 ...

amit17's picture

answer should be 25 bkz on latch we can only store one result of previous stage .

Did not found what you are looking for, Ask your doubt or Help by your contribution

Enter your search keyword:

Search form

Wait!

Here is a chance to join biggest community of technical Students,
Tutors with FREE learning resources and so much more.
It takes less then 60 seconds.