Memory and Memory Interfacing: Ajay Singh Raghuvanshi
Memory and Memory Interfacing: Ajay Singh Raghuvanshi
Memory
Memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location is known as its addressability Each location stores a word i.e. the number of bits that can be processed by the CPU in a single operation. Word length may be typically 8,16, 24, 32, 64 or as many as 128 bits. Memory Can be classified into two categories
RAM
ROM
Doesnt need refreshing ,Retains contents as long as power applied to the chip
Access time around 10 nanoseconds, Can be Used for cache memory Dynamic Random Access Memory (DRAM)
Access time less than 60 nanoseconds Direct Rambus Dynamic Random Access Memory (DRDRAM)
Access time 20 times faster than DRAM, More expensive Cache memory
Types of ROM
Programmable
Empty
May
The EPROM chip has a small window on top allowing it to be erased by shining ultra-violet light on it reprogramming the window is covered to prevent new contents being erased time is around 45 90 nanoseconds
After
Access
Types of ROM
Electrically
(EEPROM)
Reprogrammed
Must
be removed from the computer and placed in a special machine to do this times between 45 and 200 nanoseconds
Access
Flash
ROM
to EEPROM can be reprogrammed while still in the computer
Similar
Access
128 x 8 RAM
CS1 CS2 0 0 0 1 1 0 1 0 1 0 1 1
RD x x 0 0 1 x
WR x x 0 1 x x
State of data bus High-impedence High-impedence High-impedence Input data to RAM Output data from RAM
Memory Interfacing
Component RAM RAM RAM RAM ROM 1 2 3 4 Hexa address 0000 - 007F 0080 - 00FF 0100 - 017F 0180 - 01FF 0200 - 03FF Address bus
10 9
0 0 0 0 1 0 0 1 1 x
8 7 6 5
0 1 0 1 x x x x x x x x x x x x x x x x
4 3 2 1
x x x x x x x x x x x x x x x x x x x x
Example: Design a 64K-8 EPROM interface for the 8086 microprocessor using EPROM chips (8K x 8). The ROM memory starts at address F0000HFFFFFH.
Assignment 2
Design memory interface to be used with MPU 8086 in Minimum mode with following specifications
ROM
: 128 K: using 8 ROM chips of same size RAM : 256 K: using 8 RAM chips of same size Draw the memory map of the system showing the chip address range for each chip
A19 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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