SlideShare a Scribd company logo
Memory Organization
Dr. Prasenjit Dey
Contents
• Characteristics of Memory
• Memory Hierarchy
• Physical types of memory
• Description of a RAM and ROM chip
• Hardware implementation of Memory unit from multiple RAM & ROM chips
• Design of a Magnetic Disks/Magnetic Tape
Dr.PrasenjitDey
Characteristics
• Location
• CPU (cache)
• Internal (main memory)
• External (auxiliary memory)
• Data transfer unit
• Main memory - > words (4bytes in general)
• Secondary memory -> blocks
• Access method
• Associative: Accessed data only by checking the content of a portion of word, access time is independent of location of data, e.g.,
cache memory (001 10001)
• Random: Accessed data by exact memory location, access time is independent of location of data, e.g., RAM
• Direct: Accessed block wise by first getting the block number and then performing a sequential search, e.g., Magnetic Disks
• Sequential: Start at the beginning and read through in order, access time is dependent on location of data, e.g., Magnetic Tape
• Performance
• Access time: The time required to reach into the location of the data after getting the address location from CPU
• Memory Cycle time: It is the combination of data access time and data retrieval time (access time + retrieval time)
• Transfer Rate: the rate at which data is transferred
Dr.PrasenjitDey
Types of Memory
CPU: performs all arithmetic & logical operations within the computer with the help of control
unit
Main Memory: memory unit that communicates directly with the CPU
Auxiliary Memory : memory unit that communicates indirectly with the CPU via main memory
Cache Memory: Stays in-between CPU and main memory, faster than main memory
Memory organization is the study of development of a memory management system in which
memory units are organized in such a manner that it improves the overall data access time with
less cost
Dr.PrasenjitDey
Secondary
memory
Magnetic
Disks
Magnetic
Disks
Main
Memory
CPU/Processor
Arithmetic
and
Logic unit
Control
Unit Cache
Memory
Memory Hierarchy
Dr.PrasenjitDey
Magnetic Tape
Optical Disks
Magnetic Disks
Main Memory
L3 Cache
L2 Cache
L1 Cache
Registers
Cost
Speed
Slow
Fast
Low
High
Capacity
Physical type of Memory
• Semiconductor (inboard memory)
• RAM (Random Access Memory)
• SRAM (Static RAM)
• DRAM (Dynamic RAM)
• ROM (Read Only Memory)
• PROM (Programmable ROM)
• EPROM (Erasable Programmable ROM)
• EEPROM (Electrically Erasable Programmable ROM)
• Magnetic
• Disks
• Tapes
• Optical
• CD
• DVD
Dr.PrasenjitDey
RAM
Static RAM
1. Flip-flops made of transistors store
bits
2. No discharging, so no refreshing
3. Complex construction and more costly
4. Per bit are more
5. Fast as no refreshing is required
6. Cache
Dynamic RAM
1. semiconductor capacitors store bits
while charging
2. Capacitors discharges, need to charge
periodically
3. Simple construction and Less costly
4. Per bit are less
5. Slow due to periodic refreshing
6. Main memory
Dr.PrasenjitDey
ROM
• Read only, written once by the manufacturer (expensive)
• Non volatile
• Micro-programmed
• Contains Bootstrap loader program
• The program which is responsible for loading the operating system into the main memory and boot the system
• Contain subroutine Libraries
Dr.PrasenjitDey
Types
EPROM
(Erasable Programmable ROM)
Erased by UV
EEPROM
(Electrically Erasable Programmable ROM)PROM
(Programmable ROM)
Cache
• Sits between main memory and CPU
• Fast
• Capacity small
• Made of SRAM
• May present in CPU chip, e.g., L1, L2 cache or module L3 cache
• Most frequently used item of main memory stored in cache memory for faster access by CPU
• CPU first checks cache memory for the data content
• If present (Cache hit) collect the data from cache memory (faster access time)
• If not available in cache (Cache miss), then collects the data from main memory (slower access time) and copy
the data into cache for future references
Dr.PrasenjitDey
CPU Cache
(SRAM)
Main Memory
(DRAM)
Description of a RAM and ROM chip
Let us consider a RAM chip of size: 128 X 8
• Number of data contents: 128 = 27
• Address bus size = 7 bits
• address lines =7
• Each data content of size: 8
• Data bus size = 8 bit
• data lines = 8
• Let us consider a ROM chip of size: 512 X 8
Number of data contents: 512 = 29
• Address bus size = 9 bits
• address lines =9
• Each data content of size: 8
• Data bus size = 8 bit
• data lines = 8
Dr.PrasenjitDey
128x8
RAM
CS1
CS2
RD
WR
AD7
Chip select 1
Chip select 2
Read
Write
7-bit address bus
CS1 CS2 RD WR Function State of data bus
0 0 X X NA High-impedance
0 1 X X NA High-impedance
1 1 X X NA High-impedance
1 0 0 0 NA High-impedance
1 0 1 0 Read Data loaded into RAM from data bus
1 0 0 1 Write Data loaded into data bus from RAM
Data
bus
512x8
ROM
CS1
CS2
AD9
Chip select 1
Chip select 2
9-bit address bus
Data
bus
Hardware implementation of Memory unit
Dr.PrasenjitDey
128x8
RAM
CS1
CS2
RD
WR
AD7
Data
512x8
ROM
CS1
CS2
AD7
AD(8)
AD(9)
Data
128x8
RAM
CS1
CS2
RD
WR
AD7
Data
128x8
RAM
CS1
CS2
RD
WR
AD7
Data
128x8
RAM
CS1
CS2
RD
WR
AD7
Data
Data bus
Control circuit
RD WR7-19 81016-11
Decoder
Let us configure a memory units of 512 bytes of
RAM and 512bytes of ROM
• 4 x 128 bytes RAM
• 1 x 512 byte ROM
1. 7 address buses are needed to select a
memory address from a 128byte RAM
• Refer AD[7-1] to select a memory location in a
RAM chip
2. 2 address buses are needed to select any 1
of the RAM chip from 4 RAM chips
• Refer AD[9-8] to select a RAM chip
• Use a 2 x 4 Decoder,
• AD[9 8] = (00) --> RAM chip 1
• AD[9 8] = (01) --> RAM chip 2
• AD[9 8] = (10) --> RAM chip 3
• AD[9 8] = (11) --> RAM chip 4
3. Use AD[10] to Select either RAM or ROM
• If AD[10] = = 0, enable RAM
• If AD[10] = = 1, enable ROM
4. 9 address buses are needed to select a
memory address from a 512byte ROM
• Refer AD[9-1] to select a memory location in a
ROM chip
unused
8 bits
Auxiliary Memory: Magnetic Disks
Dr.PrasenjitDey
• Magnetic disks looks like a cylinder consists
read/write heads and platters
• Cylinder is a cylindrical intersection through the
stack of platters in a disk, centered around the
disk's spindle
• Platter consists of tracks and sectors
• Tracks: a circular strip of physical data blocks called
track
• Sectors: An angular component, slice of a track
• selects which data block in the track is to be addressed
• Addressing method
• Cylinder-head-sector (CHS)

More Related Content

What's hot

Secondary Storage Device Magnetic Tapes
Secondary Storage Device  Magnetic TapesSecondary Storage Device  Magnetic Tapes
Secondary Storage Device Magnetic Tapes
Rico
 
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
Mazin Alwaaly
 
cache memory
cache memorycache memory
04 cache memory
04 cache memory04 cache memory
04 cache memory
Inshad Arshad
 
Memory system
Memory systemMemory system
Memory system
gourav kottawar
 
RAM and ROM Memory Overview
RAM and ROM Memory OverviewRAM and ROM Memory Overview
RAM and ROM Memory Overview
Pankaj Khodifad
 
Classification of memory hierarchy in system unit
Classification of memory hierarchy in system unitClassification of memory hierarchy in system unit
Classification of memory hierarchy in system unit
Deepjyoti Talukdar
 
Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)
sumanth ch
 
Memory system of a compture
Memory system of a comptureMemory system of a compture
Memory system of a compture
Kawsar Hamid Sumon
 
Memory System
Memory SystemMemory System
Memory System
ImranulHasan6
 
Digital design chap 5
Digital design   chap 5Digital design   chap 5
Digital design chap 5
Mohammad Bappy
 
notes2 memory_cpu
notes2 memory_cpunotes2 memory_cpu
notes2 memory_cpu
Vishesh Shrivastava
 
04 cache memory.ppt 1
04 cache memory.ppt 104 cache memory.ppt 1
04 cache memory.ppt 1
Anwal Mirza
 
DDR PC3200
DDR PC3200DDR PC3200
DDR PC3200
steve predle
 
Chapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworldChapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworld
Praveen Kumar
 
Computer memory
Computer memoryComputer memory
Computer memory
Joy Sarker
 
Semiconductor memory
Semiconductor memorySemiconductor memory
Semiconductor memory
Then Murugeshwari
 
Hardware Memory
Hardware MemoryHardware Memory
Hardware Memory
Vinit Vyas
 
Memory
MemoryMemory
Semiconductor memories
Semiconductor memoriesSemiconductor memories
Semiconductor memories
kitturashmikittu
 

What's hot (20)

Secondary Storage Device Magnetic Tapes
Secondary Storage Device  Magnetic TapesSecondary Storage Device  Magnetic Tapes
Secondary Storage Device Magnetic Tapes
 
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
 
cache memory
cache memorycache memory
cache memory
 
04 cache memory
04 cache memory04 cache memory
04 cache memory
 
Memory system
Memory systemMemory system
Memory system
 
RAM and ROM Memory Overview
RAM and ROM Memory OverviewRAM and ROM Memory Overview
RAM and ROM Memory Overview
 
Classification of memory hierarchy in system unit
Classification of memory hierarchy in system unitClassification of memory hierarchy in system unit
Classification of memory hierarchy in system unit
 
Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)
 
Memory system of a compture
Memory system of a comptureMemory system of a compture
Memory system of a compture
 
Memory System
Memory SystemMemory System
Memory System
 
Digital design chap 5
Digital design   chap 5Digital design   chap 5
Digital design chap 5
 
notes2 memory_cpu
notes2 memory_cpunotes2 memory_cpu
notes2 memory_cpu
 
04 cache memory.ppt 1
04 cache memory.ppt 104 cache memory.ppt 1
04 cache memory.ppt 1
 
DDR PC3200
DDR PC3200DDR PC3200
DDR PC3200
 
Chapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworldChapter5 the memory-system-jntuworld
Chapter5 the memory-system-jntuworld
 
Computer memory
Computer memoryComputer memory
Computer memory
 
Semiconductor memory
Semiconductor memorySemiconductor memory
Semiconductor memory
 
Hardware Memory
Hardware MemoryHardware Memory
Hardware Memory
 
Memory
MemoryMemory
Memory
 
Semiconductor memories
Semiconductor memoriesSemiconductor memories
Semiconductor memories
 

Similar to Different types of memory and hardware designs of RAM and ROM

Memory_Unit Cache Main Virtual Associative
Memory_Unit Cache Main Virtual AssociativeMemory_Unit Cache Main Virtual Associative
Memory_Unit Cache Main Virtual Associative
RNShukla7
 
Memory Organization in Computer Organization and Architecture
Memory Organization in Computer Organization and ArchitectureMemory Organization in Computer Organization and Architecture
Memory Organization in Computer Organization and Architecture
MahendraMunirathnam1
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
Sandeep Kaur Goraya
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Acad
 
Memory
MemoryMemory
Memory
Bits
 
Basics Of Semiconductor Memories
Basics Of Semiconductor MemoriesBasics Of Semiconductor Memories
Basics Of Semiconductor Memories
Rahul Bandhe
 
Memory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer OrganizationMemory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer Organization
2022002857mbit
 
Memory hierarchy.pdf
Memory hierarchy.pdfMemory hierarchy.pdf
Memory hierarchy.pdf
ISHAN194169
 
06 - Memory.ppt
06 - Memory.ppt06 - Memory.ppt
06 - Memory.ppt
AliyuAhmed9
 
Top schools in ghaziabad
Top schools in ghaziabadTop schools in ghaziabad
Top schools in ghaziabad
Edhole.com
 
Memory Organizationsssssssssssssssss.ppt
Memory Organizationsssssssssssssssss.pptMemory Organizationsssssssssssssssss.ppt
Memory Organizationsssssssssssssssss.ppt
k2w9psdb96
 
Computer memory
Computer memoryComputer memory
Computer memory
UtsavMandaviya
 
RAM
RAMRAM
memories.pptx
memories.pptxmemories.pptx
memories.pptx
Amulyagt1
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
SnehalataAgasti
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
Edhole.com
 
Memorydevices 110602031611-phpapp02
Memorydevices 110602031611-phpapp02Memorydevices 110602031611-phpapp02
Memorydevices 110602031611-phpapp02
Mechanical Design Engineering
 
Understanding And Managing Memory
Understanding And Managing MemoryUnderstanding And Managing Memory
Understanding And Managing Memory
isma ishak
 
Ram ppt
Ram pptRam ppt
Memory - RAM and its types
Memory - RAM and its typesMemory - RAM and its types
Memory - RAM and its types
Abhay Matthew
 

Similar to Different types of memory and hardware designs of RAM and ROM (20)

Memory_Unit Cache Main Virtual Associative
Memory_Unit Cache Main Virtual AssociativeMemory_Unit Cache Main Virtual Associative
Memory_Unit Cache Main Virtual Associative
 
Memory Organization in Computer Organization and Architecture
Memory Organization in Computer Organization and ArchitectureMemory Organization in Computer Organization and Architecture
Memory Organization in Computer Organization and Architecture
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Memory
MemoryMemory
Memory
 
Basics Of Semiconductor Memories
Basics Of Semiconductor MemoriesBasics Of Semiconductor Memories
Basics Of Semiconductor Memories
 
Memory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer OrganizationMemory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer Organization
 
Memory hierarchy.pdf
Memory hierarchy.pdfMemory hierarchy.pdf
Memory hierarchy.pdf
 
06 - Memory.ppt
06 - Memory.ppt06 - Memory.ppt
06 - Memory.ppt
 
Top schools in ghaziabad
Top schools in ghaziabadTop schools in ghaziabad
Top schools in ghaziabad
 
Memory Organizationsssssssssssssssss.ppt
Memory Organizationsssssssssssssssss.pptMemory Organizationsssssssssssssssss.ppt
Memory Organizationsssssssssssssssss.ppt
 
Computer memory
Computer memoryComputer memory
Computer memory
 
RAM
RAMRAM
RAM
 
memories.pptx
memories.pptxmemories.pptx
memories.pptx
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
 
Memorydevices 110602031611-phpapp02
Memorydevices 110602031611-phpapp02Memorydevices 110602031611-phpapp02
Memorydevices 110602031611-phpapp02
 
Understanding And Managing Memory
Understanding And Managing MemoryUnderstanding And Managing Memory
Understanding And Managing Memory
 
Ram ppt
Ram pptRam ppt
Ram ppt
 
Memory - RAM and its types
Memory - RAM and its typesMemory - RAM and its types
Memory - RAM and its types
 

More from Prasenjit Dey

Dynamic interconnection networks
Dynamic interconnection networksDynamic interconnection networks
Dynamic interconnection networks
Prasenjit Dey
 
Machine Learning in Agriculture Module 6: classification
Machine Learning in Agriculture Module 6: classificationMachine Learning in Agriculture Module 6: classification
Machine Learning in Agriculture Module 6: classification
Prasenjit Dey
 
Machine Learning in Agriculture Module 3: linear regression
Machine Learning in Agriculture Module 3: linear regressionMachine Learning in Agriculture Module 3: linear regression
Machine Learning in Agriculture Module 3: linear regression
Prasenjit Dey
 
Machine learning in agriculture module 2
Machine learning in agriculture module 2Machine learning in agriculture module 2
Machine learning in agriculture module 2
Prasenjit Dey
 
Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1
Prasenjit Dey
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
Prasenjit Dey
 
Numerical on general pipelines
Numerical on general pipelinesNumerical on general pipelines
Numerical on general pipelines
Prasenjit Dey
 
General pipeline concepts
General pipeline conceptsGeneral pipeline concepts
General pipeline concepts
Prasenjit Dey
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performance
Prasenjit Dey
 
Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPS
Prasenjit Dey
 
Page replacement and thrashing
Page replacement and thrashingPage replacement and thrashing
Page replacement and thrashing
Prasenjit Dey
 
Addressing mode
Addressing modeAddressing mode
Addressing mode
Prasenjit Dey
 
Register transfer and microoperations part 2
Register transfer and microoperations part 2Register transfer and microoperations part 2
Register transfer and microoperations part 2
Prasenjit Dey
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)
Prasenjit Dey
 
Register transfer and microoperations part 1
Register transfer and microoperations part 1Register transfer and microoperations part 1
Register transfer and microoperations part 1
Prasenjit Dey
 
Cache memory
Cache  memoryCache  memory
Cache memory
Prasenjit Dey
 
Carry look ahead adder
Carry look ahead adder Carry look ahead adder
Carry look ahead adder
Prasenjit Dey
 
Binary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithmBinary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithm
Prasenjit Dey
 
Booth's algorithm
Booth's algorithm Booth's algorithm
Booth's algorithm
Prasenjit Dey
 
Computer organization basics and number systems
Computer organization basics and number systemsComputer organization basics and number systems
Computer organization basics and number systems
Prasenjit Dey
 

More from Prasenjit Dey (20)

Dynamic interconnection networks
Dynamic interconnection networksDynamic interconnection networks
Dynamic interconnection networks
 
Machine Learning in Agriculture Module 6: classification
Machine Learning in Agriculture Module 6: classificationMachine Learning in Agriculture Module 6: classification
Machine Learning in Agriculture Module 6: classification
 
Machine Learning in Agriculture Module 3: linear regression
Machine Learning in Agriculture Module 3: linear regressionMachine Learning in Agriculture Module 3: linear regression
Machine Learning in Agriculture Module 3: linear regression
 
Machine learning in agriculture module 2
Machine learning in agriculture module 2Machine learning in agriculture module 2
Machine learning in agriculture module 2
 
Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Numerical on general pipelines
Numerical on general pipelinesNumerical on general pipelines
Numerical on general pipelines
 
General pipeline concepts
General pipeline conceptsGeneral pipeline concepts
General pipeline concepts
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performance
 
Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPS
 
Page replacement and thrashing
Page replacement and thrashingPage replacement and thrashing
Page replacement and thrashing
 
Addressing mode
Addressing modeAddressing mode
Addressing mode
 
Register transfer and microoperations part 2
Register transfer and microoperations part 2Register transfer and microoperations part 2
Register transfer and microoperations part 2
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)
 
Register transfer and microoperations part 1
Register transfer and microoperations part 1Register transfer and microoperations part 1
Register transfer and microoperations part 1
 
Cache memory
Cache  memoryCache  memory
Cache memory
 
Carry look ahead adder
Carry look ahead adder Carry look ahead adder
Carry look ahead adder
 
Binary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithmBinary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithm
 
Booth's algorithm
Booth's algorithm Booth's algorithm
Booth's algorithm
 
Computer organization basics and number systems
Computer organization basics and number systemsComputer organization basics and number systems
Computer organization basics and number systems
 

Recently uploaded

DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
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
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
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
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 

Recently uploaded (20)

DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
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
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 

Different types of memory and hardware designs of RAM and ROM

  • 2. Contents • Characteristics of Memory • Memory Hierarchy • Physical types of memory • Description of a RAM and ROM chip • Hardware implementation of Memory unit from multiple RAM & ROM chips • Design of a Magnetic Disks/Magnetic Tape Dr.PrasenjitDey
  • 3. Characteristics • Location • CPU (cache) • Internal (main memory) • External (auxiliary memory) • Data transfer unit • Main memory - > words (4bytes in general) • Secondary memory -> blocks • Access method • Associative: Accessed data only by checking the content of a portion of word, access time is independent of location of data, e.g., cache memory (001 10001) • Random: Accessed data by exact memory location, access time is independent of location of data, e.g., RAM • Direct: Accessed block wise by first getting the block number and then performing a sequential search, e.g., Magnetic Disks • Sequential: Start at the beginning and read through in order, access time is dependent on location of data, e.g., Magnetic Tape • Performance • Access time: The time required to reach into the location of the data after getting the address location from CPU • Memory Cycle time: It is the combination of data access time and data retrieval time (access time + retrieval time) • Transfer Rate: the rate at which data is transferred Dr.PrasenjitDey
  • 4. Types of Memory CPU: performs all arithmetic & logical operations within the computer with the help of control unit Main Memory: memory unit that communicates directly with the CPU Auxiliary Memory : memory unit that communicates indirectly with the CPU via main memory Cache Memory: Stays in-between CPU and main memory, faster than main memory Memory organization is the study of development of a memory management system in which memory units are organized in such a manner that it improves the overall data access time with less cost Dr.PrasenjitDey Secondary memory Magnetic Disks Magnetic Disks Main Memory CPU/Processor Arithmetic and Logic unit Control Unit Cache Memory
  • 5. Memory Hierarchy Dr.PrasenjitDey Magnetic Tape Optical Disks Magnetic Disks Main Memory L3 Cache L2 Cache L1 Cache Registers Cost Speed Slow Fast Low High Capacity
  • 6. Physical type of Memory • Semiconductor (inboard memory) • RAM (Random Access Memory) • SRAM (Static RAM) • DRAM (Dynamic RAM) • ROM (Read Only Memory) • PROM (Programmable ROM) • EPROM (Erasable Programmable ROM) • EEPROM (Electrically Erasable Programmable ROM) • Magnetic • Disks • Tapes • Optical • CD • DVD Dr.PrasenjitDey
  • 7. RAM Static RAM 1. Flip-flops made of transistors store bits 2. No discharging, so no refreshing 3. Complex construction and more costly 4. Per bit are more 5. Fast as no refreshing is required 6. Cache Dynamic RAM 1. semiconductor capacitors store bits while charging 2. Capacitors discharges, need to charge periodically 3. Simple construction and Less costly 4. Per bit are less 5. Slow due to periodic refreshing 6. Main memory Dr.PrasenjitDey
  • 8. ROM • Read only, written once by the manufacturer (expensive) • Non volatile • Micro-programmed • Contains Bootstrap loader program • The program which is responsible for loading the operating system into the main memory and boot the system • Contain subroutine Libraries Dr.PrasenjitDey Types EPROM (Erasable Programmable ROM) Erased by UV EEPROM (Electrically Erasable Programmable ROM)PROM (Programmable ROM)
  • 9. Cache • Sits between main memory and CPU • Fast • Capacity small • Made of SRAM • May present in CPU chip, e.g., L1, L2 cache or module L3 cache • Most frequently used item of main memory stored in cache memory for faster access by CPU • CPU first checks cache memory for the data content • If present (Cache hit) collect the data from cache memory (faster access time) • If not available in cache (Cache miss), then collects the data from main memory (slower access time) and copy the data into cache for future references Dr.PrasenjitDey CPU Cache (SRAM) Main Memory (DRAM)
  • 10. Description of a RAM and ROM chip Let us consider a RAM chip of size: 128 X 8 • Number of data contents: 128 = 27 • Address bus size = 7 bits • address lines =7 • Each data content of size: 8 • Data bus size = 8 bit • data lines = 8 • Let us consider a ROM chip of size: 512 X 8 Number of data contents: 512 = 29 • Address bus size = 9 bits • address lines =9 • Each data content of size: 8 • Data bus size = 8 bit • data lines = 8 Dr.PrasenjitDey 128x8 RAM CS1 CS2 RD WR AD7 Chip select 1 Chip select 2 Read Write 7-bit address bus CS1 CS2 RD WR Function State of data bus 0 0 X X NA High-impedance 0 1 X X NA High-impedance 1 1 X X NA High-impedance 1 0 0 0 NA High-impedance 1 0 1 0 Read Data loaded into RAM from data bus 1 0 0 1 Write Data loaded into data bus from RAM Data bus 512x8 ROM CS1 CS2 AD9 Chip select 1 Chip select 2 9-bit address bus Data bus
  • 11. Hardware implementation of Memory unit Dr.PrasenjitDey 128x8 RAM CS1 CS2 RD WR AD7 Data 512x8 ROM CS1 CS2 AD7 AD(8) AD(9) Data 128x8 RAM CS1 CS2 RD WR AD7 Data 128x8 RAM CS1 CS2 RD WR AD7 Data 128x8 RAM CS1 CS2 RD WR AD7 Data Data bus Control circuit RD WR7-19 81016-11 Decoder Let us configure a memory units of 512 bytes of RAM and 512bytes of ROM • 4 x 128 bytes RAM • 1 x 512 byte ROM 1. 7 address buses are needed to select a memory address from a 128byte RAM • Refer AD[7-1] to select a memory location in a RAM chip 2. 2 address buses are needed to select any 1 of the RAM chip from 4 RAM chips • Refer AD[9-8] to select a RAM chip • Use a 2 x 4 Decoder, • AD[9 8] = (00) --> RAM chip 1 • AD[9 8] = (01) --> RAM chip 2 • AD[9 8] = (10) --> RAM chip 3 • AD[9 8] = (11) --> RAM chip 4 3. Use AD[10] to Select either RAM or ROM • If AD[10] = = 0, enable RAM • If AD[10] = = 1, enable ROM 4. 9 address buses are needed to select a memory address from a 512byte ROM • Refer AD[9-1] to select a memory location in a ROM chip unused 8 bits
  • 12. Auxiliary Memory: Magnetic Disks Dr.PrasenjitDey • Magnetic disks looks like a cylinder consists read/write heads and platters • Cylinder is a cylindrical intersection through the stack of platters in a disk, centered around the disk's spindle • Platter consists of tracks and sectors • Tracks: a circular strip of physical data blocks called track • Sectors: An angular component, slice of a track • selects which data block in the track is to be addressed • Addressing method • Cylinder-head-sector (CHS)