ECE 301 – Digital Electronics Memory (Lecture #22)

26
ECE 301 – Digital Electronics Memory (Lecture #22)

Transcript of ECE 301 – Digital Electronics Memory (Lecture #22)

Page 1: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 – Digital Electronics

Memory

(Lecture #22)

Page 2: ECE 301 – Digital Electronics Memory (Lecture #22)

Random Access Memory

Page 3: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 3

Random Access Memory

Static Random Access Memory (SRAM)

Page 4: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 4

Random Access Memory

Page 5: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 5

Address Decoding

Random Access Memory

Page 6: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 6

RAM: Address Decoding

k-bit address Decoder requires 2k AND gates

Each AND gate has k inputs For large k this becomes prohibitive.

Use 2-dimensional decoding Two decoders Each decoder requires 2(k/2) AND gates

Each AND gate has k/2 inputs Far less combinational logic

Page 7: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 7

RAM: Address Decoding

Page 8: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 8

RAM: Address Decoding

The size of a chip package is often dictated by the number of input and output signals.

For large memories, the number of address lines often becomes prohibitive.

Use address multiplexing The same address lines are used both for

the row address and the column address Use time multiplexing to first latch the row

address and then latch the column address

Page 9: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 9

RAM: Address Decoding

Page 10: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 10

Random Access Memory

Building a Bigger Memory System

Page 11: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 11

RAM Systems

Often RAM chips are smaller than the required memory size.

What if you need a wider memory? Larger word size

What if you need a deeper memory? Greater number of memory locations

Page 12: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 12

RAM Systems

Exercise:

Design a 32K x 32 memory usingRAM chips that are 32K x 8.

How many address bits are required?How many data bits are required?

Page 13: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 13

Exercise: 32K x 32 RAM

Addr Addr Addr Addr15

A14

- A0

D31

- D24

8 8 8 8

D23

- D16

D15

- D8

D7 - D

0

Data Data Data Data

Page 14: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 14

RAM Systems

Exercise:

Design a 128K x 8 memory usingRAM chips that are 32K x 8.

How many address bits are required?How many address bits are connected to the RAM chips?

What are the remaining address bits connected to?

Page 15: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 15

Example: 128K x 8 RAM

Page 16: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 16

Read Only Memory

Page 17: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 17

Read Only Memory ROM store “permanent” binary information

One-time programmable memory Multiple-time programmable memory

Address and Data k address bits n data bits

2k x n ROM includes k-to-2k decoder n 2k-input OR gates

Page 18: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 18

Read Only Memory

Page 19: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 19

Read Only Memory

Page 20: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 20

Read Only Memory

Page 21: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 21

Read Only Memory

Page 22: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 22

Read Only Memory

EEPROM (E2PROM) Electrically Erasable Programmable ROM

Flash ROM Similar to E2PROM Has additional circuitry to selectively erase

and program the memory in-circuit Does not require a special programmer

Page 23: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 23

Programmable Logic Devices

Page 24: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 24

Programmable Logic Devices

Programmable Logic Arrays (PLA) Programmable Array Logic (PAL) Simple Programmable Logic Device (SPLD) Complex Programmable Logic Device (CPLD) Field Programmable Gate Array (FPGA)

Page 25: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 25

“That's All Folks!”

Page 26: ECE 301 – Digital Electronics Memory (Lecture #22)

ECE 301 - Digital Electronics 26

Acknowledgments

The slides used in this lecture were taken, with permission, from those provided by Pearson Prentice Hall for

Digital Design (4th Edition).

They are the property of and are copyrighted by Pearson Education.