SlideShare a Scribd company logo
Presented To-
Nur Imtiazul Haque
Lecturer,Dept. Of CSE
Daffodil International University
Presentation OnCache Memory
1
Group members
1.Humayra Khanum
ID : 161-15-7325
2.Rezwana Islam Ria
ID :161-15-7071
2
What is Cache Memory?
Cache memory isasmall, high-speedRAMbufferlocated
between the CPUandmain memory.
Cache memory holds a copy of the instructions (instruction
cache) or data (operand or data cache) currently being used
bythe CPU.
The main purpose of a cache is to accelerate your computer
whilekeepingthe price ofthe computer low.
3
Placement of Cache in computer
4
Instruction Cache
• Theinstruction cacheis usedto store
instructions.
• Helps to reduce the cost of going to memory to
fetchinstructions.
• Holds several other things, likebranch
prediction information.
• Example:- Theinstruction cacheon Ultra SPARC
pre-decodes the incominginstruction
5
Data Cache
• Data cacheis afast buffer that containsthe
application data.
• Before the processor can operate on the data, it
must be loaded from memory into the data
cache.
• Then loaded from the cache line into a register
and instruction using this value canoperateon it.
• The resultant value is stored in a register. Then
register to cacheand cacheto mainmemory.
6
TLB Cache
• TLB–Translated LookasideBuffer.
• Also called ascontent-addressable
memory(CAM).
• It is acacheto store translatedaddresses.
• TheCPUcanonly operate on data and
instructions that are mapped into theTLB.
7
Hit Ratio
The ratio ofthe total number ofhits dividedbythe total
CPUaccessesto memory (i.e. hits plusmisses) iscalledHit
Ratio.
 Hit Ratio = Total Number of Hits / (Total
Number of Hits + Total Number of
Miss)
8
Name:
Rezwana
Islam Ria
ID:161-
15-7071
ASSOCIATIVE
MAPPINGAn associative mapping uses an associative memory.
The memory is being accessed using its contents.
Every line of cache memory will accommodate the
address and contents of the address.
This memory is also called Content addressable
memory.
1
0
Associative Mapping
1
1
Set Associative
MappingThat is the easy control of direct mapping cache
The more flexible mapping of the fully associative
cache.
Each location can have more than one pair of tag+data
items
It is more than one pair of tag and date .so if one cache
location is holding two pair of tag+data item ,that is
called 2way set associative mapping.
1
2
Two-Way Set
Associative Mapping
1
3
Replacement
Algorithms of Cache
Memory
It is used when there are no available space in a cache place in
data.
Four common cache replacement algorithms are
1.Least Recently Used (LRU)
-Replacement item Used by CPU
2.First-In-First-out (FIFO)
-Replacement item Used by cache from longest time
3.Least frequency Used (LFU)
-Replacement item used by CPU
4.Random
1
4
81
5

More Related Content

DOCX
Computer storage devices
PPTX
Cache memory
PPTX
Cache memory
PPT
Cache memory
PDF
Cs8493 unit 1
PPTX
Memory model
PPTX
Core i 7 processor
PDF
ARM Architecture
Computer storage devices
Cache memory
Cache memory
Cache memory
Cs8493 unit 1
Memory model
Core i 7 processor
ARM Architecture

What's hot (20)

PPTX
TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER
PDF
OS Memory Management
PPTX
Central Processing Unit
PPTX
Memory hierarchy
PPTX
Multi core processor
PPTX
Intel® hyper threading technology
PDF
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
PPTX
What is Cache and how it works
DOCX
Intel Core I5
PPTX
Virtual Memory
PPTX
Cache memory
PPTX
Memory Hierarchy
PPT
Multicore Processors
PPT
Memory Management in OS
PPT
Chapter 4 The Processor
PPTX
Linux Memory Management with CMA (Contiguous Memory Allocator)
PPTX
Booting and Start-up Sequence
PPT
cache memory
PDF
Virtualization Support in ARMv8+
TYPES OF MEMORIES AND STORAGE DEVICE AND COMPUTER
OS Memory Management
Central Processing Unit
Memory hierarchy
Multi core processor
Intel® hyper threading technology
02 : ARM Cortex M4 Specs || IEEE SSCS AlexSC
What is Cache and how it works
Intel Core I5
Virtual Memory
Cache memory
Memory Hierarchy
Multicore Processors
Memory Management in OS
Chapter 4 The Processor
Linux Memory Management with CMA (Contiguous Memory Allocator)
Booting and Start-up Sequence
cache memory
Virtualization Support in ARMv8+
Ad

Similar to Cache Memory Computer Architecture and organization (20)

PPTX
Unit 5-lecture-2
PPTX
Cache simulator
DOCX
Opetating System Memory management
PDF
Operating Systems - memory management
PDF
cachememory-210517060741 (1).pdf
PPTX
Cache Memory
PPT
Cache memory ...
PPTX
Operating Systems Module 4_Memory Management.pptx
PPTX
UNIT II INTELLIGENT STORAGE SYSTEMS AND RAID.pptx
PPTX
Cache Memory.pptx
PPT
Cache memory and cache
PPTX
Cache memoy designed by Mohd Tariq
PDF
Linux Internals - Interview essentials 3.0
PDF
Memory Management
PPTX
Computer organizatin.Chapter Seven.pptxs
DOC
Virtual Memory vs Cache Memory
PPTX
Cache Memory.pptx
PPTX
co-7.pptx mca sem computer organization
PPT
Operating System
DOCX
Operating system
Unit 5-lecture-2
Cache simulator
Opetating System Memory management
Operating Systems - memory management
cachememory-210517060741 (1).pdf
Cache Memory
Cache memory ...
Operating Systems Module 4_Memory Management.pptx
UNIT II INTELLIGENT STORAGE SYSTEMS AND RAID.pptx
Cache Memory.pptx
Cache memory and cache
Cache memoy designed by Mohd Tariq
Linux Internals - Interview essentials 3.0
Memory Management
Computer organizatin.Chapter Seven.pptxs
Virtual Memory vs Cache Memory
Cache Memory.pptx
co-7.pptx mca sem computer organization
Operating System
Operating system
Ad

More from Humayra Khanum (8)

PPTX
System analysis and design - presentation
PPTX
About me / Myself
PPTX
Embedded systems -Smart Cap
PPTX
Deadloack-Operating System
PPTX
Final project presentation CSE
PPTX
IPv4 VS IPv6
PPTX
Golden Ratio
PPTX
Golden Ratio
System analysis and design - presentation
About me / Myself
Embedded systems -Smart Cap
Deadloack-Operating System
Final project presentation CSE
IPv4 VS IPv6
Golden Ratio
Golden Ratio

Recently uploaded (20)

PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Digital Logic Computer Design lecture notes
DOCX
573137875-Attendance-Management-System-original
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Construction Project Organization Group 2.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
web development for engineering and engineering
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Geodesy 1.pptx...............................................
PDF
composite construction of structures.pdf
bas. eng. economics group 4 presentation 1.pptx
R24 SURVEYING LAB MANUAL for civil enggi
Foundation to blockchain - A guide to Blockchain Tech
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Digital Logic Computer Design lecture notes
573137875-Attendance-Management-System-original
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Internet of Things (IOT) - A guide to understanding
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Construction Project Organization Group 2.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
UNIT 4 Total Quality Management .pptx
web development for engineering and engineering
Operating System & Kernel Study Guide-1 - converted.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
Mechanical Engineering MATERIALS Selection
Geodesy 1.pptx...............................................
composite construction of structures.pdf

Cache Memory Computer Architecture and organization

  • 1. Presented To- Nur Imtiazul Haque Lecturer,Dept. Of CSE Daffodil International University Presentation OnCache Memory 1
  • 2. Group members 1.Humayra Khanum ID : 161-15-7325 2.Rezwana Islam Ria ID :161-15-7071 2
  • 3. What is Cache Memory? Cache memory isasmall, high-speedRAMbufferlocated between the CPUandmain memory. Cache memory holds a copy of the instructions (instruction cache) or data (operand or data cache) currently being used bythe CPU. The main purpose of a cache is to accelerate your computer whilekeepingthe price ofthe computer low. 3
  • 4. Placement of Cache in computer 4
  • 5. Instruction Cache • Theinstruction cacheis usedto store instructions. • Helps to reduce the cost of going to memory to fetchinstructions. • Holds several other things, likebranch prediction information. • Example:- Theinstruction cacheon Ultra SPARC pre-decodes the incominginstruction 5
  • 6. Data Cache • Data cacheis afast buffer that containsthe application data. • Before the processor can operate on the data, it must be loaded from memory into the data cache. • Then loaded from the cache line into a register and instruction using this value canoperateon it. • The resultant value is stored in a register. Then register to cacheand cacheto mainmemory. 6
  • 7. TLB Cache • TLB–Translated LookasideBuffer. • Also called ascontent-addressable memory(CAM). • It is acacheto store translatedaddresses. • TheCPUcanonly operate on data and instructions that are mapped into theTLB. 7
  • 8. Hit Ratio The ratio ofthe total number ofhits dividedbythe total CPUaccessesto memory (i.e. hits plusmisses) iscalledHit Ratio.  Hit Ratio = Total Number of Hits / (Total Number of Hits + Total Number of Miss) 8
  • 10. ASSOCIATIVE MAPPINGAn associative mapping uses an associative memory. The memory is being accessed using its contents. Every line of cache memory will accommodate the address and contents of the address. This memory is also called Content addressable memory. 1 0
  • 12. Set Associative MappingThat is the easy control of direct mapping cache The more flexible mapping of the fully associative cache. Each location can have more than one pair of tag+data items It is more than one pair of tag and date .so if one cache location is holding two pair of tag+data item ,that is called 2way set associative mapping. 1 2
  • 14. Replacement Algorithms of Cache Memory It is used when there are no available space in a cache place in data. Four common cache replacement algorithms are 1.Least Recently Used (LRU) -Replacement item Used by CPU 2.First-In-First-out (FIFO) -Replacement item Used by cache from longest time 3.Least frequency Used (LFU) -Replacement item used by CPU 4.Random 1 4
  • 15. 81 5