0 votes 0 votes For D1 1st instruction will take 3+2+4+2+3 = 16ns rest 99 instruction will take 99*4=396 Hence total: 16+396=412 For D2 1st instruction will take 2+2+2+2+2+2+2+2 = 16ns rest 99 instruction will take 99*2=198 Hence total: 16+198=214 Hence, 412-214=198 according to me Where am I going wrong? CO and Architecture co-and-architecture pipelining virtual-gate-test-series + – Purple asked Jan 30, 2016 • edited Apr 14, 2019 by Lakshman Bhaiya Purple 681 views answer comment Share Follow See 1 comment See all 1 1 comment reply Riya Roy(Arayana) commented Jan 30, 2016 reply Follow Share gate question... check out solution from prev years. 0 votes 0 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes u have taken everything right . But u missed that in a pipeline . the clock is set such that the maaximum stage can complete . so in the starting 1st instruction everything will be 4ns . = 20ns . 20+396 = 416ns 416-216= 202 ns . Tendua answered Jan 30, 2016 • selected Jan 30, 2016 by Purple Tendua comment Share Follow See all 3 Comments See all 3 3 Comments reply Purple commented Jan 30, 2016 reply Follow Share So, if in D2, if all were not of 2ns, if say 7 stages were 2ns and 1 stage was 3ns, then we would get: 3*8+99*3? right? 0 votes 0 votes Tendua commented Jan 30, 2016 reply Follow Share right . prefer using formula 0 votes 0 votes Sumit1311 commented Jan 30, 2016 reply Follow Share What happens in case of asynchronous processors? 1 votes 1 votes Please log in or register to add a comment.
2 votes 2 votes D1: k = 100 , 5 stages , Stage Latency = 4ns Total Time = (k+n-1)*t = (100+5-1)*4 = 104*4 = 416 ns D2 :k = 100 , 8 stages , Stage Latency = 2nsTotal Time = (k+n-1)*t = (100+8-1)*2 = 107*2 = 214 ns Time Saved = 416 - 214 = 202 ns Digvijay Pandey answered Jan 30, 2016 Digvijay Pandey comment Share Follow See 1 comment See all 1 1 comment reply Purple commented Jan 30, 2016 reply Follow Share Yes, the direct formula is giving the right ans. But I am confused where I am going wrong 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes answer is 416-214=202 Tauhin Gangwar answered Jan 30, 2016 Tauhin Gangwar comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes In D1 Total time=Time taken to executes 1'st instruction + 99 x 1 stages x Td1 T1=1 x5 x4 + 99 x4=416 Similarly for D2 T2= 1 x 8 x 2 + 99 x 2=214 T1 - T2= 202ns Paras Nath answered Oct 24, 2016 Paras Nath comment Share Follow See all 0 reply Please log in or register to add a comment.