Memory Organization
Memory Organization
Introduction to Memory
System Architecture
What is memory?
Computer memory is used to store information
which includes both program and data.
The memory unit is essential component in any
digital computer since it is needed for storing
program and data.
Not all accumulated information is needed by
the CPU at the same time
Therefore it is economical to use low cost
storage devices to serve as a backup for storing
the information that is not currently used by
CPU.
Memory Characteristics
Register
This is a part of Central Processor Unit
Reside inside the CPU.
The information from main memory is brought to CPU and keep the
information in register.
Due to space and cost constraints, limited number of registers in a
CPU.
Basically faster devices.
Main Memory
The main memory occupies the central position by being able to
communicate directly with the CPU and with auxiliary memory
devices through an I/O processor
CPU can work with the information available in main memory only.
Memory Hierarchy
Auxiliary Main
I/O Processor
Memory Memory
Cache
Memory
CPU
Memory Hierarchy
CPU logic is usually faster than main
memory access time, with the result that
processing speed is primarily limited by
the speed of main memory.
The cache is used for storing segments
of programs currently being executed in
the CPU and temporary data frequently
needed for present calculations.
The typical access time ratio between
cache and main memory is about 1 to 7.
Auxiliary memory access is usually 1000
times that of main memory.
Type of memory access
Sequential access
Data access is done serially one by one.
Data access is very slow, because the data
access is done sequentially
Example: Magnetic Tape, Cartridge Back
Up.
Direct Access Method
Data obtained from a storage device by
going directly to where it is physically
located rather than by having to sequentially
look for the data at one physical location
after another.
Data-access relatively
quickly, compared Sequential Access.
Example: Hard Disk, Floppy Disk (floppy).
Type of memory access
Random Access:
Address Decoder will generate the
address data to be accessed.
Fast Data Access, faster than
the Direct Access.
Example: RAM.
Memory
Secondar
Primary
y
Flash
Cach Magneti Magneti
Main Memor
e c Tape c disk
y
RAM ROM Optical
disk
EEPRO
SRAM DRAM PROM EPROM
M
Main Memory
Most of the main memory in general purpose
computer is made up of RAM integrated circuit
chips but a portion of the memory may be
constructed with ROM chips.
RAM(Random Access Memory)
i. Random Access Memories are volatile in
nature. As soon as the computer is switched
off , the contents of memory are also lost.
ii. Integrated RAM’s available in two categories
SRAM and DRAM
ROM (Read Only Memory)
iii. Read only memories are non volatile in
nature.
iv. The storage is permanent, but it is read only
memory. We can not store new information
in ROM.
RAM and ROM chip
Read
512 X 8 8 bit data
ROM bus
Chip
select lines
Compo Hexadec 1 9 8 7 6 5 4 3 2 1
nent imal 0
Address
RAM1 0000- 0 0 0 * * * * * * *
007F
RAM2 0080- 0 0 1 * * * * * * *
00FF
RAM3 0100- 0 1 0 * * * * * * *
017F
RAM4 0180- 0 1 1 * * * * * * *
01FF
ROM 0200- 1 * * * * * * * * *
03FF
Memory Address Map