Cache memory
Cache
Step 1
Processor
requests data
or
instructions
Step 2
Go to address in main
memory and read
Step 3
Transfer to main CPU and cache
Next processor request
• Look first at cache
• Go to memory
P
R
O
C
E
S
S
O
R
R
A
M
Cache
Micro
processor
L1 Cache L2 cache Main memory
Cache controller
Cpu cache
• Cpu cache is a small and faster static ram placed inside the
processor to improve the system performance
• Cache can store copies of frequently used data
• Cpu can easily access the data from cache memory compared
to RAM
• When the processor need data from or write a location to RAM,
it first check the whether a copy is in the cache.
• If data’s are present in the cache, then processor take data
from cache
• If data is not presented in the cache ,processor accessed data
from RAM and copy of which is kept in cache..
Different types of cache
• Instruction cache hold frequently used
instruction
• Data cache: hold frequently used data

Cache memmory

  • 1.
  • 3.
    Cache Step 1 Processor requests data or instructions Step2 Go to address in main memory and read Step 3 Transfer to main CPU and cache Next processor request • Look first at cache • Go to memory P R O C E S S O R R A M Cache
  • 4.
    Micro processor L1 Cache L2cache Main memory Cache controller
  • 5.
    Cpu cache • Cpucache is a small and faster static ram placed inside the processor to improve the system performance • Cache can store copies of frequently used data • Cpu can easily access the data from cache memory compared to RAM • When the processor need data from or write a location to RAM, it first check the whether a copy is in the cache. • If data’s are present in the cache, then processor take data from cache • If data is not presented in the cache ,processor accessed data from RAM and copy of which is kept in cache..
  • 6.
    Different types ofcache • Instruction cache hold frequently used instruction • Data cache: hold frequently used data