chapter 5 internal memory. semiconductor memory types today’s technology: 1 gigabit / sq in in...

44
Chapter 5 Internal Memory

Upload: emmanuel-weary

Post on 14-Dec-2015

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Chapter 5

Internal Memory

Page 2: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Semiconductor Memory Types

Today’s technology: 1 Gigabit / sq in

In R&D: 100 Gigabits / sq in

Page 3: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Semiconductor Memory (SRAM)

Page 4: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Semiconductor Memory (DRAM)

16Mbit DRAM

Page 5: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Semiconductor memory (EPROM)

Page 6: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Static RAM (SRAM)

• Desired for main memory• Used in cache• Basically an array of flip-flops• Simple to interface and control • Fast• Relatively low density - complex• Relatively expensive

Page 7: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Static RAM model

Page 8: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

1K X 4 SRAM (Part Number 2114N)

Page 9: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

1K X 4 SRAM (Part Number 2114N)

Page 10: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

1K X 4 SRAM (Part Number 2114N)

Page 11: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Memory Organization

• A 16Mbit chip can be organised as 1M of 16 bit words

• A bit per chip system has 16 lots of 1Mbit chip with bit 1 of each word in chip 1 and so on

• A 16Mbit chip can be organised as a 2048 x 2048 x 4bit array—Reduces number of address pins

– Multiplex row address and column address– 11 pins to address (211=2048)– Adding one more pin doubles range of values so x4

capacity

Page 12: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Memory Design – 1K x 4

A[00:09] D[03:00]

Addr Block Select

Page 13: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Memory Design – 1K x 8

A[00:09] D[07:04]

A[00:09] D[03:00]

Addr Block Select => Addr Block Select =>

D[07:04] D[03:00]

Page 14: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Memory Design - 2k x 8

D[07:04] D[03:00]

Block 00

Block 01

Page 15: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Memory Design - 4k x 8 D[07:04] D[03:00]

Block 00

Block 01

Block 10

Block 11

Page 16: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

22 x 3 Memory

addressdecoder

word select word WEaddress

writeenable

input bits

output bits

Page 17: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

2 BIT Decoder (2 to 4)

Page 18: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

2 to 4 Bit Decoder

Page 19: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

3 to 8 Bit Decoder

Page 20: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

2 to 1 MUX

Page 21: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

4 to 1 MUX

Page 22: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

8 to 1 MUX

Page 23: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

16 to 1 MUX

?

Page 24: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Register

Page 25: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

22 x 3 Memory

addressdecoder

word select word WEaddress

writeenable

input bits

output bits

Page 26: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

24 x 8 Memory

?

Page 27: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Dynamic RAM (DRAM)

• Used in main memory

• Bits stored as charge in capacitors Essentially analog device Charges leak

• Need refreshing even when powered Need refresh circuits

• Higher density (more bits per chip)

• Slower than Static RAM

• Less expensive

Page 28: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Dynamic RAM model

Page 29: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Read Only Memory (ROM)

• Permanent storage—Nonvolatile

• Microprogramming (will address later)

• Library subroutines

• Systems programs (BIOS)

• Function tables• Controllers

Page 30: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Types of ROM

• ROM: Written during manufacture— Very expensive for small runs

• PROM: Programmable (once)—Needs special equipment to program

• Read “mostly”—EPROM: Erasable Programmable

– Erased by UV (All of chip!)

—Flash memory– Whole blocks of memory stored/changed electrically

—EEPROM: Electrically Erasable– Takes much longer to write than read (lower density)

Page 31: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

EPROM

Page 32: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Semiconductor Memory

16Mbit DRAM

Page 33: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

256kByte Module Organisation (256K x 1)

Page 34: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Typical 16 Mb DRAM (4M x 4)

Page 35: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

1MByte Module Organization (1Meg x 8 bits)

Page 36: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Refreshing

• Refresh circuit is included on the chip

• Count through rows

• Read & Write back

• Chip must be disabled during refresh

• Takes time

• Occurs asynchronously

• Slows down apparent performance

Page 37: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Improvements in memory

RAM – continually gets denser.

DRAM – Several improvements: SDRAM – synchronous DRAM DDR-SDRAM - doubles transfer speed RDRAM – asynchronous one transfer per clock cycle

Page 38: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Comparison of improved DRAM

Conventional DRAM – 40 to 100 MB/S transfer rate?

Page 39: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

Synchronous DRAM (SDRAM)

• Access is synchronized with an external clock• Address is presented to RAM• RAM finds data (CPU waits in conventional DRAM)• Since SDRAM moves data in time with system

clock, CPU knows when data will be ready• CPU does not have to wait, it can do something

else• Burst mode allows SDRAM to set up stream of

data and fire it out in block• DDR-SDRAM sends data twice per clock cycle

(leading & trailing edge)

Page 40: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

SDRAM Read Timing

Page 41: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

SDRAM

Page 42: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

DDR SDRAM

• SDRAM can only send data once per clock• Double-data-rate SDRAM can send data

twice per clock cycle—Rising edge and falling edge

Page 43: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

RAMBUS

• Adopted by Intel for Pentium & Itanium• Main competitor to SDRAM

• Separate bus (hence the name RAMBUS)— maximum 12 centimeter length bus !

• Bus addresses up to 320 RDRAM chips — at 1.6Gbps

• Asynchronous block protocol— Precise control signal timing— 480ns access time

Page 44: Chapter 5 Internal Memory. Semiconductor Memory Types Today’s technology: 1 Gigabit / sq in In R&D: 100 Gigabits / sq in

RAMBUS Diagram