retagged by
3,148 views
7 votes
7 votes
A 5-stage pipeline is used to overlap all the instructions except the branch instructions. The target of the branch can't be fetched till the current instruction is completed. What is the throughout of the system if 20% of instructions are branch instructions ignore the overhead of buffer register. Each stage is having same amount of delay. The pipeline clock is 10ns Branch penality if of 4 cycles.

A.55 MIPS

B.45 MIPS

C. 65 MIPS

D. None of these.

(explain the solution as well)
retagged by

2 Answers

Best answer
13 votes
13 votes

I tried the following way ...

For each of 20% of the NON OVERLAPPED instructions we are getting 4 stall cycles and therefore CPI for these instruction is 5

For other 80% of the OVERLAPPED instructions we are not getting any stalls and pipeline will output one instruction per cycle. There for in this case CPI = 1

Average CPI = $0.2*5 \ + \ 0.8*1 = 1.8$

So Throughput in MIPS = $\frac{1}{1.8*10*10^{-9}} \ * \frac{1}{10^{6}} = 55.55$

edited by
4 votes
4 votes

Execution Time in Pipeline = (1+Number of Stall Per Instruction)*Cycle Time
=(1+4*0.2)10*10-9sec
=1.8*10-8 sec
Now, Throughput is number of instruction it can execute in 1 sec.
For 1 instruction if it take 1.8*10-8sec
then in 1 sec = 1/(1.8*10-8) = 55.55 MIPS

Related questions

0 votes
0 votes
1 answer
1
3 votes
3 votes
1 answer
3
khushtak asked Oct 19, 2015
13,506 views
A nonpipeline system takes 50 ns to process a task. The same task can be processed in a six segment pipeline with a clock cycle of 10 ns.  determine the speed up ratio o...
2 votes
2 votes
3 answers
4
khushtak asked Oct 19, 2015
5,355 views
The time delays of 4 segments are 60 ns, 70 ns, 100 ns and 80 ns respectively. Interface registers are have the delay of 10 ns.  what is the speed up?a.  2.9      ...