edited by
681 views
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?

edited by

4 Answers

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 .
selected by
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 = 2ns
Total Time = (k+n-1)*t = (100+8-1)*2 = 107*2 = 214 ns

Time Saved = 416 - 214 = 202 ns

 

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

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
1 answer
3
0 votes
0 votes
1 answer
4