COA Chapter Seven
COA Chapter Seven
03/27/2025 1
Chapter 7
MEMORY ORGANIZATION
Topics
Memory Hierarchy
Main Memory
Auxiliary Memory
Cache Memory
Associative mapping
Direct mapping
Set-Associative mapping
Memory Hierarchy
• The memory unit is an essential
component in any digital computer
since it is needed for storing programs
and data.
• Not all accumulated information is
needed by the CPU at the same time
• Therefore, it is more economical to use
low-cost storage devices to serve as a
backup for storing the information that
is not currently used by CPU
Memory Hierarchy
• Computer Memory Hierarchy is a pyramid
structure that is commonly used to illustrate
the significant differences among memory
types.
• The memory unit that directly communicate
with CPU is called the main memory
• Devices that provide backup storage are
called auxiliary memory
• The memory hierarchy system consists of all
storage devices employed in a computer
system from the slow by high-capacity
auxiliary memory to a relatively faster main
memory, to an even smaller and faster cache
memory
Memory Hierarchy
Main memory
• Most of the main memory in a
general purpose computer is made
up of RAM integrated circuits chips,
but a portion of the memory may be
constructed with ROM chips
• RAM– Random Access memory
o Integrated RAM are available in two
possible operating modes, Static and
Dynamic
• ROM– Read Only memory
RAM
A RAM chip is better suited for
communication with the CPU if it has one or
more control inputs that select the chip
when needed
Read/write memory, that initially doesn’t
contain any data
The computing system that it is used in
usually stores data at various locations to
retrieve it latter from these locations
Its data pins are bidirectional (data can flow
into or out of the chip via these pins), as
opposite to those of ROM that are output
only
It loses its data once the power is removed,
so it is a volatile memory
RAM…
Random-Access Memory
Types
Static RAM (SRAM)
Each cell stores bit with a six-transistor
(Diode) circuit.
Retains value indefinitely, as long as it is kept
powered.
Relatively insensitive to disturbances such as
electrical noise.
Faster and more expensive than DRAM.
Dynamic RAM (DRAM)
Each cell stores bit with a capacitor and
transistor.
Value must be refreshed every 10-100 ms.
Sensitive to disturbances.
Slower and cheaper than SRAM.
ROM
ROM is used for storing programs that
are Permanently resident in the
computer and for tables of constants that
do not change in value once the
production of the computer is completed.