Systems Architecture

Table of Contents

Cache memory

very small, very fast

between processor and main memory, its there to be a wingman and make the main memory look good in front of the processor

locality of reference — many instructions in localised areas of the program are executed repeatedly during some time period

basically, whenever some info is needed, it should be brought into the cache. and might as well grab data at adjacent addresses too.

cache block/line — set of contiguous address locations of some size

the mapping function specifies correspondence between main memory blocks and those in cache

replacement algorithm decides which blocks to remove to make space for a newly referenced word

cache hits

cache misses: