SlideShare a Scribd company logo
1 of 23
MEMORY
HIERARCHY
OBJECTIVE
• Study about the various types of memory according
to size, cost and speed.
Memory Hierarchy
• 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
Memory Hierarchy
• Computer Memory Hierarchy is a pyramid structure that is
commonly used to illustrate the significant differences among
memory types.
• 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
Figure
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
– Integrated RAM are available in two possible operating
modes, Static and Dynamic
• ROM– Read Only memory
RAM
 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
 Read/write memory, that initially doesn’t contain any data
 The computing system that it is used in usually stores data at
various locations to retrieve it latter from these locations
 Its data pins are bidirectional (data can flow into or out of the
chip via these pins), as opposite to those of ROM that are output
only
 It loses its data once the power is removed, so it is a volatile
memory
 It has a directional select signal R/W’; When R/W’=1, the chip
outputs data to the rest of the circuit; when R/W’ = 0 it inputs
data from the rest of the circuit
FIG: RAM
Random-Access Memory Types
Static RAM (SRAM)
Each cell stores bit with a six-transistor (Diode) circuit.
Retains value indefinitely, as long as it is kept powered.
Relatively insensitive to disturbances such as electrical noise.
Faster and more expensive 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.
FIG :SRAM FIG:DRAM
ROM
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
FIG: ROM
ROM Types
 Masked ROM – programmed with its data when the chip is
fabricated
 PROM – programmable ROM, by the user using a standard
PROM programmer, by burning some special type of fuses.
Once programmed will not be possible to program it again
 EPROM – erasable ROM; the chip can be erased and chip
reprogrammed; programming process consists in charging
some internal capacitors; the UV light (method of erase)
makes those capacitors to leak their charge, thus resetting the
chip
 EEPROM – Electrically Erasable PROM; it is possible to
modify individual locations of the memory, leaving others
unchanged; one common use of the EEPROM is in BIOS of
personal computers.
Auxiliary Memory
The main memory construction is costly. Therefore, it has to be
limited in size. The main memory is used to store only those
instructions and data which are to be used immediately. However,
a computer has to store a large amount of information. The bulk of
information is stored in the auxiliary memory. This is also called
backing storage or secondary storage. They include hard disk, floppy
disks, CD-ROM, USB flash drives, etc.
When the electricity supply to the computer is off, all data stored in
the primary storage is destroyed. On the other hand, this is not true
for secondary storage. The data stored in secondary storage can be
stored for the desired time
FIG:AUXILLARY MEMORY DEVICES
Cache memory
If the active portions of the program and data are
placed in a fast small memory, the average memory
access time can be reduced,
Thus reducing the total execution time of the
program
Such a fast small memory is referred to as cache
memory
The cache is the fastest component in the memory
hierarchy and approaches the speed of CPU
component
• 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
• 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
Cache memory cont…..
L1 ,L2 and L3 cache
• L1 cache (2KB - 64KB)
• L1 cache (also known as primary cache or Level 1
cache) is the top most cache in the hierarchy of cache
levels of a CPU. It is the fastest cache in the hierarchy.
It has a smaller size and a smaller delay (zero wait-
state) because it is usually built in to the chip. SRAM
(Static Random Access Memory) is used for the
implementation of L1.
• L2 cache (256KB - 512KB)
• L2 cache (also known as secondary cache or Level 2
cache) is the cache that is next to L1 in the cache
hierarchy. L2 is usually accessed only if the data
looking for is not found in L1. L2 is typically
implemented using a DRAM (Dynamic Random
Access Memory). Most times, L2 is soldered on to
the motherboard very close to the chip (but not on the
chip itself), but some processors like Pentium Pro
deviated from this standard
• L3 cache (1MB -8MB)
• Level 3 Cache - With each cache miss, it proceeds to
the next level cache. This is the largest among the all
the cache, even though it is slower, its still faster than
the RAM.
Difference between L1, L2 and L3 cache
• All processors rely on L1 cache, this is usually
located on the die of the processor and is very fast
memory (and expensive). L2 cache is slower, bigger
and cheaper than L1 cache. Older processors used L2
cache on the motherboard, nowadays it tends to be
built in to the processor. L3 cache is slower, bigger
and cheaper than L2 cache. Again this can be on chip
or on the motherboard.
Virtual memory
• Virtual memory is imaginary memory: it
gives you the illusion of a memory
arrangement that’s not physically there.
Thank you…..
BY…
SREELAKSHMI KV

More Related Content

What's hot

Ram & rom memories
Ram & rom memoriesRam & rom memories
Ram & rom memories
angelaag98
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
abdosaidgkv
 

What's hot (20)

Computer registers
Computer registersComputer registers
Computer registers
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Ram & rom
Ram & romRam & rom
Ram & rom
 
Random access memory
Random access memoryRandom access memory
Random access memory
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
Computer Memory
 Computer Memory Computer Memory
Computer Memory
 
Memory organisation ppt final presentation
Memory organisation ppt final presentationMemory organisation ppt final presentation
Memory organisation ppt final presentation
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Ram presentation
Ram presentationRam presentation
Ram presentation
 
Main memory of computer .ppt
Main memory of computer .pptMain memory of computer .ppt
Main memory of computer .ppt
 
Ram & rom memories
Ram & rom memoriesRam & rom memories
Ram & rom memories
 
Memory management
Memory managementMemory management
Memory management
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 
Memory units
Memory unitsMemory units
Memory units
 
Secondary memory
Secondary memorySecondary memory
Secondary memory
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Secondary memory
Secondary memorySecondary memory
Secondary memory
 

Similar to memory hierarchy

COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORY
Rajat More
 

Similar to memory hierarchy (20)

primary memory
primary memoryprimary memory
primary memory
 
Memory and storage devices
Memory and storage devicesMemory and storage devices
Memory and storage devices
 
cache memory and cloud computing technology
cache memory and cloud computing technologycache memory and cloud computing technology
cache memory and cloud computing technology
 
its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...its about computer storage and its managements how to manage the memory, in a...
its about computer storage and its managements how to manage the memory, in a...
 
Basics Of Semiconductor Memories
Basics Of Semiconductor MemoriesBasics Of Semiconductor Memories
Basics Of Semiconductor Memories
 
Memory & its types presentation1
Memory & its types presentation1Memory & its types presentation1
Memory & its types presentation1
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORY
 
Ram ppt
Ram pptRam ppt
Ram ppt
 
06. System unit of computer
06. System unit of computer06. System unit of computer
06. System unit of computer
 
06. system unit computer
06. system unit   computer06. system unit   computer
06. system unit computer
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
06 - Memory.ppt
06 - Memory.ppt06 - Memory.ppt
06 - Memory.ppt
 
Main Memory RAM and ROM
Main Memory RAM and ROMMain Memory RAM and ROM
Main Memory RAM and ROM
 
Memory
MemoryMemory
Memory
 
Memory
MemoryMemory
Memory
 
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
 
What is Computer Memory.ppt
What is Computer Memory.pptWhat is Computer Memory.ppt
What is Computer Memory.ppt
 
coa ppt.pptx
coa ppt.pptxcoa ppt.pptx
coa ppt.pptx
 
Memory (2)
Memory (2)Memory (2)
Memory (2)
 
Memory - RAM and its types
Memory - RAM and its typesMemory - RAM and its types
Memory - RAM and its types
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

memory hierarchy

  • 2. OBJECTIVE • Study about the various types of memory according to size, cost and speed.
  • 3. Memory Hierarchy • 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
  • 4. Memory Hierarchy • Computer Memory Hierarchy is a pyramid structure that is commonly used to illustrate the significant differences among memory types. • 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
  • 6. 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 – Integrated RAM are available in two possible operating modes, Static and Dynamic • ROM– Read Only memory
  • 7. RAM  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  Read/write memory, that initially doesn’t contain any data  The computing system that it is used in usually stores data at various locations to retrieve it latter from these locations  Its data pins are bidirectional (data can flow into or out of the chip via these pins), as opposite to those of ROM that are output only  It loses its data once the power is removed, so it is a volatile memory  It has a directional select signal R/W’; When R/W’=1, the chip outputs data to the rest of the circuit; when R/W’ = 0 it inputs data from the rest of the circuit
  • 9. Random-Access Memory Types Static RAM (SRAM) Each cell stores bit with a six-transistor (Diode) circuit. Retains value indefinitely, as long as it is kept powered. Relatively insensitive to disturbances such as electrical noise. Faster and more expensive 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 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
  • 13. ROM Types  Masked ROM – programmed with its data when the chip is fabricated  PROM – programmable ROM, by the user using a standard PROM programmer, by burning some special type of fuses. Once programmed will not be possible to program it again  EPROM – erasable ROM; the chip can be erased and chip reprogrammed; programming process consists in charging some internal capacitors; the UV light (method of erase) makes those capacitors to leak their charge, thus resetting the chip  EEPROM – Electrically Erasable PROM; it is possible to modify individual locations of the memory, leaving others unchanged; one common use of the EEPROM is in BIOS of personal computers.
  • 14. Auxiliary Memory The main memory construction is costly. Therefore, it has to be limited in size. The main memory is used to store only those instructions and data which are to be used immediately. However, a computer has to store a large amount of information. The bulk of information is stored in the auxiliary memory. This is also called backing storage or secondary storage. They include hard disk, floppy disks, CD-ROM, USB flash drives, etc. When the electricity supply to the computer is off, all data stored in the primary storage is destroyed. On the other hand, this is not true for secondary storage. The data stored in secondary storage can be stored for the desired time
  • 16. Cache memory If the active portions of the program and data are placed in a fast small memory, the average memory access time can be reduced, Thus reducing the total execution time of the program Such a fast small memory is referred to as cache memory The cache is the fastest component in the memory hierarchy and approaches the speed of CPU component
  • 17. • 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 • 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 Cache memory cont…..
  • 18. L1 ,L2 and L3 cache • L1 cache (2KB - 64KB) • L1 cache (also known as primary cache or Level 1 cache) is the top most cache in the hierarchy of cache levels of a CPU. It is the fastest cache in the hierarchy. It has a smaller size and a smaller delay (zero wait- state) because it is usually built in to the chip. SRAM (Static Random Access Memory) is used for the implementation of L1.
  • 19. • L2 cache (256KB - 512KB) • L2 cache (also known as secondary cache or Level 2 cache) is the cache that is next to L1 in the cache hierarchy. L2 is usually accessed only if the data looking for is not found in L1. L2 is typically implemented using a DRAM (Dynamic Random Access Memory). Most times, L2 is soldered on to the motherboard very close to the chip (but not on the chip itself), but some processors like Pentium Pro deviated from this standard
  • 20. • L3 cache (1MB -8MB) • Level 3 Cache - With each cache miss, it proceeds to the next level cache. This is the largest among the all the cache, even though it is slower, its still faster than the RAM.
  • 21. Difference between L1, L2 and L3 cache • All processors rely on L1 cache, this is usually located on the die of the processor and is very fast memory (and expensive). L2 cache is slower, bigger and cheaper than L1 cache. Older processors used L2 cache on the motherboard, nowadays it tends to be built in to the processor. L3 cache is slower, bigger and cheaper than L2 cache. Again this can be on chip or on the motherboard.
  • 22. Virtual memory • Virtual memory is imaginary memory: it gives you the illusion of a memory arrangement that’s not physically there.