main memory -victor frandsen. overview types of memory the cpu & main memory types of ram...

15
Main Memory -Victor Frandsen

Upload: blaise-dalton

Post on 31-Dec-2015

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Main Memory

-Victor Frandsen

Page 2: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection & Correction

Page 3: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Types of Memory Registers Cache Main Memory Secondary Storage (Disks) Off-line Storage (Tape)

Page 4: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Types of Memory Registers Cache Main Memory Secondary Storage (Disks) Off-line Storage (Tape)

} Random Access Memory

Page 5: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Random Access Memory “Random” – all information can be

accessed in the same amount of time.

Types of RAM Static RAM (SRAM) Dynamic RAM (DRAM)

Page 6: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Properties of DRAM A DRAM cell stores each bit on a

capacitor. DRAM are susceptible to premature

discharging.

Page 7: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

The CPU & Main Memory The CPU communicates with Main

Memory through the Memory Controller located in the North Bridge of the Chipset.

Page 8: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Types of DRAM DRAM is commercially available variety of

standards. Two of the most common are: Dual in-line Memory Module (DIMM)

Memory chips & electrical contacts on both sides.

Single in-line Memory Module (SIMM)Memory chips & electrical contacts on only

one side.

Page 9: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

DRAM A single memory module consists of many

DRAM chips. Each DRAM chip consists of supercells

organized in a Rectangular Array. Each supercell contains a certain number

of individual DRAM cells or bits. A chip of 16 supercells, each with 8 bits, is

a 16 x 8 DRAM chip. That chip holds 128 bits.

Page 10: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

DRAM To access a supercell a signal is sent from

the Memory Controller specifying a row. That row is loaded into an Internal Row

Buffer. A subsequent signal is sent specifying a

column. The information of that supercell is sent to

the Memory Controller.

Page 11: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

DRAM A SIMM or DIMM with 8 2^23 x 8 DRAM

chips is a 64MB module. To access a 64-bit doubleword, the

controller converts a memory address into a supercell coordinates (i,j).

That coordinates is sent to the 8 DRAM chips and each corresponding supercell of row i and col j is returned to the controller which forms the 64-bit doubleword.

Page 12: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Enhanced DRAM Fast Page Mode DRAM & Extended Data

Out DRAM (FPM DRAM & EDO DRAM) Synchronous DRAM (SDRAM) Double Data Rate SDRAM (DDR DRAM) DDR2 SDRAM Rambus DRAM (RDRAM)

Page 13: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Error Detection Parity bits are used for error detection. RAM with parity bits have an extra bit per

byte. RAM can use either Odd Parity or Even

Parity. An Even Parity chip turns the parity bit to 0

when the sum of all the 1’s in the byte are even.

Page 14: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Error Correction Codes Parity bits can not correct an error. Error correction codes such as a Hamming

Code can detect and correct single bit errors.

Page 15: Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection

Sources

Computer Architecture and Organization: An Integrated Approach

Miles Murdocca & Vincent Heuring Computer Systems: A Programmers

PerspectiveRandal E. Bryant & David R. O’Hallaron Howstuffworks.com/ram.htm