Computer Organization: Cache Memory
Computer Organization: Cache Memory
Cache Memory
TONNY ADEGBOYEGA
Definition
Cache Memory is a special buffer storage, smaller and faster than main storage. It is used to hold a copy of instructions and data in main storage that are likely to be needed next by the processor and that have been obtained automatically from main memory.
Characteristics of Memory
Location Capacity Unit of transfer Access method Performance Physical type Physical characteristics Organisation
Location
CPU Internal External
Capacity
Internal memories capacities are expressed in terms of bytes(8bits=1 byte) or words Common word lengths are 8, 16, 32 and 64bits External memories are typically expressed in bytes eg KB, MB, GB
Unit of Transfer
Internal
Usually governed by data bus width
External
Usually a block which is much larger than a word
Direct
Individual blocks have unique address Access is by jumping to vicinity plus sequential search Access time depends on location and previous location e.g. disk
Associative
Data is located by a comparison with contents of a portion of the store Access time is independent of location or previous access e.g. cache
Memory Hierarchy
Registers
In CPU
External memory
Backing store
Cache
Small amount of fast memory Sits between normal main memory and CPU May be located on CPU chip or module
Speed
More cache is faster (up to a point) Checking cache for data takes time