In direct-mapped cache, each block in memory maps to a **single**, **specific** cache block.

For a direct mapped cache consisting of blocks: ?

  • Block of main memory maps to cache block .

To find out which block actually resides in a cache block at any given time we use a tag field which distinguishes one memory block from another.

A direct-mapped cache address is composed of the following: ?

  • The : number of bits required to address all cache blocks.
  • The : the number of bits required to address all words within a block.
  • The : the number of bits left over after the block and offset. Formatted as such: (, , ).
title: Remember the order: $\color{blue}\textsf{tag}$, $\color{red}\textsf{block}$, $\color{green}\textsf{word}$