0 votes 0 votes Consider a pipeline with 5 stages and each stage with delay as shown below : IF ID EX MEM WB 400 ps 225 ps 350 ps 450 ps 300 ps Try to improve performance above pipeline, you have decided to break up 2 of the above stages into 2 shorter stages.we have Number of instruction equal to 2. What is the maximum speedup achieved in new pipeline system? Edit Similar gate question :https://gateoverflow.in/118719/gate2017-1-50 CO and Architecture co-and-architecture pipelining + – sunil sarode asked Sep 29, 2017 • edited Jan 20, 2018 by sunil sarode sunil sarode 4.4k views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply sachin! commented Sep 29, 2017 reply Follow Share 450/350=1.2857 0 votes 0 votes Shubhanshu commented Sep 29, 2017 reply Follow Share @sachin! is correct. 0 votes 0 votes sunil sarode commented Sep 29, 2017 reply Follow Share Can you please explain in detail and answer given is 0.964. 0 votes 0 votes Warlock lord commented Sep 30, 2017 reply Follow Share How exactly is the speedup calculated? Do we just consider the cycle time of both old and new pipelines or execution time? If we take the former alone we get 1.28 and 0.91 from the latter. I think we should consider execution time i.e (5 * 450)/(7*350) = 0.91 5 being the number of cycles of old pipeline and 7 for the new. 0 votes 0 votes Please log in or register to add a comment.
Best answer 3 votes 3 votes Number of instructions = 2 Number of clock cycles=k+(n-1)clocks k:number of stages n:number of instructions Number of cycles = 7 + (2 – 1) clocks = 8 clocks Cycle Time = Maximum stage delay + Register delay Since nothing is mentioned about register delay we consider it as 0. Cycle Time = 350ps CTnew = 8 * 350 ps = 2800 ps for old pipeline Number of cycles = 5 + (2 – 1) clocks = 6 clocks CT(old)=6*450=2700 ps Speedup = CTold / CTnew = 2700 / 2800 = 0.964 sunil sarode answered Oct 1, 2017 • selected Oct 2, 2017 by just_bhavana sunil sarode comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments Salazar commented Jan 25, 2018 reply Follow Share Try to improve performance above pipeline, you have decided to break up 2 of the above stages into 2 shorter stages which two stages you made 350 ? why not make them 300 ? That'll improve the performance even more right? @sunil how you got 350 for new pipeline, im not getting, could you please let me know ? 0 votes 0 votes sunil sarode commented Jan 25, 2018 reply Follow Share I think this way even answer was in terms of formula we take max out of each stage delay so 450 for first pipeline now additional delay 450*1 instruction*(5)first instruction will go to all five stages after that each instruction will complete in one cycle so 450*1*5+ 450*1*1(this is remaining one instruction) 2700 now we have to break two stages in two smaller 400 --> 200 200 450 --> 225 225 now for this new pipe line we have max stage delay 350 now additional delay 350*1 instruction*(7)first instruction will go to all seven stages so 350*1*7+ 350*1*1(this is remaining one instruction) 2800 0 votes 0 votes Salazar commented Jan 26, 2018 reply Follow Share Oh okay thanks, I misunderstood the question, got it now 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes When both pipelines become stable, then for each cycle both pipeline processors will process 1-1 instruction. clock cycle time for processor 1 will be 450ps and for processor 2 clock cycle time will be 350ps. speedup =450/350 = 1.2857 Manu Thakur answered Sep 29, 2017 Manu Thakur comment Share Follow See all 2 Comments See all 2 2 Comments reply just_bhavana commented Oct 2, 2017 reply Follow Share number of instructions is 2 here, your formula is valid only when (k + n - 1) $\approx$ n i.e. for large number of instructions 0 votes 0 votes sunil sarode commented Oct 2, 2017 reply Follow Share its not his mistake ,actually i did edit afterwards. can you please answer this https://gateoverflow.in/155794/calculate-sum-of-war-raw-and-waw-dependencies-instructions and https://gateoverflow.in/155785/how-structural-hazard-is-possible-for-following 0 votes 0 votes Please log in or register to add a comment.