Docsity

Memory Types and Organization: RAM, ROM, SRAM, DRAM, Addressing and Decoding - Prof. Macie, Study notes of Engineering

Partial preview of the text

Download Memory Types and Organization: RAM, ROM, SRAM, DRAM, Addressing and Decoding - Prof. Macie and more Study notes Engineering in PDF only on Docsity!

Maciej Ciesielski

Department of Electrical and Computer Engineering

11/26/

Engin112 – Lectures 34-

Memory - RAM, ROM

11/26/

Engin 112 - Intro to ECE

Recap from last lectures

ƒ^

Timing in digital logic^ y

Combinational logic y Sequential logic y Timing analysis

ƒ^

Today’s lecture: Computer Memory^ y

Random Access Memory (RAM) y Read Only Memory (ROM)

11/26/

Engin 112 - Intro to ECE

Memory Hierarchy

Control Data-path

Processor

regs

SecondaryMemory

L

Cache

L1Cache

Main Memory

Speed (ns):

1ns

2ns

6ns

100ns

10,000,000ns

Size (MB):

Cost ($/MB):

--^

Technology:

Regs

SRAM

SRAM

DRAM

Disk

11/26/

Engin 112 - Intro to ECE

Random-access Memory (RAM)

ƒ^

Memory terminology:^ y

Smallest unit is “word” (

n^

bits wide)

y^

Identified by “address”

ƒ^

Block diagram:^ y

k

address lines^ » At most

^2 k^ words storage

y^

n data lines input and output

ƒ^

What is the total memory size in bits?^ y

Size =

^2

k^ ×

n

bits

ƒ^

Example:^ y

1024-bit memory with 16-bit words y How many address lines?

11/26/

Engin 112 - Intro to ECE

RAM Read and Write

ƒ^

Control inputs: y^

Address y^

Read y^

Write

ƒ^

Write operation1.

Apply address to address lines

Apply data to data input lines

Activate write input

ƒ^

Read operation1.

Apply address to address line

Activate read input

Read value from data output lines

11/26/

Engin 112 - Intro to ECE

RAM Read and Write

ƒ^

Control inputs on commercial memories^ y

Memory enable y Read and write (often

read/write

ƒ^

What timing constraints need to be considered?^ y

Access time

= time to read a word

y^

Cycle time

= time to write a word

y^

Also:

setup

and

hold time

on address

Memory

Read /

Memory

enable

write

operation

X^

none

write to selected word

read from selected word

11/26/

Engin 112 - Intro to ECE

RAM Timing

ƒ^

Read timing:^ y

Address needs to be valid before memory enable y Data becomes valid before access time expires

ƒ^

Processor and memory often not “in sync”^ y

Memory access can take multiple clock cycles

11/26/

Engin 112 - Intro to ECE

Memory Cell Design

ƒ^

Binary memory cell implemented with SR latch:^ y

Note: memory is not clocked

11/26/

Engin 112 - Intro to ECE

6-transistor CMOS SRAM Cell

WL

BL

V^

DD

M

5

M

6

M

^4

M

1 M

2

M

^3

BL

Q

Q

11/26/

Engin 112 - Intro to ECE

1-Transistor DRAM Cell Design

Uses Polysilicon-Diffusion Capacitance

Cross-section

Layout

M^1

word line

Diffusedbit line

Polysilicon

gate

Polysiliconplate

Capacitor

Metal word line

Poly

SiO

2

Field Oxide

  • n

  • n

Poly Inversion layerinduced byplate bias

11/26/

Engin 112 - Intro to ECE

Larger Memories – Address Decoding

ƒ^

What is the problem with larger memories?^ y

Number of binary cells increases (that’s expected) y Decoder becomes really large!

ƒ^

How many gates in a

k

×

^2

k^

line decoder?

y^

k 2 AND gates with k inputs each!

ƒ^

Example:^ y

1024-word memory decoderrequires 1024 AND gates with10 inputs

ƒ^

Solution?^ y

address decoding

11/26/

Engin 112 - Intro to ECE

Coincident Decoding – Address Splitting ƒ Split decoders into two dimensions:

y^

k/

×

^2

k/

decoder in

each dimension

ƒ^

Coincidence of selectedlines determines word

ƒ^

How many gates arerequired?^ y

32 + 32 = 64 ANDswith 5 inputs

11/26/

Engin 112 - Intro to ECE

Read-Only Memory (ROM)

ƒ^

Storage for memory that does not need tochange

ƒ^

Block diagram:^ y

Address y Outputs y No data inputs

ƒ^

Internal design^ y

32 × 8 ROM y 256 internal^ connections

ƒ^

Connections:^ y

No connection = 0 y Connection = 1

11/26/

Engin 112 - Intro to ECE

Read-Only Memory

ƒ^

Example of “programmed” ROM:^ y

“x” indicatesconnection

ƒ^

Programmingof ROM^ y

All connectionexist as “fuses” y Higher voltage canblow fuse y Blown fuse indicates 0