124 views

edited | 124 views
0
Is it 3.6?
0
Yes. Can you explain?
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
0
how you got this formula?

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
by Junior (991 points)
+1
just a suggestion,

use simplified formula it will take less time-

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