The Gateway to Computer Science Excellence
+9 votes
7.5k views

A cache memory needs an access time of 30 ns and main memory 150 ns, what is average access time of CPU (assume hit ratio = 80%)?

  1. 60 ns
  2. 30 ns
  3. 150 ns
  4. 70 ns
in CO and Architecture by Boss (32.5k points)
retagged by | 7.5k views

2 Answers

+14 votes
Best answer
Effective Memory Access Time = Cache hit * Cache access time + Cache miss ( Cache miss Penalty + memory Access time)

 = 0.8(30) + (1-0.8)(30+150) ns

 = 24 + 0.2(180) ns

 = 24 + 36 ns = 60 ns.

Option A.
by Active (4.3k points)
selected by
0
in question they not asking Effective Memory Access Time ...they are asking only average access time ?
+2
Both are same dude.
0 votes
By default Hierarchial access

Tavg  = cache miss + main memory hit

 Cache miss = cache hit ratio * cache access time = 0.8 * 30ns = 24ns

Main memory hit = (1-cache hit ratio) * (main memory hit ratio) * (main mem access time + cache mem access time)

                              = (1-0.8) * (1) * (150ns+ 30ns)

                              = 36ns

(Main memory is final level of hierarchial access so main mem hit ratio = 1)

 

Therefore,

 

Tavg = 24+36 = 60ns
by (125 points)
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,645 questions
56,578 answers
195,771 comments
101,765 users