Professional Documents
Culture Documents
LectEPE1301 3 RegistersRAMMemory AddressMappingAndDecoding1
LectEPE1301 3 RegistersRAMMemory AddressMappingAndDecoding1
LectEPE1301 3 RegistersRAMMemory AddressMappingAndDecoding1
Input Bit 0
Input Bit 1
Output Bit 0
Output Bit 1
Input Bit 2
Output Bit 2
Memory organisation (2)
Output Bit 0
Output Bit 1
Output Bit 2
Memory organisation (2)
Input Bit 0
Input Bit 1
Input Bit 2
Memory organisation (3)
• 2K X 8 RAM
• UART (needs 8 bytes, for mode,
status, transmit and receive registers)
8000
The address space is 64K (0..FFFF) of RAM
which 4K+8 is needed. Possible choice 87FF
(of many):
• EPROM at address 0
• RAM at 32K = 8000 hex
• UART at FF00 (e.g. FF00 status, FF00 UART
FF02 mode, FF04 Tx, FF06 Rx) FF07
Address decoder (4)
Address bus
CS CS CS
15
A0 - 14
20
8
0
Suppose we have 4 of the 32k x 8 memories, and need 32k x 8
to design the memory map and decoding. CE SRAM
0000 0000 0000 0000 0000 - 0000 0111 1111 1111 1111 RAM 0 DAT ADR OE
OEWE
WE
00000 - 07FFF RAM 0 1
08000 - 0FFFF RAM 1 2-4 X0 32k x 8
10000 - 17FFF RAM 2 DEC CE SRAM
A15 X1 DAT ADR OE
OEWE
WE
18000 – 1FFFF RAM 3
A0 2
A16
DAT ADR R/W DS DTACK A1 X2
32k x 8
CE SRAM
X3
2-to-4 decoder: E DAT ADR OE WE
A1 A0 X3 X2 X1 X0 3
0 0 1 1 1 0
0 1 1 1 0 1 32k x 8
1 0 1 0 1 1 CE SRAM
1 1 0 1 1 1 A0 - 1
DAT ADR OE WE
20 A15-16 A0-14