11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line...

22
11/29/2004 EE 42 fall 2004 lecture 3 7 1 Lecture #37: Memory • Last lecture: – Transmission line equations – Reflections and termination – High frequency measurements • This lecture: – Static Ram – Dynamic Ram
  • date post

    19-Dec-2015
  • Category

    Documents

  • view

    217
  • download

    0

Transcript of 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line...

Page 1: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 1

Lecture #37: Memory

• Last lecture:– Transmission line equations– Reflections and termination– High frequency measurements

• This lecture:– Static Ram– Dynamic Ram

Page 2: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 2

Memory types

• In addition to registers, there is usually a need in digital logic devices for a denser (and therefore cheaper) means of storing information in larger amounts.

• The main memory types are known as RAM (Random Access Memory) as contrasted with long shift registers from which information can only be extracted or added in sequence.

Page 3: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 3

RAM

• In a RAM, an address is provided to a block of logic, along with an address strobe and a write signal line.

• The memory block then either reads a block of bits and puts it onto a bus, or writes the data from the bus into the indicated area of memory.

Page 4: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 4

Types of memory

• SRAM (Static RAM) is a memory which is essentially an array of flip flops. It can be very fast, and is integrated with logic.

• DRAM (Dynamic RAM) is a dense memory which uses a single capacitor controlled by a switch to store a bit. Dram must be rewritten after a write, and must be refreshed periodically.

Page 5: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 5

Other types of memory

• Read only memory (ROM) is a memory whose content is fixed at manufacture, and thus can only be read.

• Content addressable memory (CRAM) is memory which can be addressed, at least in part by its contents, rather than an address.

• E2 memory (electrically erasable) is memory which can be read and written, but whose content is nonvolatile. Writing is often much slower than reading

Page 6: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 6

RAM logical organization

Note that the number row decoder lines and column lines goes like the square root of the memory size

Column Decoder

Memory array

…D

QR

ow D

ecod

er…

Address lines

Address strobe

Read/Write

Page 7: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 7

SRAM

• Cache uses SRAM: Static Random Access Memory– No refresh – Size 6 transistors/bit – Fast, can be optimized for speed or area reduction– Compatible with dense logic, so can be integrated

with microprocessors with no extra masks

Page 8: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 8

Static RAM (SRAM)• Six transistors in cross connected fashion

– Provides regular AND inverted outputs

– Implemented in CMOS process

Single Port 6-T SRAM Cell

Page 9: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 9

SRAM cell

• Each cell of an SRAM is a pair of cross connected small inverters

• As long as power is supplied, the latch will hold the value.

• When the row line is held high, the outputs are driven with the contents of the memory.

• The latch is written by using a more powerful driver on the column lines to overcome the smaller transistors in the latch which forces the desired state.

Page 10: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 10

DRAM

• Main Memory is DRAM: Dynamic Random Access Memory– 1 transistor– Dynamic since needs to be refreshed periodically

(8 ms, 1% time)– Addresses divided into 2 halves (Memory as a 2D

matrix):• RAS or Row Access Strobe• CAS or Column Access Strobe

Page 11: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 11

• SRAM cells exhibit high speed/poor density• DRAM: simple transistor/capacitor pairs in high density

form

Dynamic RAM

Word Line

Bit Line

C

Sense Amp

.

.

.

Page 12: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 12

Basic DRAM Cell

• Planar Cell– Polysilicon-Diffusion Capacitance, Diffused Bitlines

• Problem: Uses a lot of area (< 1Mb)• You can’t just ride the process curve to shrink C (discussed later)

(a) Cross-section

(b) Layout

Diffusedbit line

Polysiliconplate

M1 wordline

Capacitor

Polysilicongate

Metal word line

SiO2

n+ Field Oxide

Inversion layerinduced by plate bias

n+

poly

poly

Used Polysilicon-Diffusion Capacitance

Expensive in Area

Page 13: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 13

DRAM Operations

• Write– Charge bitline HIGH or LOW and set wordline HIGH

• Read– Bit line is precharged to a voltage halfway

between HIGH and LOW, and then the word line is set HIGH.

– Depending on the charge in the cap, the precharged bitline is pulled slightly higheror lower.

– Sense Amp Detects change

• The signal is decreased by the ratio of the storage capacitance to the bitline capacitance– Increase density => increase parasitic

capacitance– As geometries shrink, still need large bit capacitance

Word Line

Bit Line

C

Sense Amp

.

.

.

Page 14: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 14

Advanced DRAM Cells

• Stacked cell (Expand UP)

Page 15: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 15

Advanced DRAM Cells

• Trench Cell (Expand DOWN)

Cell Plate Si

Capacitor Insulator

Storage Node Poly

2nd Field Oxide

Refilling Poly

Si Substrate

Page 16: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 16

DRAM logical organization (4 Mbit)

• Square root of bits per RAS/CAS

Column Decoder

Sense Amps & I/O

Memory Array(2,048 x 2,048)

A0…A10

11

D

Q

Word LineStorage CellR

ow D

ecod

er…

Page 17: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 17

DRAM sense amp

enable enable

enable enable

Bit line

Both precharged to ½ V

Data out

+V

Page 18: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 18

DRAM sense amplifier

• The reason that DRAM is slow, is that a very small charge is captured on the capacitor, and the small voltage change on the line must be sensed.

time

V

Precharge→

Charge dumped to

bit line

Sense amp decides 0

or 1

Page 19: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 19

DRAM/SRAM tradeoffs

• By it’s nature, DRAM isn’t built for speed– Response time dependent on capacitive circuit

properties which get worse as density increases• DRAM process isn’t easy to integrate into CMOS

process– DRAM is off chip – Connectors, wires, etc introduce slowness– IRAM efforts looking to integrating the two

• Memory Architectures are designed to minimize impact of DRAM latency– Use dram for high density, store data which is used

often in smaller, higher speed SRAM cache.

Page 20: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 20

FLASH Memory

• Floating gate transistor– Presence of charge => “0”

– Erase Electrically or UV (EPROM)

• Performance– Reads like DRAM (~ns)

– Writes like DISK (~ms). Write is a complex operation

Page 21: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 21

• Tunneling Magnetic Junction RAM (TMJ-RAM):

– Speed of SRAM, density of DRAM, non-volatile (no refresh)

– New field called “Spintronics”: combination of quantum spin and electronics

– Same technology used in high-density disk-drives

More esoteric Storage Technologies?

Page 22: 11/29/2004EE 42 fall 2004 lecture 371 Lecture #37: Memory Last lecture: –Transmission line equations –Reflections and termination –High frequency measurements.

11/29/2004 EE 42 fall 2004 lecture 37 22

Tunneling Magnetic Junction