SlideShare a Scribd company logo
1 of 19
Cache Memory




http://improvec.blogspot.in/   1
Objective:

On completion of this period, you would be able
 to understand:

 Cache memory used in computers.




               http://improvec.blogspot.in/   2
Recap:

 What is meant by memory ?

     A space to keep information.

     It stores program, data results or any kind
      of information.




                  http://improvec.blogspot.in/      3
Cache Memory

 The word cache is pronounced as cash.

 Cache memory is placed between the CPU and
  the main memory.

 It stores instructions and data which are to be
  currently executed by the CPU.


                   http://improvec.blogspot.in/     4
Cache Memory (contd...)


It is a semiconductor memory

It is not accessible to users i.e. information
cannot be written into cache memory by users.

It increases the speed of the computer up to
15%.


                  http://improvec.blogspot.in/    5
Cache Memory (contd...)



 It consists of static RAMs.

 Its access time is 10ns which is much less than
  that of the main memory i.e. 50ns




                   http://improvec.blogspot.in/     6
Memory Hierarchy with cache memory




        Cache                   Primary    Secondary
CPU
        Memory                  Memory      Memory




            http://improvec.blogspot.in/          7
Types Of Cache Schemes


Write-through

Write-back




      http://improvec.blogspot.in/   8
Write-through

 Cache memory is updated each time when the
  CPU writes into the cache.

 The advantage of the write through cache is that
  the main memory always contains the same
  data as the cache contains.




                 http://improvec.blogspot.in/   9
Write-back

 Only the cache memory is updated during a
  write operation.

 The updated locations in the cache are marked
  by flags so that later on when the word is
  removed from cache, it is copied into the main
  memory.



                 http://improvec.blogspot.in/      10
Write-back (contd)


 The words are removed from the cache time to
  time to make room for a new block of words.




                 http://improvec.blogspot.in/    11
Level of Cache Memory


1. First level cache (L1).

2. Second level cache (L2).

3. Third level cache (L3).




       http://improvec.blogspot.in/   12
Cache memory is placed at two or three
            levels (contd)


 The resident cache is called Level – L1
  (internal).

 In addition to the cache memory built into the
  CPU, cache is also added to the motherboard.

 This motherboard- resident cache is often called
  Level – L2 (external).
                   http://improvec.blogspot.in/    13
Cache memory is placed at two or three
            levels (contd)
 Some computers contain L1 and L2 within the
  microprocessor.

 Cache memory within the processor is called
  internal cache.

 The cache outside the processor is called
  external cache.


                  http://improvec.blogspot.in/   14
Summary:

In this class, we have learnt about

            About cache memory.

           Levels of cache memory used in
            computers.




                   http://improvec.blogspot.in/   15
Frequently Asked Questions

1. What is a Cache Memory?

2. Explain levels of cache memory?




                 http://improvec.blogspot.in/   16
Quiz:

1. Cache memory within the processor is called
  internal cache?
     a. Yes
     b. No
Answer: a




                    http://improvec.blogspot.in/   17
Quiz:



2. Cache consists of
     a. static RAMs.
     b. dynamic RAMs
Answer: a




                  http://improvec.blogspot.in/   18
Quiz:

3. Cache is a
     a. magnetic memory
     b. semiconductor memory.
Answer: b




                http://improvec.blogspot.in/   19

More Related Content

What's hot (20)

Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory and cache
Cache memory and cacheCache memory and cache
Cache memory and cache
 
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
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Project Presentation Final
Project Presentation FinalProject Presentation Final
Project Presentation Final
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
Cachememory
CachememoryCachememory
Cachememory
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
cache memory
 cache memory cache memory
cache memory
 
Cache memory principles
Cache memory principlesCache memory principles
Cache memory principles
 
Cache design
Cache design Cache design
Cache design
 
cache memory
 cache memory cache memory
cache memory
 
Cache
CacheCache
Cache
 
Locality of (p)reference
Locality of (p)referenceLocality of (p)reference
Locality of (p)reference
 

Viewers also liked

Viewers also liked (20)

Cache memory presentation
Cache memory presentationCache memory presentation
Cache memory presentation
 
cache memory
cache memorycache memory
cache memory
 
Memory Mapping Cache
Memory Mapping CacheMemory Mapping Cache
Memory Mapping Cache
 
Csc1401 lecture05 - cache memory
Csc1401   lecture05 - cache memoryCsc1401   lecture05 - cache memory
Csc1401 lecture05 - cache memory
 
Wireless sensor networks
Wireless sensor networksWireless sensor networks
Wireless sensor networks
 
Motorola microprocessor
Motorola microprocessorMotorola microprocessor
Motorola microprocessor
 
MATERI SISTEM KOMPUTER KELAS X
MATERI SISTEM KOMPUTER KELAS XMATERI SISTEM KOMPUTER KELAS X
MATERI SISTEM KOMPUTER KELAS X
 
Routing Protocols for Wireless Sensor Networks
Routing Protocols for Wireless Sensor NetworksRouting Protocols for Wireless Sensor Networks
Routing Protocols for Wireless Sensor Networks
 
Lecture6 memory hierarchy
Lecture6 memory hierarchyLecture6 memory hierarchy
Lecture6 memory hierarchy
 
Cache memory
Cache memoryCache memory
Cache memory
 
Hierarchical Memory System
Hierarchical Memory SystemHierarchical Memory System
Hierarchical Memory System
 
Routing Protocols in WSN
Routing Protocols in WSNRouting Protocols in WSN
Routing Protocols in WSN
 
Cache memory
Cache memoryCache memory
Cache memory
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
Unreal Summit 2016 Seoul Lighting the Planetary World of Project A1
Unreal Summit 2016 Seoul Lighting the Planetary World of Project A1Unreal Summit 2016 Seoul Lighting the Planetary World of Project A1
Unreal Summit 2016 Seoul Lighting the Planetary World of Project A1
 
memory hierarchy
memory hierarchymemory hierarchy
memory hierarchy
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
pipelining
pipeliningpipelining
pipelining
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 

Similar to Cache memory.12

Function of memory.4to5
Function of memory.4to5Function of memory.4to5
Function of memory.4to5myrajendra
 
Function of memory.4to5
Function of memory.4to5Function of memory.4to5
Function of memory.4to5myrajendra
 
Types of memory 10 to11
Types of memory 10 to11Types of memory 10 to11
Types of memory 10 to11myrajendra
 
Types of memory
Types of memoryTypes of memory
Types of memorymyrajendra
 
Types of memory
Types of memoryTypes of memory
Types of memorymyrajendra
 
5.6 Basic computer structure microprocessors
5.6 Basic computer structure   microprocessors5.6 Basic computer structure   microprocessors
5.6 Basic computer structure microprocessorslpapadop
 
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdfaniyathikitchen
 
Big Java Chapter 1
Big Java Chapter 1Big Java Chapter 1
Big Java Chapter 1Maria Joslin
 
bufferoverflow-151214121251 presentation
bufferoverflow-151214121251 presentationbufferoverflow-151214121251 presentation
bufferoverflow-151214121251 presentationJohnLagman3
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memoryPrakharBansal29
 
Understanding PHP memory
Understanding PHP memoryUnderstanding PHP memory
Understanding PHP memoryjulien pauli
 
Unit I Memory technology and optimization
Unit I Memory technology and optimizationUnit I Memory technology and optimization
Unit I Memory technology and optimizationK Gowsic Gowsic
 
1.ProcessorProcessor is a small chip which is placed in the compu.pdf
1.ProcessorProcessor is a small chip which is placed in the compu.pdf1.ProcessorProcessor is a small chip which is placed in the compu.pdf
1.ProcessorProcessor is a small chip which is placed in the compu.pdfpritikulkarni20
 
ملٹی لیول کے شے۔
ملٹی لیول کے شے۔ملٹی لیول کے شے۔
ملٹی لیول کے شے۔maamir farooq
 
Itroduction about java
Itroduction about javaItroduction about java
Itroduction about javasrmohan06
 

Similar to Cache memory.12 (20)

Function of memory.4to5
Function of memory.4to5Function of memory.4to5
Function of memory.4to5
 
Function of memory.4to5
Function of memory.4to5Function of memory.4to5
Function of memory.4to5
 
Types of memory 10 to11
Types of memory 10 to11Types of memory 10 to11
Types of memory 10 to11
 
Types of memory
Types of memoryTypes of memory
Types of memory
 
Types of memory
Types of memoryTypes of memory
Types of memory
 
5.6 Basic computer structure microprocessors
5.6 Basic computer structure   microprocessors5.6 Basic computer structure   microprocessors
5.6 Basic computer structure microprocessors
 
M E M O R Y
M E M O R YM E M O R Y
M E M O R Y
 
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
 
Big Java Chapter 1
Big Java Chapter 1Big Java Chapter 1
Big Java Chapter 1
 
Chapter1a
Chapter1aChapter1a
Chapter1a
 
bufferoverflow-151214121251 presentation
bufferoverflow-151214121251 presentationbufferoverflow-151214121251 presentation
bufferoverflow-151214121251 presentation
 
Buffer overflow
Buffer overflowBuffer overflow
Buffer overflow
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 
Understanding PHP memory
Understanding PHP memoryUnderstanding PHP memory
Understanding PHP memory
 
CA UNIT V..pptx
CA UNIT V..pptxCA UNIT V..pptx
CA UNIT V..pptx
 
Unit I Memory technology and optimization
Unit I Memory technology and optimizationUnit I Memory technology and optimization
Unit I Memory technology and optimization
 
1.ProcessorProcessor is a small chip which is placed in the compu.pdf
1.ProcessorProcessor is a small chip which is placed in the compu.pdf1.ProcessorProcessor is a small chip which is placed in the compu.pdf
1.ProcessorProcessor is a small chip which is placed in the compu.pdf
 
ملٹی لیول کے شے۔
ملٹی لیول کے شے۔ملٹی لیول کے شے۔
ملٹی لیول کے شے۔
 
Itroduction about java
Itroduction about javaItroduction about java
Itroduction about java
 
Cache memory
Cache memory Cache memory
Cache memory
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Cache memory.12

  • 2. Objective: On completion of this period, you would be able to understand:  Cache memory used in computers. http://improvec.blogspot.in/ 2
  • 3. Recap:  What is meant by memory ? A space to keep information. It stores program, data results or any kind of information. http://improvec.blogspot.in/ 3
  • 4. Cache Memory  The word cache is pronounced as cash.  Cache memory is placed between the CPU and the main memory.  It stores instructions and data which are to be currently executed by the CPU. http://improvec.blogspot.in/ 4
  • 5. Cache Memory (contd...) It is a semiconductor memory It is not accessible to users i.e. information cannot be written into cache memory by users. It increases the speed of the computer up to 15%. http://improvec.blogspot.in/ 5
  • 6. Cache Memory (contd...)  It consists of static RAMs.  Its access time is 10ns which is much less than that of the main memory i.e. 50ns http://improvec.blogspot.in/ 6
  • 7. Memory Hierarchy with cache memory Cache Primary Secondary CPU Memory Memory Memory http://improvec.blogspot.in/ 7
  • 8. Types Of Cache Schemes Write-through Write-back http://improvec.blogspot.in/ 8
  • 9. Write-through  Cache memory is updated each time when the CPU writes into the cache.  The advantage of the write through cache is that the main memory always contains the same data as the cache contains. http://improvec.blogspot.in/ 9
  • 10. Write-back  Only the cache memory is updated during a write operation.  The updated locations in the cache are marked by flags so that later on when the word is removed from cache, it is copied into the main memory. http://improvec.blogspot.in/ 10
  • 11. Write-back (contd)  The words are removed from the cache time to time to make room for a new block of words. http://improvec.blogspot.in/ 11
  • 12. Level of Cache Memory 1. First level cache (L1). 2. Second level cache (L2). 3. Third level cache (L3). http://improvec.blogspot.in/ 12
  • 13. Cache memory is placed at two or three levels (contd)  The resident cache is called Level – L1 (internal).  In addition to the cache memory built into the CPU, cache is also added to the motherboard.  This motherboard- resident cache is often called Level – L2 (external). http://improvec.blogspot.in/ 13
  • 14. Cache memory is placed at two or three levels (contd)  Some computers contain L1 and L2 within the microprocessor.  Cache memory within the processor is called internal cache.  The cache outside the processor is called external cache. http://improvec.blogspot.in/ 14
  • 15. Summary: In this class, we have learnt about  About cache memory. Levels of cache memory used in computers. http://improvec.blogspot.in/ 15
  • 16. Frequently Asked Questions 1. What is a Cache Memory? 2. Explain levels of cache memory? http://improvec.blogspot.in/ 16
  • 17. Quiz: 1. Cache memory within the processor is called internal cache? a. Yes b. No Answer: a http://improvec.blogspot.in/ 17
  • 18. Quiz: 2. Cache consists of a. static RAMs. b. dynamic RAMs Answer: a http://improvec.blogspot.in/ 18
  • 19. Quiz: 3. Cache is a a. magnetic memory b. semiconductor memory. Answer: b http://improvec.blogspot.in/ 19