Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program...

20
Memory Technology and Interfacing

Transcript of Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program...

Page 1: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Memory Technology and Interfacing

Page 2: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Stored Program Model

Memory

Output

Input

CPU

Stored-program computer model

Page 3: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Types of Memory

Random-Access Memory (RAM)VolatileStore data or programs that can be

conveniently reloaded Read-Only Memory (ROM)

Non-volatileProgramming once store essential

programs

Page 4: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Random-Access Memory (RAM) Any of its contents may be accessed at

any time. (Why this notation is used?) Two technologies are used:

Static RAM (SRAM)Dynamic RAM (DRAM)

Page 5: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Static RAM

A static RAM stores a bit of information within a flip-flop.

6-Transistor SRAM Cell

bit bit

word

Page 6: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Dynamic RAM

A DRAM stores a bit of information as a charge.

row select

bit

Page 7: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

DRAM vs SRAM

DRAM is much higher density (less transistor is used for a cell).

DRAM needs to be refreshed every now and then (to prevent memory loss).Must incorporate with extra (complicated)

circuit for refreshing.

Page 8: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

ROM Technologies

Pure ROM PROM (User-Programmable ROM) EPROM (Erasable PROM) EAROM (Electrically-Alterable ROM)

Page 9: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Pure ROM

A mask-programmed ROM made from manufacturer.

High cost – need to be produced for large volumes.

Page 10: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

PROM

Can be programmed (once) by user. Using PROM programmer.

It’s a fusible-link PROM each cell is fuse (nichrome or polysilicon). Originally, all rows and columns are connected

(logical 0s). Once a cell is ‘burnt’, it becomes logical 1. “Grow back” problem reliability problem.

Once programmed, it can not be altered ever again.

Page 11: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

EPROM

Can be reprogrammed a number of times using a programmer machine.

Two main types:UV-erasableElectrically-erasable

Page 12: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

EAROM

Can be read from and written to. It actually is non-volatile RAM.

Now, we use Flash Memory

Page 13: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Accessing Memory

There must be a control bus for the following operations:Read data from memoryWrite data to memoryDo not access memory

Page 14: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

ROM Interfacing

Page 15: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

ROM Read

Page 16: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

RAM Interfacing

Page 17: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Reading from the Memory (RAM)

Page 18: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Writing to the Memory

Page 19: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Memory Interfacing Design & Memory Map

4K

4K

20=121=222=423=824=1625=3226=6427=12828=25629=512210=1024211=2048212=4096213=8192214=16384215=32768216=65536

0000h

0FFFh1000h

1FFFh

4K2000h

2FFFh

4K

4K

E000h

EFFFhF000h

EFFFh

Page 20: Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.

Use Decoder (i.e. 74138)