MIPS Cache: Memory hierarchy
Comparison of different types of memory
Use a hierarchy of memory technologies:
Small but fast memory near CPU
Large but slow memory further away from CPU
Keep theand data in smaller but faster memory.
Refer to bigger and slower memory when you cannot find data/instruction in the faster memory.
This works due to
Processor checks if data is in cache.
X) data is returned to processor from cache. (ideal)
Y) data is loaded from memory. Takes more time. Data placed in cache for future reference (see )