Unit 4
Unit 4
MEMORY SYSTEM
General Objective:
To know and understand the
memory system & design.
OUTLINE
GENERAL OBJECTIVE
Computer
Internal
Internal
Memory
Memory
Arithmetic
Arithmetic Control
Control (semiconductor)
unit Unit (semiconductor)
unit Unit
Auxiliary mass
strorage
(tape, disk, MBM)
secondary memory, which is separated
from the internal working memory
Secondary memory is also called mass
storage, it has the capacity to store
massive amounts of data without the need
for electrical power
secondary memory operates at a much
slower speed than internal memory
Typical secondary memory devices are
floppy disk, CD-ROM, magnetic disk,
magnetic tape
Figure shows the typical contents
of the two major memories.
Primary memory Secondary memory
ROM RAM
MROM PROM
UV ELECTRIC
ERASABLE ERASABLE
EPROM
EEPROM EAROM
ROM (READ ONLY MEMORY)
The read only memory (ROM) is a type of semiconductor
memory.
It is designed to hold data that either are permanent or
will not change frequently.
During normal operations, no new data can be written
into a ROM but data can be read from
Since all ROMs are nonvolatile, these programs are not
lost when electrical power is turned off.
ROMs contributes to a broad class of semiconductor
memories design for application where the ratio of read
operation to write operation is very high (write very less,
read more ).
MROM (MASK- Programmed ROM)
MROM but is normally referred as just ROM
only.
The mask programmed ROM, acronymed
MROM.
It has its storage location written into
(programmed) by the manufacturer according to
the customers specifications.
a photographic negative called a mask is used
to control the electrical interconnections on the
chip.
A major disadvantage of MROM is that it cannot
be reprogrammed
PROM (Programmable ROM)
PROM is also programmed once but it is programmed by
the programmer not the factory.
A mask-programmed ROM is very expensive and would
not be used except in high volume applications, where
the cost would be spread out over many units.
For lower volume applications, manufacturers have
developed fusible-link PROMs that are user-
programmable; that is,
PROM is like an MROM in the way it cannot be erased
and reprogrammed.
These devices are often referred to as one time
programmable ROMs.
EPROM
(Erasable Programmable ROM)
An EPROM can be programmed by a
user and it can also be erased and
reprogrammed as often as desired
the EPROM is a non-volatile memory that
will hold its stored data indefinitely as in
ordinary ROM
The process of programming an EPROM
involves the application of special voltage
levels (typically in the 10 to 25V range)
EEPROM (Electrically erasable
PROM)
The disadvantage of the EPROM was overcome
by the development of the electrically erasable
PROM as an improvement over the EPROM
This modification produces the EEPROMs
major characteristics its electrical erasability.
the erasing and programming of an EEPROM
can be done in circuit
advantage of the EEPROM over the EPROM is
the ability to electrically erase and rewrite
individual bytes (8-bit words) in the memory
array
EAPROM (Electrically Alterable
PROM)
EAPROM does not require the whole chip
to be erased, rather it allows data
alteration at user selected location
Erasing and reprogramming of data in
EAPROM is done on board
The alteration of data in the cell is done by
applying electrical pulse to them
RAM (Random Access Memory)
RAM is used in computer for the
temporary storage of programs and data
The contents of many RAM address
location will be read from and written to as
the computer executes a program.
A major disadvantage of RAM is that it is
volatile and will lose all stored information
if power is interrupted or turned off.
Comparison of SRAM and DRAM
SRAM DRAM
The main application of SRAMs the main internal memory of
are in areas where only small most personal microcomputer (e.g
amount of memory are needed 18M PC or APPLE ) uses DRAM
(up to 64 K), or
because of its high capacity
where high speed is required. and
Microprocessor controlled low power consumption.
instruments and appliances have These computer however,
very small memory capacity
sometimes use some small
requirements.
amounts of SRAM for functions
Some instruments, such as digital requiring maximum speed such
storage, oscilloscope and logic as video graphics and look-up
analyzers, require very high-speed tables.
memory, thus SRAM is normally
used.
Pin connection of RAM
Memory chip is normaly recognized by its
memory capacity which has two main
elements i.e address size and data size
Address Data
size size
a) How to determine data lines
or pins?
From the chip capacity label, for instance
32 x 4 has a data size of 4 bits, means
each cell of the memory is sized 4 bits. In
orther words, this chip has 4 data
lines/pins which are labeled as Dn = D0,
D1, D2, D3.
b) How to determine address
lines or pins?
From the chip capacity label as well, for instance 32 x 4
has a address size of 32 memory locations/cells (where
each cell has a data size of 4 bits ). Address size is
represented by equation of 2n, thus 2 n = 32 will give n
= 5. In other words, this memory has 5 address
lines/pins which are labeled as An = A0,A1, A2, A3, A4
2n = 32
log 2n = log 32
n log 2 = log 32
n = log 32
log 2
= 5
What is the memory chip capacity in
bits?
Also from the chip capacity label, for instance 32
x 4, the chip capacity is:
An = A0,A1,A2,A3,A4 A1
R/W A0 D3 D2 D1 D0
ME
Output data lines (4
bits)
Outline
Introduction & Understand memory
Systems design
Read Cycle
CPU sends a signal via control bus. If the
bus is busy, CPU is put on Wait state.
If the bus is free, CPU will place instruction
address on the address bus.
This address will be decoded or translated
by the circuitry in the memory or I/O
interface.
Finally the data at that specific address is
obtained, and is placed on the data bus.
Figure shows the the whole Read cycle in
the graphical form
Address Bus
SYSTEM
BUS
Data Bus
Control Bus
2 1
REQUEST
MEMORY
MPU Step 1 : Read Request
Step 2 : Send Address
RAM ROM
Cont
Address Bus
SYSTEM
BUS
Data Bus
Control Bus
3 4
DATA TRANSFER
MEMORY MPU
Step 3 : Receive Data
RAM ROM Step 4 : Signal OK
Write Cycle
Write cycle enables CPU sends data to
the memory or I/O devices.
CPU will send a signal (request to write) to
the control bus.
If the data bus is free, the data is placed
on the data bus, whereas the location
address will be placed on the address bus.
CPU will then send the data to the
destination with respect to the address.
Figure shows the whole Write cycle in the
graphical form
Address Bus
SYSTEM BUS
Data Bus
Control Bus
Address Bus
SYSTEM BUS
3
Data Bus
Control Bus