SlideShare a Scribd company logo
1 of 12
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

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

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 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
 
Memory
MemoryMemory
Memory
 

More from Prasenjit Dey

Dynamic interconnection networks
Dynamic interconnection networksDynamic interconnection networks
Dynamic interconnection networksPrasenjit 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: classificationPrasenjit 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 regressionPrasenjit Dey
 
Machine learning in agriculture module 2
Machine learning in agriculture module 2Machine learning in agriculture module 2
Machine learning in agriculture module 2Prasenjit Dey
 
Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1Prasenjit Dey
 
Support vector machine
Support vector machineSupport vector machine
Support vector machinePrasenjit Dey
 
Numerical on general pipelines
Numerical on general pipelinesNumerical on general pipelines
Numerical on general pipelinesPrasenjit Dey
 
General pipeline concepts
General pipeline conceptsGeneral pipeline concepts
General pipeline conceptsPrasenjit Dey
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performancePrasenjit Dey
 
Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPSPrasenjit Dey
 
Page replacement and thrashing
Page replacement and thrashingPage replacement and thrashing
Page replacement and thrashingPrasenjit Dey
 
Register transfer and microoperations part 2
Register transfer and microoperations part 2Register transfer and microoperations part 2
Register transfer and microoperations part 2Prasenjit 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 1Prasenjit 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 algorithmPrasenjit Dey
 
Computer organization basics and number systems
Computer organization basics and number systemsComputer organization basics and number systems
Computer organization basics and number systemsPrasenjit 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

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).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)