SK CO Final Presentation
SK CO Final Presentation
ORGANISATION
CACHE MEMORY
And
MEMORY MAPPING
Mapping Techniques
Direct Mapping
Associative Mapping
Set- Associative Mapping
What is a Cache memory?
Cache memory is a small-sized type of volatile computer memory that
provides high-speed data access to a processor and stores frequently used
computer programs, applications and data.
When the processor needs to read or write a location in main memory, it first
checks for a corresponding entry in the cache.
If the processor finds that the memory location is in the cache, a cache hit has
occurred and data is read from cache
If the processor does not find the memory location in the cache, a cache miss has
occurred. For a cache miss, the cache allocates a new entry and copies in data from
main memory, then the request is fulfilled from the contents of the cache.
Cache memory mapping
The technique by which the content present in main memory is
brought into cache memory.
Direct Mapping
M
A
I
N
M
CCCACHE LINES E
M
O
R
Y
. The main memory blocks are directly mapped into a particular cache
memory line.
B-9 = 1
4
Associative Mapping
A block of main memory can be mapped to any freely available
cache line.
This makes it flexible than Direct Mapping
Many to many mapping
Cache is utilized in full capacity
Disadvantages