04-Chap5-Internal Memory RAM
04-Chap5-Internal Memory RAM
Chapter 5
Internal Memory
Overview
• Dynamic RAM (DRAM) & Static RAM (SRAM)
— Properties
— Structure
— Difference
— Chip Logic
— Chip Packaging
— Module Organization
• Error Detection & Correction
— Hamming Code
— Single Error Correcting & Detecting (SEC-SED)
• Advanced DRAM Organization
— Synchronous DRAM (SDRAM)
— Double Data Rate DRAM (DDRRAM)
— Rambus RAM (RDRAM)
— Cache DRAM (CDRAM)
1
Semiconductor Memory
• Earlier computers had an array of doughnut-
shaped ferromagnetic loops called core used as
RAM - vanquished by microelectronics
• Two basic forms of semiconductor random access
memory are DRAM & SRAM
• Another form of semiconductor random access
memory is ROM
— ROM
— PROM
— EPROM
— EEPROM
— Flash Memory
2
RAM
• RAM
—Read/Write
—Volatile
—Temporary storage
—Static or dynamic
• Basic element of semiconductor memory
is a memory cell
—Exhibits two stable states 0, 1
—Capable of being written (set the state)
—Capable of being read (sense the state)
• The details of the internal organization depend on the IC technology used and is out
of the scope of this course, except for a brief summary
3
Dynamic RAM
• DRAM is made with cells that store data as charge
in capacitors
Dynamic RAM
Structure & Operation
4
Static RAM
• Bits stored as on/off switches
• No charges to leak
• No refreshing needed when powered
• More complex construction
• Larger per bit
• More expensive
• Does not need refresh circuits
• Faster
• Cache
• Digital
—Uses flip-flops
• Transistor arrangement
gives stable logic state
• State 1
— C1 high, C2 low
— T1 T4 off, T2 T3 on
• State 0
— C2 high, C1 low
— T1 T4 on, T2 T3 off
• Address line transistors T5 T6
is switch
• Write – apply value to B &
compliment to B
• Read – value is on line B
5
SRAM v DRAM
• Both volatile
—Power needed to preserve data
• Dynamic cell
—Simpler to build, smaller
—More dense How?
—Less expensive
—Needs refresh
—Larger memory units
• Static
—Faster
—Cache
6
Types of ROM (1/2)
• Read ―mostly‖
—Electrically Erasable (EEPROM)
– Takes much longer to write than read
– Write operation does not need prior erasing of cells
– Only the addressed bytes can be updated
—Flash memory
– Introduced in mid 1980s
– Erase whole memory electrically in few seconds
– Can allow to erase individual blocks but no byte level
erasure
– Can erase a section of memory in one action or flash
– One transistor per bit, so high density
7
Organisation in detail (1/2)
8
Typical 16 Mb DRAM (4M x 4) – Chip Logic
• Horizontal line connects to sel terminal
• Vertical line connects to sense terminal
• Row decoder selects the row
• Column decoder selects the cell in row
• The 22 required address lines are
passed through select logic external to
chip and multiplexed onto 11 pins
Packaging
• 1M x 8 EPROM • 4M x 4 DRAM
• One word per chip package •11 pins used for address
• 20 Address lines needed to address 1 M words • 4 data pins
• 8 Data pins • NC is no connect to make the pins even
9
256kByte Module
Organisation
10