in CO and Architecture edited by
612 views
1 vote
1 vote

 

in CO and Architecture edited by
612 views

4 Comments

Is it 3.6?
0
0
Yes. Can you explain?
0
0
Out of 1000 memory accesses , 40 are miss in L1 cache . And out of those 40 , 10 misses happens in L2 cache.

So AMAT = 1 clock cycle + 40/1000[15 + 10/40 x 200]

 = 1+ 0.04x15 + 0.04 x 0.25 x 200 = 3.6 clock cycles
1
1
how you got this formula?
0
0

1 Answer

1 vote
1 vote
AMAT = h1*t1 + (1-h1)*h2*(t1+t2) + (1-h1)(1-h2)*(t1+t2+t3)

=>$\frac{960}{1000}*1 + \frac{40}{1000}*\frac{30}{40}*(1+15) + \frac{40}{1000}*\frac{10}{40}*(1+15+200)$

=>3.6 clock cycles

2 Comments

just a suggestion,

use simplified formula it will take less time-

$T1+(1-H1)T2+(1-H1)(1-H2)T3$
3
3
Thanks for this.
0
0

Related questions