0%

Cache Design

How to realize the date transfer between cache and memory

Cache is a hardware component in the processor system.

Cache structure

For a cache of $2^m$ blocks, a memory block with address X maps to the cache location $x mod 2$

In binary the memory address of 00001 would be stored in cache index of 001, which means any memory address that share the same least significant m bit will map to the same cache location.