Professional Documents
Culture Documents
Address Contents
Memory Addressing
Each location in memory has
an address that must be
supplied before its contents Data Bus
can be accessed.
Address Bus
in the make up of memory, we need
to use a number of the address lines Memory
for the purpose of chip selection.
These address lines are decoded to
generate the 2n necessary CS inputs
for the memory chips to be used.
EN RD/WR
Memory Access
NxM
NxM
01 0001100011
Address Bus
CPU Memory 2
Memory 3
Memory Access
NxM
NxM
01 0001100011
Address Bus
CPU Memory 2
Memory 3
Chip Selection Example
A memory system made up of 4 of the 4x2 memory chips
RD/ WR
D0
D1
A0 A0 A0 A0
A1 A1 A1 A1
CS CS CS CS
A0
A1
A2 2 X4
A3 Decoder
Memory Map
Designates the address space for each memory chip
0000 0000
EPROM Address Range of EPROM Chip
3FFF
4400
RAM 1 Address Range of 1st RAM Chip
Address Range
5FFF
6000
RAM 2 Address Range of 2nd RAM Chip
8FFF
9000
RAM 3 Address Range of 3rd RAM Chip
A3FF
A400
F7FF
FFFF
Address Range of a Memory Chip
The address range of a particular chip is the
list of all addresses that are mapped to the chip.
An 8-bit CPU with 16 address bits can address a
total of 64K memory locations.
If we use memory chips with 1K locations each,
then we will need 64 such chips.
The 1K memory chip needs 10 address lines to
uniquely identify the 1K locations. (log21024 = 10)
That leaves 6 address lines which is the exact
number needed for selecting between the 64
different chips (log264 = 6).
Address Range of a Memory Chip
16 bit address lines can be separated into two
pieces
A 11
A 12 CS
A 13
A 14
A 15
Chip Select Example
If we change the above combination to the following:
A10
A11
A12 CS
A13
A14
A15
0000 0000
2000
23FF 2400
27FF
FFFF FFFF
Memory Organization
Example: For a CPU with 8-bit data bus and
16-bit address bus, build the memory that
spans between $0000 and $1FFF with 2Kx8
memory chips.
Address Bus
A0-A10
R/W
Address Bus
A0-A10
R/W
Address Bus
A0-A10
R/W
A15
E
A14
A13
Grp. Select
Memory Organization
Example: Organize 8Kx1 memory chips to obtain
8Kx8 memory
D0
Data :
Bus
D7
R/W
A15
A14
A13