CPI of pipelined processor

gstekboy

Junior Member
Feb 13, 2014
2
0
0
a non pipelined processor runs at 1.2ghz and has CPI 3 cycles.
Another processor with same instruction set has a 5 stage pipeline ,Find the increase in throughput at the same frequency ,given stalls occurs at 30% of instruction executed?

help me to solve this.
 

ThatsABigOne

Diamond Member
Nov 8, 2010
4,430
23
81
Want us to do Computer Organization homework for you? Have you asked your TA's or professor? Show how you attempted this problem first.
 

gstekboy

Junior Member
Feb 13, 2014
2
0
0
Want us to do Computer Organization homework for you? Have you asked your TA's or professor? Show how you attempted this problem first.

for unpipelined

cpi = 3 cycle
clock cycle = .83ns


for pipeline

cpi = 1+ pipeline stall
= 1.3


throughput = 3/1.3 =2.3.

is the above answer correct
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
Who knows? Not enough information was given. 30% of instructions stall, but for how long? It doesn't say 30% of cycles are stalled. Also, are the instructions stalling on both? If they are stalling on both for the same amount of time, then I guess the throughput difference could be figured anyway, but that's just one more assumption.

But, your CPI measure for the pipelined processor is (a) different than the non-pipelined processor (why isn't it the same?), and (b) if the difference to figure out is throughput, CPI is not the right measure, except to find the upper limit in IPC of the non-pipelined processor.
 
Last edited:

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,283
3,905
75
Hm, I can come up with at least two plausible scenarios. It could be that the instructions that stall the pipeline do so because they're complex, in which case they stall for at most 3 cycles.

Or the instructions that stall the pipeline could be branches, in which case they could stall the pipeline until the branch is resolved. Lacking information on where in the pipeline the branches are resolved (for most modern processors it's as early as possible), I'd have to assume it takes all 5 stages. I'd also have to assume that each pipeline stage takes only 1 cycle.

In this case I'd say I think you're close to the right answer, but not by the right method.

Edit: I forgot to divide. Not close at all.
 
Last edited:

sushiwarrior

Senior member
Mar 17, 2010
738
0
71
If the stalls require a pipeline flush, then you have 30% of all instructions requiring an additional 5 cycles. This means you have (1.2GHz * 0.7) + (1.2GHz/5 * 0.3) (this is similar to saying: 70% of the time, 1 instruction is completed per cycle at 1.2GHz, 30% of the time the instruction takes 5 cycles to complete) if my quick mental guess is somewhat close. If they simply require a stall/halt (1 cycle? Maybe more? Question is not clear enough) then the question is kind of hard to answer without more info.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |