SlideShare a Scribd company logo
1 of 13
Memory Organization in
Computer Architecture
MSc Computer Science
Create By: Faisal Ur Rehman
Memory Organization in Computer
Architecture
A memory unit is the collection of storage units or devices together.
The memory unit stores the binary information in the form of bits.
Generally, memory/storage is classified into 2 categories:
• Volatile Memory: This loses its data, when power is switched
off.
• Non-Volatile Memory: This is a permanent storage and does
not lose any data when power is switched off.
Memory Hierarchy
Memory Hierarchy
The total memory capacity of a computer can be visualized by
hierarchy of components. The memory hierarchy system consists of
all storage devices contained in a computer system from the slow
Auxiliary Memory to fast Main Memory and to smaller Cache
memory.
• Auxiliary memory access time is generally 1000 times that of the main memory,
hence it is at the bottom of the hierarchy.
• The main memory occupies the central position because it is equipped to
communicate directly with the CPU and with auxiliary memory devices through
Input/output processor (I/O).
• When the program not residing in main memory is needed by the CPU, they are
brought in from auxiliary memory. Programs not currently needed in main
memory are transferred into auxiliary memory to provide space in main
memory for other programs that are currently in use.
Memory Hierarchy
• The cache memory is used to store program data which is
currently being executed in the CPU. Approximate access time
ratio between cache memory and main memory is about 1 to 7~10
Memory Access Methods
• Each memory type, is a collection of numerous memory locations.
To access data from any memory, first it must be located and then
the data is read from the memory location. Following are the
methods to access information from memory locations:
1. Random Access: Main memories are random access
memories, in which each memory location has a unique address.
Using this unique address any memory location can be reached
in the same amount of time in any order.
2. Sequential Access: This methods allows memory access in a
sequence or in order.
3. Direct Access: In this mode, information is stored in tracks,
with each track having a separate read/write head.
Main Memory
• The memory unit that communicates directly within the CPU,
Auxiliary memory and Cache memory, is called main memory. It is
the central storage unit of the computer system. It is a large and
fast memory used to store data during computer operations. Main
memory is made up of RAM and ROM, with RAM integrated circuit
chips holing the major share.
RAM: Random Access Memory
• DRAM: Dynamic RAM, is made of capacitors and transistors, and must be
refreshed every 10~100 ms. It is slower and cheaper than SRAM.
• SRAM: Static RAM, has a six transistor circuit in each cell and retains data, until
powered off.
• NVRAM: Non-Volatile RAM, retains its data, even when turned off. Example:
Flash memory.
Main Memory
ROM: Read Only Memory:
• ROM: Read Only Memory, is non-volatile and is more like a
permanent storage for information. It also stores the bootstrap
loader program, to load and start the operating system when
computer is turned on. PROM(Programmable
ROM), EPROM(Erasable PROM) and EEPROM(Electrically Erasable
PROM) are some commonly used ROMs.
Auxiliary Memory
• Devices that provide backup storage are called auxiliary
memory. For example: Magnetic disks and tapes are commonly
used auxiliary devices. Other devices used as auxiliary memory are
magnetic drums, magnetic bubble memory and optical disks.
• It is not directly accessible to the CPU, and is accessed using the
Input / Output channels.
Cache Memory
• The data or contents of the main memory that are used again and
again by CPU, are stored in the cache memory so that we can
easily access that data in shorter time.
• Whenever the CPU needs to access memory, it first checks the
cache memory. If the data is not found in cache memory then the
CPU moves onto the main memory. It also transfers block of
recent data into the cache and keeps on deleting the old data in
cache to accommodate the new one.
Hit Ratio
• The performance of cache memory is measured in terms of a
quantity called hit ratio. When the CPU refers to memory and finds
the word in cache it is said to produce a hit. If the word is not
found in cache, it is in main memory then it counts as a miss.
• The ratio of the number of hits to the total CPU references to
memory is called hit ratio.
Hit Ratio = Hit/(Hit + Miss)
Associative Memory
• It is also known as content addressable memory (CAM). It is a
memory chip in which each bit position can be compared. In this
the content is compared in each bit cell which allows very fast
table lookup. Since the entire chip can be compared, contents are
randomly stored without considering addressing scheme. These
chips have less storage capacity than regular memory chips.
Any Question?

More Related Content

What's hot

Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
Pradeep Kumar TS
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
Anuj Modi
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
sheetal singh
 

What's hot (20)

Memory organisation ppt final presentation
Memory organisation ppt final presentationMemory organisation ppt final presentation
Memory organisation ppt final presentation
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
 
Associative memory 14208
Associative memory 14208Associative memory 14208
Associative memory 14208
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Cache memory
Cache memoryCache memory
Cache memory
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Computer organization
Computer organizationComputer organization
Computer organization
 
Interleaved memory
Interleaved memoryInterleaved memory
Interleaved memory
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
 
Computer system bus
Computer system busComputer system bus
Computer system bus
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output Organization
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 

Similar to Memory organization in computer architecture

AI and EXPERT SYSTEM of expert system .pptx
AI and EXPERT SYSTEM of expert system .pptxAI and EXPERT SYSTEM of expert system .pptx
AI and EXPERT SYSTEM of expert system .pptx
sanjutoppo93
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
ankush_kumar
 

Similar to Memory organization in computer architecture (20)

Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
AI and EXPERT SYSTEM of expert system .pptx
AI and EXPERT SYSTEM of expert system .pptxAI and EXPERT SYSTEM of expert system .pptx
AI and EXPERT SYSTEM of expert system .pptx
 
memory management ppt .pdf
memory management ppt .pdfmemory management ppt .pdf
memory management ppt .pdf
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 
Memory
MemoryMemory
Memory
 
computer architecture and organisation
computer architecture and organisationcomputer architecture and organisation
computer architecture and organisation
 
Memory Organization of a Computer System
Memory Organization of a Computer SystemMemory Organization of a Computer System
Memory Organization of a Computer System
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
Memory devices
Memory devicesMemory devices
Memory devices
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
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...
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
BBA CHAPTER COMPUTER HARDWARE 5 .pptx
BBA CHAPTER COMPUTER HARDWARE    5 .pptxBBA CHAPTER COMPUTER HARDWARE    5 .pptx
BBA CHAPTER COMPUTER HARDWARE 5 .pptx
 
unit4 and unit5.pptx
unit4 and unit5.pptxunit4 and unit5.pptx
unit4 and unit5.pptx
 
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
 
Unit IV Memory and I/O Organization
Unit IV Memory and I/O OrganizationUnit IV Memory and I/O Organization
Unit IV Memory and I/O Organization
 
Introduction to memory management
Introduction to memory managementIntroduction to memory management
Introduction to memory management
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 

More from Faisal Hussain

More from Faisal Hussain (13)

Emerging viral infections in pakistan
Emerging viral infections in pakistanEmerging viral infections in pakistan
Emerging viral infections in pakistan
 
PCR Primer Designing
PCR Primer Designing PCR Primer Designing
PCR Primer Designing
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Chemical waste management
Chemical waste managementChemical waste management
Chemical waste management
 
X ray crystallography and X ray Diffraction
X ray crystallography and X ray DiffractionX ray crystallography and X ray Diffraction
X ray crystallography and X ray Diffraction
 
X ray crystallography and X ray Diffraction
X ray crystallography and X ray DiffractionX ray crystallography and X ray Diffraction
X ray crystallography and X ray Diffraction
 
Rice production in agriculture biotechnology
Rice production in agriculture biotechnologyRice production in agriculture biotechnology
Rice production in agriculture biotechnology
 
Recombinant DNA Technology
Recombinant DNA TechnologyRecombinant DNA Technology
Recombinant DNA Technology
 
Probability, Discrete Probability, Normal Probabilty
Probability, Discrete Probability, Normal ProbabiltyProbability, Discrete Probability, Normal Probabilty
Probability, Discrete Probability, Normal Probabilty
 
Cloning and molecular analysis of gene
Cloning and molecular analysis of geneCloning and molecular analysis of gene
Cloning and molecular analysis of gene
 
Phylogenetic Tree, types and Applicantion
Phylogenetic Tree, types and Applicantion Phylogenetic Tree, types and Applicantion
Phylogenetic Tree, types and Applicantion
 
Phylogenetic Tree, types and Applicantion
Phylogenetic Tree, types and Applicantion Phylogenetic Tree, types and Applicantion
Phylogenetic Tree, types and Applicantion
 
Variance & standard deviation
Variance & standard deviationVariance & standard deviation
Variance & standard deviation
 

Recently uploaded

Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Recently uploaded (20)

WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration Tooling
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in Uganda
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid Environments
 

Memory organization in computer architecture

  • 1. Memory Organization in Computer Architecture MSc Computer Science Create By: Faisal Ur Rehman
  • 2. Memory Organization in Computer Architecture A memory unit is the collection of storage units or devices together. The memory unit stores the binary information in the form of bits. Generally, memory/storage is classified into 2 categories: • Volatile Memory: This loses its data, when power is switched off. • Non-Volatile Memory: This is a permanent storage and does not lose any data when power is switched off.
  • 4. Memory Hierarchy The total memory capacity of a computer can be visualized by hierarchy of components. The memory hierarchy system consists of all storage devices contained in a computer system from the slow Auxiliary Memory to fast Main Memory and to smaller Cache memory. • Auxiliary memory access time is generally 1000 times that of the main memory, hence it is at the bottom of the hierarchy. • The main memory occupies the central position because it is equipped to communicate directly with the CPU and with auxiliary memory devices through Input/output processor (I/O). • When the program not residing in main memory is needed by the CPU, they are brought in from auxiliary memory. Programs not currently needed in main memory are transferred into auxiliary memory to provide space in main memory for other programs that are currently in use.
  • 5. Memory Hierarchy • The cache memory is used to store program data which is currently being executed in the CPU. Approximate access time ratio between cache memory and main memory is about 1 to 7~10
  • 6. Memory Access Methods • Each memory type, is a collection of numerous memory locations. To access data from any memory, first it must be located and then the data is read from the memory location. Following are the methods to access information from memory locations: 1. Random Access: Main memories are random access memories, in which each memory location has a unique address. Using this unique address any memory location can be reached in the same amount of time in any order. 2. Sequential Access: This methods allows memory access in a sequence or in order. 3. Direct Access: In this mode, information is stored in tracks, with each track having a separate read/write head.
  • 7. Main Memory • The memory unit that communicates directly within the CPU, Auxiliary memory and Cache memory, is called main memory. It is the central storage unit of the computer system. It is a large and fast memory used to store data during computer operations. Main memory is made up of RAM and ROM, with RAM integrated circuit chips holing the major share. RAM: Random Access Memory • DRAM: Dynamic RAM, is made of capacitors and transistors, and must be refreshed every 10~100 ms. It is slower and cheaper than SRAM. • SRAM: Static RAM, has a six transistor circuit in each cell and retains data, until powered off. • NVRAM: Non-Volatile RAM, retains its data, even when turned off. Example: Flash memory.
  • 8. Main Memory ROM: Read Only Memory: • ROM: Read Only Memory, is non-volatile and is more like a permanent storage for information. It also stores the bootstrap loader program, to load and start the operating system when computer is turned on. PROM(Programmable ROM), EPROM(Erasable PROM) and EEPROM(Electrically Erasable PROM) are some commonly used ROMs.
  • 9. Auxiliary Memory • Devices that provide backup storage are called auxiliary memory. For example: Magnetic disks and tapes are commonly used auxiliary devices. Other devices used as auxiliary memory are magnetic drums, magnetic bubble memory and optical disks. • It is not directly accessible to the CPU, and is accessed using the Input / Output channels.
  • 10. Cache Memory • The data or contents of the main memory that are used again and again by CPU, are stored in the cache memory so that we can easily access that data in shorter time. • Whenever the CPU needs to access memory, it first checks the cache memory. If the data is not found in cache memory then the CPU moves onto the main memory. It also transfers block of recent data into the cache and keeps on deleting the old data in cache to accommodate the new one.
  • 11. Hit Ratio • The performance of cache memory is measured in terms of a quantity called hit ratio. When the CPU refers to memory and finds the word in cache it is said to produce a hit. If the word is not found in cache, it is in main memory then it counts as a miss. • The ratio of the number of hits to the total CPU references to memory is called hit ratio. Hit Ratio = Hit/(Hit + Miss)
  • 12. Associative Memory • It is also known as content addressable memory (CAM). It is a memory chip in which each bit position can be compared. In this the content is compared in each bit cell which allows very fast table lookup. Since the entire chip can be compared, contents are randomly stored without considering addressing scheme. These chips have less storage capacity than regular memory chips.