The Tag Field

This page uses a toy memory model to help you understand how the tag field works in a direct-mapped cache.

Here's a diagram of a Main Memory with 16 words and a Direct-Mapped Cache with 4 words.

here is an example of the cache with all the tag fields filled in; at the moment addresses 12, 1, 6, and 15 are in the cache