SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Unit -5
Department of Computer Science - Kamban
College of Arts And Science For Women
SYLLABUS
Auxiliary memory – Main memory – Associative memory – Cache memory
– Virtual memory
Department of Computer Science - Kamban
College of Arts And Science For Women
AUXILIARY MEMORY
 It is used to overcome the limitations of primary storage
 Unlimited capacity because the cost per bit of storage is very low
 Larger capacity than main memory
 Used to store large volumes of data on a permanent basis
 It is non-volatile in nature
 Also known as secondary memory
Department of Computer Science - Kamban
College of Arts And Science For Women
MAGNETIC MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
MAGNETIC DISKS
Department of Computer Science - Kamban
College of Arts And Science For Women
MAGNETIC TAPES
Department of Computer Science - Kamban
College of Arts And Science For Women
MAIN MEMORY
 Memory unit that communicates directly with CPU
 Programs and data currently needed by the processor reside here
 Also known as primary memory
 RAM and ROM
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MEMORY ORGANIZATION
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MEMORY ORGANIZATION
 Associative memory is organized in such a way
 Argument register(A): It contains the word to be searched. It has n bit (one
for each bit of the word)
 key register(K): This specifies which part of the argument word needs to
be compared with words in memory. If all bits in register are q. the entire
word should be compared. Otherwise only the bits having k bit set to 1 will
be compared
 Associative memory array: It contains the words which any to be
compared with the argument word
 Match register(M): It has m bits. One bit corresponding to each word in
the memory array. After the matching process, the bits corresponding to
matching words in match register are set to 1
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MEMORY ORGANIZATION
Department of Computer Science - Kamban
College of Arts And Science For Women
DISADVANTAGES OF ASSOCIATIVE MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANTAGES OF ASSOCIATIVE MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
CACHE MAPPING
 There are most common methods available in cache mapping. They are,
• Direct Mapped Cache
• Associative Mapped Cache
• Set- Associated Mapped Cache
Department of Computer Science - Kamban
College of Arts And Science For Women
DIRECT MAPPING
 Each block of main memory maps to only one cache line
i.e., if a block is in cache, it must be is one specific place
 Address is in two parts;
• Least significant w bits identify unique word
• Most significant s bits specify one memory block
Department of Computer Science - Kamban
College of Arts And Science For Women
DIRECT MAPPING ADDRESS STRUCTURE
 24 bit address
 2 bit word identifier(4 byte block)
 22 bit block identifier
 8 bit tag(=22-14)
 14 bit slot or line
Department of Computer Science - Kamban
College of Arts And Science For Women
DIRECT MAPPING FROM CACHE TO MAIN MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
DIRECT MAPPING CACHE ORGANIZATION
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANTAGES
 The tag memory is much smaller than in associative mapped cache
 No need for an associative search, since the slot field is used to direct the
comparison to a single field.
DISADVANTAGES
 Consider what happens when a program references locations that are 219
words apart, which is the size of the cache. Every memory reference will
result in a miss, which will cause an entire block to be read into the cache
even though only a single word is used
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MAPPED CACHE
 A main memory block can load into any line of cache
 Memory address is interpreted as tag and word
 Tag uniquely identifies block of memory
 Every lines tag is examined for a match
 Cache searching gets expensive
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MAPPED CACHE
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANTAGES
 Any main memory block can be placed into any cache slot
 Regardless of how irregular the data and program references are, if a slot is
available for the block, it can be stored in the cache
DISADVANTAGES
 Considerable hardware overhead needed for cache bookkeeping
 There must be a mechanism for searching the tag memory in parallel
Department of Computer Science - Kamban
College of Arts And Science For Women
SET ASSOCIATIVE MAPPING
 Cache is divided into a number of sets
 Each set contains a number of lines
 A given block maps to any line in a given set
 E.g. Block B can be in any line of set I
 2 way associative mapping
Department of Computer Science - Kamban
College of Arts And Science For Women
SET ASSOCIATIVE MAPPING
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANATAGES
 In our example the tag memory increases only slightly from the direct
mapping and only two tags need to be searched for each memory reference
 The set-associative cache is widely used in today’s micro processors
Department of Computer Science - Kamban
College of Arts And Science For Women
VIRTUAL MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
NEED OF VIRTUAL MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
ADDRESS SPACE AND MEMORY SPACE
Department of Computer Science - Kamban
College of Arts And Science For Women
PAGE REPLACEMENT ALGORITHMS
Department of Computer Science - Kamban
College of Arts And Science For Women
FIFO
Department of Computer Science - Kamban
College of Arts And Science For Women
LRU
Department of Computer Science - Kamban
College of Arts And Science For Women
OPT
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANTAGES OF VIRTUAL MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
DISADVANTAGES OF VIRTUAL MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women

Weitere ähnliche Inhalte

Ähnlich wie 20042602207.pptx

Cpu caching concepts mr mahesh
Cpu caching concepts mr maheshCpu caching concepts mr mahesh
Cpu caching concepts mr maheshFaridabad
 
High- Throughput CAM Based On Search and Shift Mechanism
High- Throughput CAM Based On Search and Shift MechanismHigh- Throughput CAM Based On Search and Shift Mechanism
High- Throughput CAM Based On Search and Shift MechanismIJERA Editor
 
cachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfcachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfOmGadekar2
 
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...IJIR JOURNALS IJIRUSA
 
lecture-2-3_Memory.pdf,describing memory
lecture-2-3_Memory.pdf,describing memorylecture-2-3_Memory.pdf,describing memory
lecture-2-3_Memory.pdf,describing memoryfloraaluoch3
 
Demand Paging-R.D.Sivakumar
Demand Paging-R.D.SivakumarDemand Paging-R.D.Sivakumar
Demand Paging-R.D.SivakumarSivakumar R D .
 
Scaling Apache Spark at Facebook
Scaling Apache Spark at FacebookScaling Apache Spark at Facebook
Scaling Apache Spark at FacebookDatabricks
 
Different Approaches in Energy Efficient Cache Memory
Different Approaches in Energy Efficient Cache MemoryDifferent Approaches in Energy Efficient Cache Memory
Different Approaches in Energy Efficient Cache MemoryDhritiman Halder
 
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset ErrorCounter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset ErrorIRJET Journal
 

Ähnlich wie 20042602207.pptx (15)

Cpu caching concepts mr mahesh
Cpu caching concepts mr maheshCpu caching concepts mr mahesh
Cpu caching concepts mr mahesh
 
High- Throughput CAM Based On Search and Shift Mechanism
High- Throughput CAM Based On Search and Shift MechanismHigh- Throughput CAM Based On Search and Shift Mechanism
High- Throughput CAM Based On Search and Shift Mechanism
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
cachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfcachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdf
 
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
 
lecture-2-3_Memory.pdf,describing memory
lecture-2-3_Memory.pdf,describing memorylecture-2-3_Memory.pdf,describing memory
lecture-2-3_Memory.pdf,describing memory
 
Demand Paging-R.D.Sivakumar
Demand Paging-R.D.SivakumarDemand Paging-R.D.Sivakumar
Demand Paging-R.D.Sivakumar
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Oversimplified CA
Oversimplified CAOversimplified CA
Oversimplified CA
 
Scaling Apache Spark at Facebook
Scaling Apache Spark at FacebookScaling Apache Spark at Facebook
Scaling Apache Spark at Facebook
 
Different Approaches in Energy Efficient Cache Memory
Different Approaches in Energy Efficient Cache MemoryDifferent Approaches in Energy Efficient Cache Memory
Different Approaches in Energy Efficient Cache Memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
cache memory.ppt
cache memory.pptcache memory.ppt
cache memory.ppt
 
cache memory.ppt
cache memory.pptcache memory.ppt
cache memory.ppt
 
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset ErrorCounter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
 

Kürzlich hochgeladen

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 

Kürzlich hochgeladen (20)

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

20042602207.pptx

  • 1. Unit -5 Department of Computer Science - Kamban College of Arts And Science For Women
  • 2. SYLLABUS Auxiliary memory – Main memory – Associative memory – Cache memory – Virtual memory Department of Computer Science - Kamban College of Arts And Science For Women
  • 3. AUXILIARY MEMORY  It is used to overcome the limitations of primary storage  Unlimited capacity because the cost per bit of storage is very low  Larger capacity than main memory  Used to store large volumes of data on a permanent basis  It is non-volatile in nature  Also known as secondary memory Department of Computer Science - Kamban College of Arts And Science For Women
  • 4. MAGNETIC MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 5. MAGNETIC DISKS Department of Computer Science - Kamban College of Arts And Science For Women
  • 6. MAGNETIC TAPES Department of Computer Science - Kamban College of Arts And Science For Women
  • 7. MAIN MEMORY  Memory unit that communicates directly with CPU  Programs and data currently needed by the processor reside here  Also known as primary memory  RAM and ROM Department of Computer Science - Kamban College of Arts And Science For Women
  • 8. ASSOCIATIVE MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 9. ASSOCIATIVE MEMORY ORGANIZATION Department of Computer Science - Kamban College of Arts And Science For Women
  • 10. ASSOCIATIVE MEMORY ORGANIZATION  Associative memory is organized in such a way  Argument register(A): It contains the word to be searched. It has n bit (one for each bit of the word)  key register(K): This specifies which part of the argument word needs to be compared with words in memory. If all bits in register are q. the entire word should be compared. Otherwise only the bits having k bit set to 1 will be compared  Associative memory array: It contains the words which any to be compared with the argument word  Match register(M): It has m bits. One bit corresponding to each word in the memory array. After the matching process, the bits corresponding to matching words in match register are set to 1 Department of Computer Science - Kamban College of Arts And Science For Women
  • 11. ASSOCIATIVE MEMORY ORGANIZATION Department of Computer Science - Kamban College of Arts And Science For Women
  • 12. DISADVANTAGES OF ASSOCIATIVE MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 13. ADVANTAGES OF ASSOCIATIVE MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 14. CACHE MAPPING  There are most common methods available in cache mapping. They are, • Direct Mapped Cache • Associative Mapped Cache • Set- Associated Mapped Cache Department of Computer Science - Kamban College of Arts And Science For Women
  • 15. DIRECT MAPPING  Each block of main memory maps to only one cache line i.e., if a block is in cache, it must be is one specific place  Address is in two parts; • Least significant w bits identify unique word • Most significant s bits specify one memory block Department of Computer Science - Kamban College of Arts And Science For Women
  • 16. DIRECT MAPPING ADDRESS STRUCTURE  24 bit address  2 bit word identifier(4 byte block)  22 bit block identifier  8 bit tag(=22-14)  14 bit slot or line Department of Computer Science - Kamban College of Arts And Science For Women
  • 17. DIRECT MAPPING FROM CACHE TO MAIN MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 18. DIRECT MAPPING CACHE ORGANIZATION Department of Computer Science - Kamban College of Arts And Science For Women
  • 19. ADVANTAGES  The tag memory is much smaller than in associative mapped cache  No need for an associative search, since the slot field is used to direct the comparison to a single field. DISADVANTAGES  Consider what happens when a program references locations that are 219 words apart, which is the size of the cache. Every memory reference will result in a miss, which will cause an entire block to be read into the cache even though only a single word is used Department of Computer Science - Kamban College of Arts And Science For Women
  • 20. ASSOCIATIVE MAPPED CACHE  A main memory block can load into any line of cache  Memory address is interpreted as tag and word  Tag uniquely identifies block of memory  Every lines tag is examined for a match  Cache searching gets expensive Department of Computer Science - Kamban College of Arts And Science For Women
  • 21. ASSOCIATIVE MAPPED CACHE Department of Computer Science - Kamban College of Arts And Science For Women
  • 22. ADVANTAGES  Any main memory block can be placed into any cache slot  Regardless of how irregular the data and program references are, if a slot is available for the block, it can be stored in the cache DISADVANTAGES  Considerable hardware overhead needed for cache bookkeeping  There must be a mechanism for searching the tag memory in parallel Department of Computer Science - Kamban College of Arts And Science For Women
  • 23. SET ASSOCIATIVE MAPPING  Cache is divided into a number of sets  Each set contains a number of lines  A given block maps to any line in a given set  E.g. Block B can be in any line of set I  2 way associative mapping Department of Computer Science - Kamban College of Arts And Science For Women
  • 24. SET ASSOCIATIVE MAPPING Department of Computer Science - Kamban College of Arts And Science For Women
  • 25. ADVANATAGES  In our example the tag memory increases only slightly from the direct mapping and only two tags need to be searched for each memory reference  The set-associative cache is widely used in today’s micro processors Department of Computer Science - Kamban College of Arts And Science For Women
  • 26. VIRTUAL MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 27. NEED OF VIRTUAL MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 28. ADDRESS SPACE AND MEMORY SPACE Department of Computer Science - Kamban College of Arts And Science For Women
  • 29. PAGE REPLACEMENT ALGORITHMS Department of Computer Science - Kamban College of Arts And Science For Women
  • 30. FIFO Department of Computer Science - Kamban College of Arts And Science For Women
  • 31. LRU Department of Computer Science - Kamban College of Arts And Science For Women
  • 32. OPT Department of Computer Science - Kamban College of Arts And Science For Women
  • 33. ADVANTAGES OF VIRTUAL MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 34. DISADVANTAGES OF VIRTUAL MEMORY Department of Computer Science - Kamban College of Arts And Science For Women