What is Direct-mapped cache?

A cache organization in which each address can be placed in exactly one location. It is simple with short hit time, but prone to conflict misses when addresses compete for the same slot.

Field: Memory Hierarchy

Direct-mapped cache in the explanations

Questions that mention Direct-mapped cache (3)

  1. For a direct-mapped cache with 32-bit addresses, 32 KB capacity and 64-byte lines, how many tag bits are there?
  2. In a direct-mapped cache, elements of two arrays map to the same cache location and evict each other on every alternating access. How is this miss classified?
  3. What changes when a cache is switched from direct-mapped to set-associative?

Related terms

Set-associative cache Average memory access time Cache line Capacity miss Compulsory miss Conflict miss Fully associative cache Loop blocking LRU replacement Miss penalty

Back to the glossary