779 views
5 votes
5 votes

Consider the following statements:


S1 : Direct mapped caches do not need a cache block replacement policy, whereas fully associative cache need.

S2 : Direct mapped cache, may produce more misses if programs refers to memory words that occupy a same tag value.


Which of the following options is correct?

3 Answers

Best answer
7 votes
7 votes

Option A True – In direct mapped cache a mapping algorithm is used to map the block in specific cache location. Hence no cache block replacement policy is needed . Replacement policies are used in Associative Caching and Set Associative Caching. 

Option B False - In direct mapped cache misses generally conflict miss occurs and that too because of two different blocks mapping to same Cache line (same cache line offset ) .There is no affect on misses with tag bits being same or same tag value.

selected by
1 votes
1 votes

@LRU

Option A ,  true ...

S1:: Direct mapped caches do not need a cache block replacement policy, where as fully associative cache need....

Option B , false ...

S2:: Direct mapped cache, may produce more misses if programs refers to memory words that occupy a same tag value...

 

1. https://gateoverflow.in/285714/Madeeasy-test-series-co-%26-architecture-cache-memory

 

Related questions

0 votes
0 votes
0 answers
4
Ashwani Yadav asked Dec 6, 2018
152 views
correct answer is 32.5 .why in the calculation, on cache miss, cache access time is not included?