SlideShare a Scribd company logo




Memory Hierarchy
Cache
Cache performance






The memory unit is an essential component in
any digital computer since it is needed for
storing programs and data
Not all accumulated information is needed by
the CPU at the same time
Therefore, it is more economical to use low-cost
storage devices to serve as a backup for storing
the information that is not currently used by
CPU
Q. How do architects address this gap?
A. Put smaller, faster “cache” memories
between CPU and DRAM. Create a “memory
hierarchy”.





The memory unit that directly communicate
with CPU is called the main memory
Devices that provide backup storage are called
auxiliary memory
The memory hierarchy system consists of all
storage devices employed in a computer
system from the slow by high-capacity
auxiliary memory to a relatively faster main
memory, to an even smaller and faster cache
memory




The main memory occupies a central position by being
able to communicate directly with the CPU and with
auxiliary memory devices through an I/O processor
A special very-high-speed memory called cache is used
to increase the speed of processing by making current
programs and data available to the CPU at a rapid rate








CPU logic is usually faster than main memory
access time, with the result that processing speed
is limited primarily by the speed of main memory
The cache is used for storing segments of
programs currently being executed in the CPU
and temporary data frequently needed in the
present calculations
The typical access time ratio between cache and
main memory is about 1 to 7~10
Auxiliary memory access time is usually 1000
times that of main memory


Most of the main memory in a general purpose
computer is made up of RAM integrated
circuits chips, but a portion of the memory may
be constructed with ROM chips



RAM– Random Access memory




In tegated RAM are available in two possible
operating modes, Static and Dynamic

ROM– Read Only memory


Static RAM (SRAM)
 Each cell stores bit with a six-transistor circuit.
 Retains value indefinitely, as long as it is kept powered.
 Relatively insensitive to disturbances such as electrical noise.
 Faster (8-16 times faster) and more expensive (8-16 times more
expensice as well) than DRAM.



Dynamic RAM (DRAM)
 Each cell stores bit with a capacitor and transistor.
 Value must be refreshed every 10-100 ms.
 Sensitive to disturbances.
 Slower and cheaper than SRAM.




ROM is used for storing programs that are
PERMENTLY resident in the computer and for
tables of constants that do not change in value
once the production of the computer is
completed
The ROM portion of main memory is needed
for storing an initial program called bootstrap
loader, witch is to start the computer software
operating when power is turned off


A RAM chip is better suited for communication
with the CPU if it has one or more control
inputs that select the chip when needed



The Block diagram of a RAM chip is shown
next slide, the capacity of the memory is 128
words of 8 bits (one byte) per word


Memory Address Map is a pictorial representation of
assigned address space for each chip in the system



To demonstrate an example, assume that a computer
system needs 512 bytes of RAM and 512 bytes of ROM



The RAM have 128 byte and need seven address lines,
where the ROM have 512 bytes and need 9 address
lines




Memory Hierarchy
Cache
Cache performance









A special- very- high speed memory called cash
memory.
Thus reducing the total execution time of the
program.
it is used to increase the speed of processing .
It is used to store segments of programs currently
being executed in the CPU.
The dash organization is concerned with the
transfer of information between main memory
and CPU.






When CPU needs to access memory, the cache
is examined
If the word is found in the cache, it is read from
the fast memory
If the word addressed by the CPU is not found
in the cache, the main memory is accessed to
read the word








When the CPU refers to memory and finds the
word in cache, it is said to produce a hit
Otherwise, it is a miss
The performance of cache memory is
frequently measured in terms of a quantity
called hit ratio
Hit ratio = hit / (hit+miss)






The basic characteristic of cache memory is its
fast access time,
Therefore, very little or no time must be wasted
when searching the words in the cache
The transformation of data from main memory
to cache memory is referred to as a mapping
process, there are three types of mapping:
 Associative mapping
 Direct mapping
 Set-associative mapping


To help understand the mapping procedure,
we have the following example:




Memory Hierarchy
Cache
Cache performance


Although a single cache could try to supply
instruction and data, it can be a bottleneck.



For example: when a load or store instruction is
executed, the pipelined processor will
simultaneously request both data AND
instruction



Hence, a single cache would present a
structural hazard for loads and stores, leading
to a stall


One simple way to conquer this problem is to
divide it:



One cache is dedicated to instructions and
another to data.



Separate caches are found in most recent
processors.


Average memory access time =
% instructions * (Hit_time + instruction miss
rate*miss_penality)
+
% data * (Hit_time + data miss rate*miss_penality)






Assume 40% of the instructions are data
accessing instruction.
Let a hit take 1 clock cycle and the miss penalty
is 100 clock cycle
Assume instruction miss rate is 4% and data
access miss rate is 12%, what is the average
memory access time?
60% * (1 + 4% * 100) +
40% * (1 + 12% * 100)
= 0.6 * (5) + 0.4 * (13)
= 8.2 (clock cycle)
Cache memory ...

More Related Content

What's hot

Cache memory
Cache memoryCache memory
Cache memory
Abir Rahman
 
cache memory
 cache memory cache memory
Project Presentation Final
Project Presentation FinalProject Presentation Final
Project Presentation FinalDhritiman Halder
 
Hierarchical Memory System
Hierarchical Memory SystemHierarchical Memory System
Hierarchical Memory System
Jenny Galino
 
Cache memoy designed by Mohd Tariq
Cache memoy designed by Mohd TariqCache memoy designed by Mohd Tariq
Cache memoy designed by Mohd Tariq
Mohd Tariq
 
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address TranslationMemory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
Farwa Ansari
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt
Arpita Naik
 
Cache memory
Cache memoryCache memory
Cache memory
Jay Prajapati
 
Cache memory.12
Cache memory.12Cache memory.12
Cache memory.12myrajendra
 
Memory technology and optimization in Advance Computer Architechture
Memory technology and optimization in Advance Computer ArchitechtureMemory technology and optimization in Advance Computer Architechture
Memory technology and optimization in Advance Computer ArchitechtureShweta Ghate
 
Cache Memory Computer Architecture and organization
Cache Memory Computer Architecture and organizationCache Memory Computer Architecture and organization
Cache Memory Computer Architecture and organization
Humayra Khanum
 
Cache memory
Cache memoryCache memory
Cache memory
Faiq Ali Sayed
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
PrakharBansal29
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Caches microP
Caches microPCaches microP
Cache memory
Cache memory Cache memory
Cache memory
Zalal Udeen
 

What's hot (20)

Cache memory
Cache memoryCache memory
Cache memory
 
cache memory
 cache memory cache memory
cache memory
 
Project Presentation Final
Project Presentation FinalProject Presentation Final
Project Presentation Final
 
04 Cache Memory
04  Cache  Memory04  Cache  Memory
04 Cache Memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Hierarchical Memory System
Hierarchical Memory SystemHierarchical Memory System
Hierarchical Memory System
 
Cache memoy designed by Mohd Tariq
Cache memoy designed by Mohd TariqCache memoy designed by Mohd Tariq
Cache memoy designed by Mohd Tariq
 
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address TranslationMemory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
 
Cache
CacheCache
Cache
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory.12
Cache memory.12Cache memory.12
Cache memory.12
 
Memory technology and optimization in Advance Computer Architechture
Memory technology and optimization in Advance Computer ArchitechtureMemory technology and optimization in Advance Computer Architechture
Memory technology and optimization in Advance Computer Architechture
 
Cache Memory Computer Architecture and organization
Cache Memory Computer Architecture and organizationCache Memory Computer Architecture and organization
Cache Memory Computer Architecture and organization
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cachememory
CachememoryCachememory
Cachememory
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Caches microP
Caches microPCaches microP
Caches microP
 
Cache memory
Cache memory Cache memory
Cache memory
 

Similar to Cache memory ...

Ram and types of ram.Cache
Ram and types of ram.CacheRam and types of ram.Cache
Ram and types of ram.Cache
hamza mukhtiar
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORYRajat More
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
NancyBeaulah_R
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryAshik Iqbal
 
CA UNIT V..pptx
CA UNIT V..pptxCA UNIT V..pptx
CA UNIT V..pptx
ssuser9dbd7e
 
Computer memory and types of memory.pptx
Computer memory and types of memory.pptxComputer memory and types of memory.pptx
Computer memory and types of memory.pptx
dbmscse61
 
Memory Organization of a Computer System
Memory Organization of a Computer SystemMemory Organization of a Computer System
Memory Organization of a Computer System
Taminul Islam
 
06 - Memory.ppt
06 - Memory.ppt06 - Memory.ppt
06 - Memory.ppt
AliyuAhmed9
 
Understanding And Managing Memory
Understanding And Managing MemoryUnderstanding And Managing Memory
Understanding And Managing Memoryisma ishak
 
Memory managment
Memory managmentMemory managment
Memory managment
Shahbaz Khan
 
Unit 5-lecture-2
Unit 5-lecture-2Unit 5-lecture-2
Unit 5-lecture-2
vishal choudhary
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
SURBHI SAROHA
 
Unit I Memory technology and optimization
Unit I Memory technology and optimizationUnit I Memory technology and optimization
Unit I Memory technology and optimization
K Gowsic Gowsic
 
memorytechnologyandoptimization-140416131506-phpapp02.pptx
memorytechnologyandoptimization-140416131506-phpapp02.pptxmemorytechnologyandoptimization-140416131506-phpapp02.pptx
memorytechnologyandoptimization-140416131506-phpapp02.pptx
shahdivyanshu1002
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
sreelakshmikv
 
CPU - Central processing unit
CPU - Central processing unitCPU - Central processing unit
CPU - Central processing unit
Abhinav Vishnoi
 
Memory devices
Memory devicesMemory devices
Memory devices
arpit sharma
 
Cache memory
Cache memoryCache memory
Cache memory
Abir Rahman
 

Similar to Cache memory ... (20)

Ram and types of ram.Cache
Ram and types of ram.CacheRam and types of ram.Cache
Ram and types of ram.Cache
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORY
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache Memory
 
CA UNIT V..pptx
CA UNIT V..pptxCA UNIT V..pptx
CA UNIT V..pptx
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Computer memory and types of memory.pptx
Computer memory and types of memory.pptxComputer memory and types of memory.pptx
Computer memory and types of memory.pptx
 
Memory Organization of a Computer System
Memory Organization of a Computer SystemMemory Organization of a Computer System
Memory Organization of a Computer System
 
06 - Memory.ppt
06 - Memory.ppt06 - Memory.ppt
06 - Memory.ppt
 
Understanding And Managing Memory
Understanding And Managing MemoryUnderstanding And Managing Memory
Understanding And Managing Memory
 
Memory managment
Memory managmentMemory managment
Memory managment
 
Unit 5-lecture-2
Unit 5-lecture-2Unit 5-lecture-2
Unit 5-lecture-2
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
Unit I Memory technology and optimization
Unit I Memory technology and optimizationUnit I Memory technology and optimization
Unit I Memory technology and optimization
 
memorytechnologyandoptimization-140416131506-phpapp02.pptx
memorytechnologyandoptimization-140416131506-phpapp02.pptxmemorytechnologyandoptimization-140416131506-phpapp02.pptx
memorytechnologyandoptimization-140416131506-phpapp02.pptx
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
 
CPU - Central processing unit
CPU - Central processing unitCPU - Central processing unit
CPU - Central processing unit
 
Memory devices
Memory devicesMemory devices
Memory devices
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory presentation
Cache memory presentationCache memory presentation
Cache memory presentation
 

Recently uploaded

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 

Recently uploaded (20)

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 

Cache memory ...

  • 1.
  • 2.
  • 4.    The memory unit is an essential component in any digital computer since it is needed for storing programs and data Not all accumulated information is needed by the CPU at the same time Therefore, it is more economical to use low-cost storage devices to serve as a backup for storing the information that is not currently used by CPU
  • 5. Q. How do architects address this gap? A. Put smaller, faster “cache” memories between CPU and DRAM. Create a “memory hierarchy”.
  • 6.    The memory unit that directly communicate with CPU is called the main memory Devices that provide backup storage are called auxiliary memory The memory hierarchy system consists of all storage devices employed in a computer system from the slow by high-capacity auxiliary memory to a relatively faster main memory, to an even smaller and faster cache memory
  • 7.   The main memory occupies a central position by being able to communicate directly with the CPU and with auxiliary memory devices through an I/O processor A special very-high-speed memory called cache is used to increase the speed of processing by making current programs and data available to the CPU at a rapid rate
  • 8.     CPU logic is usually faster than main memory access time, with the result that processing speed is limited primarily by the speed of main memory The cache is used for storing segments of programs currently being executed in the CPU and temporary data frequently needed in the present calculations The typical access time ratio between cache and main memory is about 1 to 7~10 Auxiliary memory access time is usually 1000 times that of main memory
  • 9.  Most of the main memory in a general purpose computer is made up of RAM integrated circuits chips, but a portion of the memory may be constructed with ROM chips  RAM– Random Access memory   In tegated RAM are available in two possible operating modes, Static and Dynamic ROM– Read Only memory
  • 10.  Static RAM (SRAM)  Each cell stores bit with a six-transistor circuit.  Retains value indefinitely, as long as it is kept powered.  Relatively insensitive to disturbances such as electrical noise.  Faster (8-16 times faster) and more expensive (8-16 times more expensice as well) than DRAM.  Dynamic RAM (DRAM)  Each cell stores bit with a capacitor and transistor.  Value must be refreshed every 10-100 ms.  Sensitive to disturbances.  Slower and cheaper than SRAM.
  • 11.   ROM is used for storing programs that are PERMENTLY resident in the computer and for tables of constants that do not change in value once the production of the computer is completed The ROM portion of main memory is needed for storing an initial program called bootstrap loader, witch is to start the computer software operating when power is turned off
  • 12.  A RAM chip is better suited for communication with the CPU if it has one or more control inputs that select the chip when needed  The Block diagram of a RAM chip is shown next slide, the capacity of the memory is 128 words of 8 bits (one byte) per word
  • 13.
  • 14.
  • 15.  Memory Address Map is a pictorial representation of assigned address space for each chip in the system  To demonstrate an example, assume that a computer system needs 512 bytes of RAM and 512 bytes of ROM  The RAM have 128 byte and need seven address lines, where the ROM have 512 bytes and need 9 address lines
  • 16.
  • 17.
  • 19.      A special- very- high speed memory called cash memory. Thus reducing the total execution time of the program. it is used to increase the speed of processing . It is used to store segments of programs currently being executed in the CPU. The dash organization is concerned with the transfer of information between main memory and CPU.
  • 20.    When CPU needs to access memory, the cache is examined If the word is found in the cache, it is read from the fast memory If the word addressed by the CPU is not found in the cache, the main memory is accessed to read the word
  • 21.     When the CPU refers to memory and finds the word in cache, it is said to produce a hit Otherwise, it is a miss The performance of cache memory is frequently measured in terms of a quantity called hit ratio Hit ratio = hit / (hit+miss)
  • 22.    The basic characteristic of cache memory is its fast access time, Therefore, very little or no time must be wasted when searching the words in the cache The transformation of data from main memory to cache memory is referred to as a mapping process, there are three types of mapping:  Associative mapping  Direct mapping  Set-associative mapping
  • 23.  To help understand the mapping procedure, we have the following example:
  • 25.  Although a single cache could try to supply instruction and data, it can be a bottleneck.  For example: when a load or store instruction is executed, the pipelined processor will simultaneously request both data AND instruction  Hence, a single cache would present a structural hazard for loads and stores, leading to a stall
  • 26.  One simple way to conquer this problem is to divide it:  One cache is dedicated to instructions and another to data.  Separate caches are found in most recent processors.
  • 27.  Average memory access time = % instructions * (Hit_time + instruction miss rate*miss_penality) + % data * (Hit_time + data miss rate*miss_penality)
  • 28.    Assume 40% of the instructions are data accessing instruction. Let a hit take 1 clock cycle and the miss penalty is 100 clock cycle Assume instruction miss rate is 4% and data access miss rate is 12%, what is the average memory access time?
  • 29. 60% * (1 + 4% * 100) + 40% * (1 + 12% * 100) = 0.6 * (5) + 0.4 * (13) = 8.2 (clock cycle)