2,723 views
6 votes
6 votes
You are given a non-pipelined processor design which has a cycle time of 10ns and average CPI(cycle per instruction) of 1.4.The designers pipelined it into 5 stages with stage timing of 1ns,1.5ns,4ns,3ns,0.5ns, Each pipelined stage added also adds 20ps due to resister setup delay.If pipeline stalls 20% of the time for 1 cycle and 5% of time for 2 cycles(these occurrences are disjoint).what is speedup compared to the original processor?

1 Answer

Best answer
9 votes
9 votes

Time to execute one instruction in when non-pipelined = old_CPI * cycle_time = 1.4*10

After pipelining the same architecture :

CPI will increase from 1.4, because of stalling in the pipeline as given in the question.

Calculate stalls per instruction : $0.2*1 + 0.05*2 + 0.75*0 = 0.3$

So, avg CPI = original base CPI + stalls per instruction = 1.4 + 0.3 = 1.7

In this case Time to execute one instruction ( piplined ) = new_CPI * cycle_time = 1.7 * (4ns + 20ps) = 1.7*4.02

SPEED_UP = $\frac{1.4*10}{1.7*4.02} = 2.048$

selected by

Related questions

0 votes
0 votes
1 answer
1