retagged by
1,298 views
2 votes
2 votes

Consider a  3 Level Memory System with the following specifications

  • (H1,H2,H3) = (0.8,0.9,1)
  • (T1,T2,T3) = (2,100,500) nano sec / word
  • IF there is miss at L1 and Hit at L2 .A 2-Word block must be transfered from L2 to L1
  • IF there is miss at both Levels then 4-Word block must be bought from L3 to L2 and concerned block must be moved from L2 to L1

The refered word must always given from L1   only to processor .

  1. Average Access Time Taken Given that the data width between L1 to L2 and L2 to L3  is 1 Word block is Tavg-1
  2. Average Access Time Taken Given that the data width between L1 to L2 and L2 to L3  is 4 Word block is Tavg-2

What is the ratio of  Tavg-1 to Tavg-2

retagged by

1 Answer

2 votes
2 votes

Lets consider for Tavg-1.

Avg access time for L2

= L2 hit ratio * (L2 access time)

   + L2 miss ratio * ( L2 search to conclude miss + Avg L3 access time + L2 access to accomodate new data) 

= 0.9 * (100) + 0.1 * (100 + 4*500 + 4*100)  

  .....(we multiply by 4 because for each word transfer, 1 mem cycle is consumed)

= 340 ns

Avg access time for L1 

= L1 hit ratio * (L1 access time)

   + L1 miss ratio * ( L1 search to conclude miss + Avg. L2 access time + L1 access to accomodate new data) 

= 0.8 * (2) + 0.2 * (2 +   2*34 + 2*2 )

   ...............(we multiply by 2 for the same reason above)

= 16.4ns

----------------------------------------------

Now, we consider Tavg-2.

Here, the data width=4 and hence, 1 mem cycle is suficient for transfer of data between any two levels of memory.

Thus, Avg L2 access time

= 0.9 * (100) + 0.1 * (100 + 1*500 + 1*100)  

= 160ns

Avg access time for L1 

= 0.8 * (2) + 0.2 * (2 +   1*34 + 1*2 )

= 9.2ns

-------------------------------------------

Tavg-1 / Tavg-2

= $\frac{16.4}{9.2}$

= 1.78

Related questions

0 votes
0 votes
0 answers
1
Abbas Ahmad asked Sep 15, 2018
203 views
What are the external connections in memory circuit ?
0 votes
0 votes
0 answers
2
Manoj Majumdar asked Feb 4, 2017
499 views
How to identify from the question, whether to add the access times of memories which are higher in hierarchy in case of miss?
0 votes
0 votes
0 answers
3
0 votes
0 votes
0 answers
4
Nihar Ranjan Panda asked Aug 18, 2018
893 views
if simply the access time of level-1 meomry and level-2 memory is given and hit ratio is given then for average time access what should be the approach? should i go for h...