Cache
Main Memory Address
00000000
00000001
00000010
00000011
00000100
00000101
00000110
00000111
00001000
0000100111100011
00110011
00001110
11110000
11110011
11001010
11001100
00000011
00010001
01000000
Cache Memory
10000000
10000001
10000010
10000011
Address
• small amount of fast access memory either:
• built into the processor (L1 cache)
OR
• between the processor and memory (L2 cache)
• physically closer to the processor than RAM so faster
Cache
Main Memory Address
00000000
00000001
00000010
00000011
00000100
00000101
00000110
00000111
00001000
0000100111100011
00110011
00001110
11110000
11110011
11001010
11001100
00000011
00010001
01000000
Cache Memory
10000000
10000001
10000010
10000011
Address
• stores a copied portion of main memory which the processor may need
to access
• cache is temporary storage
• cache size is smaller than memory, typically 256kb or 512kb
Access Speed
The speed at which data can be accessed depends on the
distance between it and the processor
Registers
Cache memory
RAM
Faster access
Slower access

Cache