Chapter 4
Chapter 4
Memory Organization
Outline
Classification of Memories
Memory types: RAM, ROM
Memory Chip Capacity & Organization
Electrical Signals
Organization of a Typical memory chips
RAM
Reprogrammable ROMs
EPROM
EEPROM
Classification of Memories
Memory
RWM
(RAM)
ROM Disks Tape
MROM
SRAM DRAM
Floppy
PROM
Flash
memory
EPROM
Bubble H/D
EEPROM
(EAROM) Optical
Memory hierarchy
The hierarchy is Registers
Cache
based on the speed, Speed
Main memory
size and distance
from the processor Electronic Disk
Magnetic Disk
Optical Disk
Cost cheap,
Magnetic Tape size
Semiconductor Technologies for
memories
Bipolar Technology:- high speed
MOS Technology :- less space (high density), less
power consumption.
PMOS technology -earlier
NMOS technology -speed, density
CMOS technology -less power consumption
Types of semiconductor memory
Semiconductor memories can be classified as:
D IN D Q D OUT
WR
EN (a) A memory cell latch with
EN
RD two tri-state Buffers
Memory Chip Capacity & Organization…
I7 I0
WR Input Buffer
64kb memory.
Each register contains 8 D A0 MR1 0000H
216 =65536 MR2
Decoder
A1 0001H
Latch flip-flops.
The I/P and O/P buffers are FFFEH
A14 MR 65535
each of 8 Tri-state A15 MR 65536 FFFFH
buffers.
RD Output Buffer
O7 O0
Memory Chip Capacity & Organization…
Memory is usually measured by two numbers: its length and its
width (Length X Width)
Capacity of a chip = length x width
length is total number of words(the total number of locations),
width is number of bits per word(location).
Word size is the number of bits a µP can access in parallel at a time.
The length (total number of words) is a function of the number of
address lines
# of memory locations = 2^( # of address lines)
So, a memory chip with 10 address lines would have
2^10 = 1024 words or locations (1K)
Looking at it from the other side, a memory chip with 4K
locations would need
Log2 4096=12 address lines
Memory Chip Capacity & Organization…
Three cases:
a) Smaller word size chips can be connected to make up an 8-bit word memory.
b) More than one memory chips can be arranged to make up the memory capacity for a µP. Need of
additional chip select (CS) signal- which allows us to expand memory size by using multiple
chips.
c) There are more address lines but less memory chip are sufficient. Two solution:
. Absolute decoding
. Partial decoding– leaving some address lines as don’t care.
Chip Select
Usually, each memory chip has a CS (Chip Select)
input. The chip will only work if an active signal is
applied on that input
To allow the use of multiple chips in the make up
of memory, we need to use a number of the address
lines for the purpose of “chip selection”
These address lines are decoded to generate the
necessary CS inputs for the memory chips to be used.
Chip Select Example
Assume that we need to build a memory system
made up of 4 of the 4 X 4 memory chips we
designed earlier
We will need to use 2 inputs and a decoder to
identify which chip will be used at what time
The resulting design would now look like the one
on the following slide
Chip Select Example…