SlideShare a Scribd company logo
1 of 22
Basic Memory Array
Write /Read
Operations
Dr. Priyanka V Tabhane
RTM Nagpur University, Nagpur
• Memory is the portion of a computer or other system that
stores binary data.
• In a computer, memory is accessed millions of times per
second, so the requirement for speed and accuracy is
paramount.
• Very fast semiconductor memory is available today in
modules with several GB (a gigabyte is one billion bytes) of
capacity.
• These large-memory modules use exactly the same operating
principles as smaller units
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
As a rule, memories store data in units that have from one to eight
bits. The smallest unit of binary data, as you know, is the bit.
In many applications, data are handled in an 8-bit unit called a byte
or in multiples of 8-bit units.
The byte can be split into two 4-bit units that are called nibbles.
Bytes can also be grouped into words.
The term word can have two meanings in computer terminology.
In memories, it is defined as a group of bits or bytes that acts as a
single entity that can be stored in one memory location.
In assembly language, a word is specifically defined as two bytes.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Units of Binary Data: Bits, Bytes, Nibbles, and Words
• Each storage element in a memory can retain either a 1 or a 0 and is
called a cell.
• Memories are made up of arrays of cells, as illustrated in Figure using
64 cells as an example.
• Each block in the memory array represents one storage cell, and its
location can be identified by specifying a row and a column.
• The 64-cell array can be organized in several ways based on units of
data. Figure (a) shows an 8 * 8 array, which can be viewed as either a
64-bit memory or an 8-byte memory.
• Part (b) shows a 16 * 4 array, which is a 16-nibble memory, and part
(c) shows a 64 * 1 array, which is a 64-bit memory.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
The Basic Memory Array
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
A memory is identified by the number of words it can store times the
word size.
For example, a 16k * 8 memory can store 16,384 words of eight bits
each.
The inconsistency here is common in memory terminology. The
actual number of words is always a power of 2, which, in this case,
is 2^14 = 16,384.
However, it is common practice to state the number to the nearest
thousand, in this case, 16k.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Memory Address and Capacity
A representation of a small 8 * 8 memory chip is shown in Figure (a).
The location of a unit of data in a memory array is called its address.
For example, in part (b), the address of a bit in the 2-dimensional array
is specified by the row and column as shown.
In part (c), the address of a byte is specified only by the row.
So, as you can see, the address depends on how the memory is
organized into units of data.
Personal computers have random access memories organized in bytes.
This means that the smallest group of bits that can be addressed is
eight.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
The capacity of a memory is the total number of data units that
can be stored.
For example, in the bit-organized memory array in Figure b, the
capacity is 64 bits.
In the byte-organized memory array in Figure c, the capacity is 8
bytes, which is also 64 bits.
In this Figure, the capacity is 64 bytes.
Computer memories typically have multiple gigabytes of internal
memory.
Computers usually transfer and store data as 64-bit words, in
which case all eight bits of row five in each chip in Figure a would
be accessed.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
What is the capacity of memory in this figure??
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
In this Figure the capacity is 64 bytes.
Computer memories typically have
multiple gigabytes of internal memory.
Computers usually transfer and store
data as 64-bit words, in which case all
eight bits of row five in each chip in Figure
would be accessed.0
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Basic memory operations
Read/Write Operation
Addressing is the process of accessing a specified location in memory.
Since a memory stores binary data, data must be put into the memory
and data must be copied from the memory when needed.
The write operation puts data into a specified address in the memory,
and the read operation copies data out of a specified address in the
memory.
The addressing operation, which is part of both the write and the read
operations, selects the specified memory address.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Block diagram of a single-array memory and a multiple-array memory
showing address bus, address decoder(s), bidirectional data bus, and
read/write inputs.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Data units go into the memory during a write operation and come
out of the memory during a read operation on a set of lines called the
data bus.
As indicated in Figure, the data bus is bidirectional, which means
that data can go in either direction (into the memory or out of the
memory).
For a write or a read operation, an address is selected by placing a
binary code representing the desired address on a set of lines called
the address bus.
The address code is decoded internally, and the appropriate address
is selected.
In the case of the multiple-array memory in Figure (b) there are two
decoders, one for the rows and one for the columns.
The number of lines in the address bus depends on the capacity of the
memory.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
For example :
A 15-bit address code can select 32,768 locations (215) in the
memory, a 16-bit address code can select 65,536 locations (216) in
the memory, and so on.
In personal computers a 32-bit address bus can select
4,294,967,296 locations (232).
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Illustration of the write operation
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
The Write Operation
A simplified write operation is illustrated in Figure.
To store a byte of data in the memory, a code held in the address
register is placed on the address bus.
Once the address code is on the bus, the address decoder decodes
the address and selects the specified location in the memory.
The memory then gets a write command, and the data byte held in
the data register is placed on the data bus and stored in the selected
memory address, thus completing the write operation.
When a new data byte is written into a memory address, the current
data byte stored at that address is overwritten (replaced with a new
data byte).
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Illustration of the read operation
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
The Read Operation
A simplified read operation is illustrated in Figure.
Again, a code held in the address register is placed on the address bus.
Once the address code is on the bus, the address decoder decodes the
address and selects the specified location in the memory.
The memory then gets a read command, and a “copy” of the data byte
that is stored in the selected memory address is placed on the data bus
and loaded into the data register, thus completing the read operation.
When a data byte is read from a memory address, it also remains
stored at that address.
This is called non destructive read.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
RAMs and ROMs
The two major categories of semiconductor memories are the RAM and the
ROM.
RAM (random-access memory) is a type of memory in which all addresses
are accessible in an equal amount of time and can be selected in any order
for a read or write operation.
All RAMs have both read and write capability. Because RAMs lose stored
data when the power is turned off, they are volatile memories.
ROM (read-only memory) is a type of memory in which data are stored
permanently or semi permanently.
Data can be read from a ROM, but there is no write operation as in the
RAM.
The ROM, like the RAM, is a random-access memory but the term RAM
traditionally means a random-access read/write memory.
Because ROMs retain stored data even if power is turned off, they
are non-volatile memories.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Assignment 1
1. What is the smallest unit of data that can be stored in a
memory?
2. What is the bit capacity of a memory that can store 256 bytes
of data?
3. What is a write operation?
4. What is a read operation?
5. How is a given unit of data located in a memory?
6. Describe the difference between a RAM and a ROM.
7. Define bit, byte, nibbles.
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane
Thank you!!
Memory Array, Write/Read Operations
Dr. Priyanka Tabhane

More Related Content

What's hot

PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
ASHISH RANJAN
 

What's hot (20)

SRAM Design
SRAM DesignSRAM Design
SRAM Design
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
 
Ccp
CcpCcp
Ccp
 
Analog to digital converters, adc
Analog to digital converters, adcAnalog to digital converters, adc
Analog to digital converters, adc
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 
VLIW Processors
VLIW ProcessorsVLIW Processors
VLIW Processors
 
PIC Microcontrollers.ppt
PIC Microcontrollers.pptPIC Microcontrollers.ppt
PIC Microcontrollers.ppt
 
8051 memory
8051 memory8051 memory
8051 memory
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
 
ROM(Read Only Memory )
ROM(Read Only Memory )ROM(Read Only Memory )
ROM(Read Only Memory )
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
 
Digital signal processing
Digital signal processingDigital signal processing
Digital signal processing
 
Introducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxIntroducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptx
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor
 

Similar to Lec 1 digital electroinics - memory array, write read operations

Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
Naruin
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
ekul
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
Kyle
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
Naruin
 

Similar to Lec 1 digital electroinics - memory array, write read operations (20)

Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Memory Organization.pdf
Memory Organization.pdfMemory Organization.pdf
Memory Organization.pdf
 
Unit 5-lecture-1
Unit 5-lecture-1Unit 5-lecture-1
Unit 5-lecture-1
 
Microprocessors and memory concepts
Microprocessors and memory conceptsMicroprocessors and memory concepts
Microprocessors and memory concepts
 
Memory managment
Memory managmentMemory managment
Memory managment
 
lecture-5.pptx
lecture-5.pptxlecture-5.pptx
lecture-5.pptx
 
Rahman
RahmanRahman
Rahman
 
COA
COACOA
COA
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Cache.pptx
Cache.pptxCache.pptx
Cache.pptx
 
Cache Memory.pptx
Cache Memory.pptxCache Memory.pptx
Cache Memory.pptx
 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
COA (Unit_4.pptx)
COA (Unit_4.pptx)COA (Unit_4.pptx)
COA (Unit_4.pptx)
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7
 
Computer memory book notes
Computer memory book notes Computer memory book notes
Computer memory book notes
 
Cache memoy designed by Mohd Tariq
Cache memoy designed by Mohd TariqCache memoy designed by Mohd Tariq
Cache memoy designed by Mohd Tariq
 

More from priyankatabhane

More from priyankatabhane (13)

Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptx
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
 
Loudspeaker- direct radiating type and horn type.pptx
Loudspeaker- direct radiating type and horn type.pptxLoudspeaker- direct radiating type and horn type.pptx
Loudspeaker- direct radiating type and horn type.pptx
 
Environmental acoustics- noise criteria.pptx
Environmental acoustics- noise criteria.pptxEnvironmental acoustics- noise criteria.pptx
Environmental acoustics- noise criteria.pptx
 
Environmental Acoustics- Speech interference level, acoustics calibrator.pptx
Environmental Acoustics- Speech interference level, acoustics calibrator.pptxEnvironmental Acoustics- Speech interference level, acoustics calibrator.pptx
Environmental Acoustics- Speech interference level, acoustics calibrator.pptx
 
sound level meter octave band ananlyser.pptx
sound level meter octave band ananlyser.pptxsound level meter octave band ananlyser.pptx
sound level meter octave band ananlyser.pptx
 
Environmental Acoustics- noise decible scale intensity pressure
Environmental Acoustics- noise decible scale intensity pressureEnvironmental Acoustics- noise decible scale intensity pressure
Environmental Acoustics- noise decible scale intensity pressure
 
Architectural acoustics, underwater acoustics
Architectural acoustics, underwater acousticsArchitectural acoustics, underwater acoustics
Architectural acoustics, underwater acoustics
 
Fundamentals of Ultrasonic waves and applications
Fundamentals of Ultrasonic waves and applicationsFundamentals of Ultrasonic waves and applications
Fundamentals of Ultrasonic waves and applications
 
ultrasonics.pptx
ultrasonics.pptxultrasonics.pptx
ultrasonics.pptx
 
Lec 4 digital electronics - interated circuit technology -characteristics o...
Lec 4   digital electronics - interated circuit technology -characteristics o...Lec 4   digital electronics - interated circuit technology -characteristics o...
Lec 4 digital electronics - interated circuit technology -characteristics o...
 
Lec 3 digital electronics- read only memory
Lec 3  digital electronics- read only memoryLec 3  digital electronics- read only memory
Lec 3 digital electronics- read only memory
 
Lec 2 digital electronics - random access memory
Lec 2  digital electronics - random access memoryLec 2  digital electronics - random access memory
Lec 2 digital electronics - random access memory
 

Recently uploaded

Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
gindu3009
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Lokesh Kothari
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Sérgio Sacani
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Sérgio Sacani
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Sérgio Sacani
 

Recently uploaded (20)

Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 

Lec 1 digital electroinics - memory array, write read operations

  • 1. Basic Memory Array Write /Read Operations Dr. Priyanka V Tabhane RTM Nagpur University, Nagpur
  • 2. • Memory is the portion of a computer or other system that stores binary data. • In a computer, memory is accessed millions of times per second, so the requirement for speed and accuracy is paramount. • Very fast semiconductor memory is available today in modules with several GB (a gigabyte is one billion bytes) of capacity. • These large-memory modules use exactly the same operating principles as smaller units Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 3. As a rule, memories store data in units that have from one to eight bits. The smallest unit of binary data, as you know, is the bit. In many applications, data are handled in an 8-bit unit called a byte or in multiples of 8-bit units. The byte can be split into two 4-bit units that are called nibbles. Bytes can also be grouped into words. The term word can have two meanings in computer terminology. In memories, it is defined as a group of bits or bytes that acts as a single entity that can be stored in one memory location. In assembly language, a word is specifically defined as two bytes. Memory Array, Write/Read Operations Dr. Priyanka Tabhane Units of Binary Data: Bits, Bytes, Nibbles, and Words
  • 4. • Each storage element in a memory can retain either a 1 or a 0 and is called a cell. • Memories are made up of arrays of cells, as illustrated in Figure using 64 cells as an example. • Each block in the memory array represents one storage cell, and its location can be identified by specifying a row and a column. • The 64-cell array can be organized in several ways based on units of data. Figure (a) shows an 8 * 8 array, which can be viewed as either a 64-bit memory or an 8-byte memory. • Part (b) shows a 16 * 4 array, which is a 16-nibble memory, and part (c) shows a 64 * 1 array, which is a 64-bit memory. Memory Array, Write/Read Operations Dr. Priyanka Tabhane The Basic Memory Array
  • 5. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 6. A memory is identified by the number of words it can store times the word size. For example, a 16k * 8 memory can store 16,384 words of eight bits each. The inconsistency here is common in memory terminology. The actual number of words is always a power of 2, which, in this case, is 2^14 = 16,384. However, it is common practice to state the number to the nearest thousand, in this case, 16k. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 7. Memory Address and Capacity A representation of a small 8 * 8 memory chip is shown in Figure (a). The location of a unit of data in a memory array is called its address. For example, in part (b), the address of a bit in the 2-dimensional array is specified by the row and column as shown. In part (c), the address of a byte is specified only by the row. So, as you can see, the address depends on how the memory is organized into units of data. Personal computers have random access memories organized in bytes. This means that the smallest group of bits that can be addressed is eight. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 8. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 9. The capacity of a memory is the total number of data units that can be stored. For example, in the bit-organized memory array in Figure b, the capacity is 64 bits. In the byte-organized memory array in Figure c, the capacity is 8 bytes, which is also 64 bits. In this Figure, the capacity is 64 bytes. Computer memories typically have multiple gigabytes of internal memory. Computers usually transfer and store data as 64-bit words, in which case all eight bits of row five in each chip in Figure a would be accessed. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 10. What is the capacity of memory in this figure?? Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 11. In this Figure the capacity is 64 bytes. Computer memories typically have multiple gigabytes of internal memory. Computers usually transfer and store data as 64-bit words, in which case all eight bits of row five in each chip in Figure would be accessed.0 Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 12. Basic memory operations Read/Write Operation Addressing is the process of accessing a specified location in memory. Since a memory stores binary data, data must be put into the memory and data must be copied from the memory when needed. The write operation puts data into a specified address in the memory, and the read operation copies data out of a specified address in the memory. The addressing operation, which is part of both the write and the read operations, selects the specified memory address. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 13. Block diagram of a single-array memory and a multiple-array memory showing address bus, address decoder(s), bidirectional data bus, and read/write inputs. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 14. Data units go into the memory during a write operation and come out of the memory during a read operation on a set of lines called the data bus. As indicated in Figure, the data bus is bidirectional, which means that data can go in either direction (into the memory or out of the memory). For a write or a read operation, an address is selected by placing a binary code representing the desired address on a set of lines called the address bus. The address code is decoded internally, and the appropriate address is selected. In the case of the multiple-array memory in Figure (b) there are two decoders, one for the rows and one for the columns. The number of lines in the address bus depends on the capacity of the memory. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 15. For example : A 15-bit address code can select 32,768 locations (215) in the memory, a 16-bit address code can select 65,536 locations (216) in the memory, and so on. In personal computers a 32-bit address bus can select 4,294,967,296 locations (232). Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 16. Illustration of the write operation Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 17. The Write Operation A simplified write operation is illustrated in Figure. To store a byte of data in the memory, a code held in the address register is placed on the address bus. Once the address code is on the bus, the address decoder decodes the address and selects the specified location in the memory. The memory then gets a write command, and the data byte held in the data register is placed on the data bus and stored in the selected memory address, thus completing the write operation. When a new data byte is written into a memory address, the current data byte stored at that address is overwritten (replaced with a new data byte). Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 18. Illustration of the read operation Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 19. The Read Operation A simplified read operation is illustrated in Figure. Again, a code held in the address register is placed on the address bus. Once the address code is on the bus, the address decoder decodes the address and selects the specified location in the memory. The memory then gets a read command, and a “copy” of the data byte that is stored in the selected memory address is placed on the data bus and loaded into the data register, thus completing the read operation. When a data byte is read from a memory address, it also remains stored at that address. This is called non destructive read. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 20. RAMs and ROMs The two major categories of semiconductor memories are the RAM and the ROM. RAM (random-access memory) is a type of memory in which all addresses are accessible in an equal amount of time and can be selected in any order for a read or write operation. All RAMs have both read and write capability. Because RAMs lose stored data when the power is turned off, they are volatile memories. ROM (read-only memory) is a type of memory in which data are stored permanently or semi permanently. Data can be read from a ROM, but there is no write operation as in the RAM. The ROM, like the RAM, is a random-access memory but the term RAM traditionally means a random-access read/write memory. Because ROMs retain stored data even if power is turned off, they are non-volatile memories. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 21. Assignment 1 1. What is the smallest unit of data that can be stored in a memory? 2. What is the bit capacity of a memory that can store 256 bytes of data? 3. What is a write operation? 4. What is a read operation? 5. How is a given unit of data located in a memory? 6. Describe the difference between a RAM and a ROM. 7. Define bit, byte, nibbles. Memory Array, Write/Read Operations Dr. Priyanka Tabhane
  • 22. Thank you!! Memory Array, Write/Read Operations Dr. Priyanka Tabhane