ECE 301 – Digital Electronics

Download Report

Transcript ECE 301 – Digital Electronics

ECE 301 – Digital Electronics
Memory
(Lecture #21)
Memory
Memory is required to store:
1. data
2. application programs
3. operating system
ECE 301 - Digital Electronics
2
Memory
Can be broadly classified as:
Random Access Memory (RAM)
or
Read Only Memory (ROM)
ECE 301 - Digital Electronics
3
Random Access Memory (RAM)

Can be written to or read from.



Reading from RAM is non-destructive.
Access time to read from any memory
location is the same.


Read/Write memory
As compared to serial access memory.
Volatile

Information is lost when power is
removed.
ECE 301 - Digital Electronics
4
Random Access Memory (RAM)
ECE 301 - Digital Electronics
5
Random Access Memory (RAM)


Static Random Access Memory (SRAM)

Based on the Flip-Flop

Requires a large number of transistors

Fast
Dynamic Random Access Memory (DRAM)

Uses a single transistor to store charge

Requires very few transistors

Must be periodically refreshed

Slow(er)
ECE 301 - Digital Electronics
6
Random Access Memory (RAM)
What is typically stored in RAM?
ECE 301 - Digital Electronics
7
Read Only Memory (ROM)

Can only be read from.

Memory is written (or “programmed”) once

Reading from ROM is non-destructive.

Access time to read from any memory
location is the same.


As compared to serial access memory.
Non-Volatile

Information is retained even after power
is removed.
ECE 301 - Digital Electronics
8
Read Only Memory (ROM)
ECE 301 - Digital Electronics
9
Read Only Memory (ROM)

Programmable Read Only Memory (PROM)


Erasable PROM (EPROM)


Can be “programmed” and erased
Electrically Erasable PROM (EEPROM)


Can be “programmed”
Can be erased using an electrical signal
UV Erasable PROM (UVEPROM)

Can be erased using Ultraviolet light
ECE 301 - Digital Electronics
10
Read Only Memory (ROM)
ECE 301 - Digital Electronics
11
Read Only Memory (ROM)
What is typically stored in ROM?
ECE 301 - Digital Electronics
12
Memory
ECE 301 - Digital Electronics
13
Memory
Random Access Memory
ECE 301 - Digital Electronics
14
Random Access Memory


Address

Location in memory of the binary information

Must be decoded to select the appropriate
location and read/write the associated data

k-bit address → 2k memory locations
Data

Binary information of interest

Stored in a specific location in the memory

Typically organized into words

Each word has n bits
ECE 301 - Digital Electronics
15
Random Access Memory
address
data
10-bit address
1024 locations
ECE 301 - Digital Electronics
16
Random Access Memory

Read


Indicates that the memory is to be read
Write

Indicates that the memory is to be written
ECE 301 - Digital Electronics
17
Random Access Memory
ECE 301 - Digital Electronics
18
Random Access Memory



Rather than use the Read and Write
signals, most commercially available RAM
chips use Enable and Read/Write'
Enable

Used to enable the selected RAM chip

Aka. “chip select”
Read/Write'

RAM is read when Read/Write' = 1

RAM is written when Read/Write' = 0
ECE 301 - Digital Electronics
19
Random Access Memory
ECE 301 - Digital Electronics
20
Random Access Memory
Write Cycle
ECE 301 - Digital Electronics
21
Random Access Memory
Read Cycle
ECE 301 - Digital Electronics
22
Random Access Memory
ECE 301 - Digital Electronics
23
Random Access Memory
ECE 301 - Digital Electronics
24
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.
ECE 301 - Digital Electronics
25