0% found this document useful (0 votes)
33 views17 pages

SK CO Final Presentation

Cache memory is a small, fast memory located close to the processor that stores frequently accessed instructions and data. When the processor requests data from main memory, it first checks the cache - if the data is present (a cache hit) it can be accessed quickly from cache, but if not present (a cache miss) it must be fetched from main memory. There are several techniques for mapping data between cache and main memory, including direct mapping, associative mapping, and set-associative mapping. Cache memory improves processor performance by providing faster access to commonly used data and instructions compared to main memory.

Uploaded by

Shravani Khurpe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views17 pages

SK CO Final Presentation

Cache memory is a small, fast memory located close to the processor that stores frequently accessed instructions and data. When the processor requests data from main memory, it first checks the cache - if the data is present (a cache hit) it can be accessed quickly from cache, but if not present (a cache miss) it must be fetched from main memory. There are several techniques for mapping data between cache and main memory, including direct mapping, associative mapping, and set-associative mapping. Cache memory improves processor performance by providing faster access to commonly used data and instructions compared to main memory.

Uploaded by

Shravani Khurpe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

COMPUTER

ORGANISATION
CACHE MEMORY

And

MEMORY MAPPING

Shravani Shrikant Khurpe


BSc. Computer Science
(Cloud Computing)
 Introduction
 Definition
 Working
 Organization

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.

It is a temporary storage area. Buffer between main memory and CPU.

 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.

. The address of the memory is reserved in Direct Mapping

. Many to One Mapping

. The 9 least significant blocks constitutes the index

. Remaining blocks constitutes the tag field (format of data)


CACHE LINES
FORMULA:

Block Number = Remainder (address of the block)

No. of Cache lines

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

System need more time to fetch the exact memory location

If this process has to be at one time, the cost of cache increases


 Set – Associative Mapping
 The Block of main memory has to be blocked to a fixed SET.
 We can store 2 or words of memory under same index address
 The Main memory address id divided into TAG, SET and WORD
 It gives better performance than Direct and Associative mapping
 Advantages of Cache Memory
 It is faster than the main memory.
 The access time is quite less in comparison to the main memory.
 The speed of accessing data increases hence, the CPU works faster.
 Moreover, the performance of the CPU also becomes better.
 The recent data stores in the cache and therefore, the outputs are faster.

 Disadvantages of Cache Memory


 The disadvantages are as follows:
 It is quite expensive.
 The storage capacity is limited.
Thank You!

You might also like