The Gateway to Computer Science Excellence
0 votes
124 views

 

in CO and Architecture by (449 points)
edited by | 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?

1 Answer

0 votes
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.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,834 questions
57,831 answers
199,497 comments
108,311 users