840 views
2 votes
2 votes

A 4-stage pipelined processor executed the following loop:

for(i=1;i<=100;i++)

{

I1; I2; I3; I4;

}

What is the no. of clocks to execute the above loop?

a.13    b.15   c.16     d.18

  S1 S2 S3 S4
I1 1 2 1 2
I2 2 1 2 1
I3 1 1 2 1
I4 2 1 2

1

1 Answer

Best answer
1 votes
1 votes

if we use without loop level parallelism than it will take 1100 clock cyles becoz loop is from i=1 to 100
as also for first i=1. it will take 11 cycles similalry for next 100 it will take 1100 cycles...


and with loop level parallelism it will take 11*1+99*7=704 cycle .

Related questions

0 votes
0 votes
0 answers
2
Shubhanshu asked Jan 13, 2018
200 views
Somewhere I read that WB and ID stage can overlap, for exaple:- https://gateoverflow.in/753/gate2001-12and somewhere it is not overlapped. Is it possible to overlap both ...
0 votes
0 votes
1 answer
3
kathan Mistry asked Aug 9, 2022
613 views
In a pipelined architecture Static branch prediction is used with branch taken assumption. Assume that 30% of the instructions executed for a program are branch instructi...