Computer Architecture
|
The most basic cache is a direct-mapped cache. It is a small table of
fast memory (modern processors will store 16-256kbytes of data in a
first-level cache and access a cache word in 2 cycles). There are two
parts to each entry in the cache, the data and a tag.
If memory addresses have p bits (allowing 2p bytes of memory to be addressed) and the cache can store 2k words of memory. Then the least significant m bits of the address address a byte within a word. (Each word contains 2m bytes.) |
![]() |
Continue on to Main Memory | Back to the Table of Contents |