• retagged by
4,526 views
2 2 votes
Consider a non-pipelined processor design which has a cycle time of 10ns and average CPI of 1.4. If each pipeline stage adds extra 20ps due to register setup delay. The pipeline stalls 20% of the time for 1 cycle and 5% of the time for 2 cycles (these occurrences are disjoint). What is the new CPI?

2 Answers

5 5 votes

Pipeline stalls are introduced in the pipelines architecture, so CPI will increase

Stalls per instruction $ = 0.2 \times 1$ cycle $+ 0.05 \times 2$ cycle = 0.3

New CPI = old CPI + stalls per cycle = 1.4 + 0.3 = 1.7

so, Pipelined architecture will have CPI of 1.7

Refference : https://cseweb.ucsd.edu/classes/sp13/cse141-a/solutions/assignment4_solutions.pdf Q. 4.4

• edited by
3 3 votes

Unless and until mentioned ,

CPIideal pipeline(without stalls)  =  1

The given CPI of 1.4 is for non pipelined processor not the pipelined one..So it would be wrong to consider it for pipelined system..

Now we calculate no of stall cycles / instruction = 0.2 * 1 + 0.05 * 2

                                                                      = 0.3

So CPI for the modified pipelined system i.e. with stalls  =  1 + 0.3

                                                                                   =  1.3

Hence the correct answer should be 1.3

Position:
Show:

Related questions

2 2 votes
1 answers 1 answer
3.9k
3.9k views
sunil sarode asked Sep 28, 2017
3,928 views
Consider a 5 stage instruction pipeline having latencies (in ns) 1, 2, 3, 4 and 5 respectively.Find average CPI of non-pipeline CPU when speed up achieved with respect to...
0 0 votes
1 1 answer
1.6k
1.6k views
khushtak asked Oct 19, 2015
1,599 views
Among the branch instructions 30% conditional and 70% of them does not satisfy the condition ( branch not taken). If there is no stall due to them. What is average instru...
2 2 votes
0 0 answers
5.0k
5.0k views
Namit Dhupar asked Nov 16, 2017
4,955 views
Require detailed explanation along with formulas and which formula to use depending upon each scenario
6 6 votes
1 answers 1 answer
3.3k
3.3k views
Marv Patel asked Dec 8, 2015
3,326 views
In a pipelined RISC computer where all arithmetic instructions have the same CPI (cycles per instruction), which of the following actions would improve the execution time...