SlideShare a Scribd company logo
5
Most read
6
Most read
7
Most read
ORGANISATION
OF
CACHE MEMORY
NAME: KOMAL BHAT
What is Cache Memory?
 Cache Memory is a special very high-speed memory. It
is used to speed up and synchronizing with high-speed
CPU.
 Cache memory is costlier than main memory or disk
memory.
 Cache Memory acts as a buffer between RAM and the
CPU.
 Cache memory is used to reduce the average time to
access data from the Main memory.
Fig. Positioning of Cache memory in computer organisation
Register
Cache Memory
Main Memory
Secondary Memory
Levels of Memory
Cache Mapping
There are three different types of mapping used for the purpose of
cache memory:
 Direct Mapping
o The simplest technique, which maps each block of main memory
into only one possible cache line.
o Assign each memory block to a specific line in the cache.
o If a line is previously taken up by a memory block ,the old block is
trashed.
An address space is split into two parts index field and a tag field.
Direct mapping`s performance is directly proportional to the Hit ratio
 Associative Mapping
o To store content and addresses of the memory word.
o Any block can go into any line of the cache.
o Enables the placement of any word at any place in the
cache memory.
o Fastest and the most flexible mapping form.
 Set-associative Mapping
o Enhanced form of direct mapping
o Addresses the problem of possible thrashing in
the direct mapping method.
o Instead of having exactly one line that a block can
map to in the cache, it groups a few lines together
creating a set. Then a block in memory can map to
any one of the lines of a specific set.
o Allows each word that is present in the cache can
have two or more words in the main memory for
the same index address.
Cache Performance
Cache Hit Cache Miss
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
Hit Ratio=
Hit
(Hit+Miss)
Spatial Locality
of Reference
Locality of
Reference
Temporal
Locality of
Reference
Organisation  of cache memory

More Related Content

PPT
cache memory
PPT
Cache memory
PPTX
Memory organization (Computer architecture)
PPT
Paging.ppt
PPTX
Cache memory
PPT
Memory Management in OS
PPTX
Cache memory
PPTX
Cache memory principles
cache memory
Cache memory
Memory organization (Computer architecture)
Paging.ppt
Cache memory
Memory Management in OS
Cache memory
Cache memory principles

What's hot (20)

PPT
Contiguous Memory Allocation.ppt
PDF
Centralized shared memory architectures
PPTX
CS304PC:Computer Organization and Architecture Session 11 general register or...
PPT
Cache Memory
PPTX
Cache memory
PPTX
8257 DMA Controller
PPTX
Computer architecture page replacement algorithms
PPTX
Asynchronous Data Transfer.pptx
PPTX
Processor organization & register organization
PPTX
Operating system paging and segmentation
PPTX
Virtual Memory
PPT
Memory hierarchy
PPTX
Cache memory ppt
PPTX
Arithmetic and logical instructions
PDF
Lecture 6.1
PPTX
Pipelining And Vector Processing
PPTX
Instruction Formats
PPTX
Associative Memory in Computer architecture
PPTX
Memory Organization
Contiguous Memory Allocation.ppt
Centralized shared memory architectures
CS304PC:Computer Organization and Architecture Session 11 general register or...
Cache Memory
Cache memory
8257 DMA Controller
Computer architecture page replacement algorithms
Asynchronous Data Transfer.pptx
Processor organization & register organization
Operating system paging and segmentation
Virtual Memory
Memory hierarchy
Cache memory ppt
Arithmetic and logical instructions
Lecture 6.1
Pipelining And Vector Processing
Instruction Formats
Associative Memory in Computer architecture
Memory Organization
Ad

Similar to Organisation of cache memory (20)

PPTX
Cache Memory.pptx
PPTX
Cache memory
PPTX
GRP13_CACHE MEMORY ORGANIZATION AND DIFFERENT CACHE MAPPING TECHNIQUES.pptx
PPTX
475841235-Presentation-on-Cache-memory-Operating-system-CSE-309-1-pptx.pdf.pptx
PPT
Memory organization including cache and RAM.ppt
PDF
cachememory-210517060741 (1).pdf
PPTX
Cache Memory
PPTX
Memory Mappings Presentation | Cache Memory | Irfan Rehman
PPT
04_Cache Memory.ppt
PPT
cache memory
PDF
unit 4.faosdfjasl;dfkjas lskadfj asdlfk jasdf;laksjdf ;laskdjf a;slkdjf
PPT
04 cache memory
PPT
04 cache memory
PPT
Cache Memory from Computer Architecture.ppt
PPTX
Cache memory
PPT
04 cache memory.ppt 1
PPT
04_Cache Memory-computer-architecture.ppt
PPT
04_Cache Memory.ppt
PPT
Cache Memory.ppt
PPT
04_Cache Memory.ppt
Cache Memory.pptx
Cache memory
GRP13_CACHE MEMORY ORGANIZATION AND DIFFERENT CACHE MAPPING TECHNIQUES.pptx
475841235-Presentation-on-Cache-memory-Operating-system-CSE-309-1-pptx.pdf.pptx
Memory organization including cache and RAM.ppt
cachememory-210517060741 (1).pdf
Cache Memory
Memory Mappings Presentation | Cache Memory | Irfan Rehman
04_Cache Memory.ppt
cache memory
unit 4.faosdfjasl;dfkjas lskadfj asdlfk jasdf;laksjdf ;laskdjf a;slkdjf
04 cache memory
04 cache memory
Cache Memory from Computer Architecture.ppt
Cache memory
04 cache memory.ppt 1
04_Cache Memory-computer-architecture.ppt
04_Cache Memory.ppt
Cache Memory.ppt
04_Cache Memory.ppt
Ad

Recently uploaded (20)

PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
Artificial Intelligence
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
Total quality management ppt for engineering students
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPT
Project quality management in manufacturing
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
PPT on Performance Review to get promotions
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Sustainable Sites - Green Building Construction
Automation-in-Manufacturing-Chapter-Introduction.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Safety Seminar civil to be ensured for safe working.
Artificial Intelligence
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Total quality management ppt for engineering students
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Fundamentals of Mechanical Engineering.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Project quality management in manufacturing
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Geodesy 1.pptx...............................................
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT on Performance Review to get promotions

Organisation of cache memory

  • 2. What is Cache Memory?  Cache Memory is a special very high-speed memory. It is used to speed up and synchronizing with high-speed CPU.  Cache memory is costlier than main memory or disk memory.  Cache Memory acts as a buffer between RAM and the CPU.  Cache memory is used to reduce the average time to access data from the Main memory.
  • 3. Fig. Positioning of Cache memory in computer organisation
  • 5. Cache Mapping There are three different types of mapping used for the purpose of cache memory:  Direct Mapping o The simplest technique, which maps each block of main memory into only one possible cache line. o Assign each memory block to a specific line in the cache. o If a line is previously taken up by a memory block ,the old block is trashed. An address space is split into two parts index field and a tag field. Direct mapping`s performance is directly proportional to the Hit ratio
  • 6.  Associative Mapping o To store content and addresses of the memory word. o Any block can go into any line of the cache. o Enables the placement of any word at any place in the cache memory. o Fastest and the most flexible mapping form.
  • 7.  Set-associative Mapping o Enhanced form of direct mapping o Addresses the problem of possible thrashing in the direct mapping method. o Instead of having exactly one line that a block can map to in the cache, it groups a few lines together creating a set. Then a block in memory can map to any one of the lines of a specific set. o Allows each word that is present in the cache can have two or more words in the main memory for the same index address.
  • 8. Cache Performance Cache Hit Cache Miss 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 Hit Ratio= Hit (Hit+Miss)
  • 9. Spatial Locality of Reference Locality of Reference Temporal Locality of Reference