Professional Documents
Culture Documents
ARCHITECTURE
MEMORY HIERARCY.
1
Lecture Objectives
Understanding Computer Memory
Memory hierarchy
Memory X-tics
Types of memory
2
Memory Hierarchy
3
Memory Hierarchy – Cont’d
Review Qn
SRAM DRAM
Usage
Speed
COST
Power
consumption
END 4
Memory Hierarchy
Major design objective of any memory system
5
Overview
Cache Memory
Main Memory
Hard Drives
Tape Backup
7
Going Down the Hierarchy
• Decreasing cost per bit
• Increasing capacity. (The number of bytes
(characters) a storage medium can hold).
8
i)Internal : Processor registers, Cache. Directly
accessible by the processor.
11
Cache memory
12
Cache Memory
Cache memory is intended to give memory
speed approaching that of the fastest memory
available. (CPU registers)
13
Memory Classification
According to Volatility:
RAM
ROM
According to Technology:
Static RAM
Dynamic RAM
14
RAM/ROM
15
Main Memory
• There are has two kinds of memory:
– Random-access memory (RAM)
– and Read-only memory (ROM).
16
Random Access Memory
17
ROM . Read Only Memory
• ROM is the memory where information is only read.
• When the computer is turned off, information is not
deleted from ROM.
18
FEATURES OF RAM.
The distinguishing feature is that RAM is
volatile. RAM must be provided with a constant
power supply. If power is interrupted, then the
data is lost.
The other distinguishing feature of RAM is that
it is possible both to read data from the
memory and to write new data into the
memory easily and rapidly. Both the reading
and writing are accomplished through the use
of electrical signals.
19
Dynamic RAM
The term dynamic refers to this tendency of
the stored charge to leak away even with
power continuously applied.
20
Characteristics of DRAM
Simpler construction
Less expensive
Need to refresh circuits
Slower.
Used for Main memory
21
Static RAM and its characteristics
Bits stored as on/off switches (to be looked at
when we get to logic gates)
No charges to leak
No refreshing needed when powered
More complex construction
More expensive
Faster
Used for Cache.
22
Read Only Memory (ROM)
As the name suggests Read-only memory
contains a permanent pattern of data that
cannot be changed. Data is “wired in” during fabrication at
a chip manufacturer’s plant .
It is nonvolatile - no power source is
required to maintain data
It is possible to read from ROM but it is not
possible to write new data into it.
ASSIGNMENT
What do you think are some of the
advantages and drawbacks
(disadvantages/shortcomings) associated
with ROM?
23
Types of ROM
• Read “mostly”
– Erasable Programmable (EPROM)
• Erased by UV
– Electrically Erasable (EEPROM)
• Takes much longer to write than read
24
Types of ROM
Programmable ROM (PROM)
Data can be programmed/written once by
the user employing a PROM programmer.
Writing process is performed electrically and
may be performed by a supplier.
25
Read-Mostly memory
Useful for applications in which read operations are
far more frequent than write operations but for which
nonvolatile storage is required.
27
Flash memory
This is a non volatile computer storage that can be
electrically erased and reprogrammed. This technology is
used in memory cards and USB flash drives
It is a special type of EEPROM( electrically
Erasable Programmable Read only Memory) that
is erased and programmed.
It is Non-Volatile , no power is needed to
maintain information.
Memory erased electrically in a few seconds
28
Goal of the memory
hierarchy
29