214 views

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?

### Subscribe to GO Classes for GATE CSE 2022

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.

by

### 1 comment

hit only occure for a perticular line if tag bit and line bit are same and miss only occure if atleast one of  tag bit or line bit is different  correct it

@LRU

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

by

Carl Hamacher fifth edition.

1 vote