Top Banner
Random Access Memory What computers use to think with
43

Random Access Memory What computers use to think with.

Dec 14, 2015

Download

Documents

Will Cunard
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Random Access Memory What computers use to think with.

Random Access Memory

What computers use to think with

Page 2: Random Access Memory What computers use to think with.

Running Programs

• Stored on hard disk drive (or other media)

• Copied into RAM from media

• Then the program is run

• CPU can’t get to hard disk drive contents from the Address Bus fast enough

Page 3: Random Access Memory What computers use to think with.

DRAM

• Uses transistor and capacitor to form memory:

Page 4: Random Access Memory What computers use to think with.

Organizing Memory

• Our computer thinks in terms of bits; we think in terms of Bytes.

• 2 GB of RAM is really 2 billion by 8 bits of memory.

Page 5: Random Access Memory What computers use to think with.

Early RAM

• Dual Inline Pin Package (DIPPs)

Page 6: Random Access Memory What computers use to think with.
Page 7: Random Access Memory What computers use to think with.

Parity

• Early memory had a bad habit of forgetting data

• Parity is adding a ninth bit to a memory row for error checking

• Some early memory errors were traced to Alpha waves/particles from substrate

• Current thinking focuses on cosmic rays and no, I did not make this up!

Page 8: Random Access Memory What computers use to think with.

Parity, cont.

• Here’s how it works:

1 0 1 0 0 1 01Even Odd

One’s

Zero’s Ninth bit

Page 9: Random Access Memory What computers use to think with.

Parity, cont.

• Here’s how it works:

1 0 1 0 0 1 01Even Odd

One’s

Zero’s

0

Ninth bit

Page 10: Random Access Memory What computers use to think with.

Parity, cont.

• Here’s how it works:

1 0 1 0 0 1 01Even Odd

One’s

Zero’s

0 1

Ninth bit

Page 11: Random Access Memory What computers use to think with.

Parity, cont.

• Here’s how it works:

1 0 1 0 0 1 01Even Odd

One’s

Zero’s

0 1

1Ninth bit

Page 12: Random Access Memory What computers use to think with.

Parity, cont.

• Here’s how it works:

1 0 1 0 0 1 01Even Odd

One’s

Zero’s

0 1

1 0Ninth bit

Page 13: Random Access Memory What computers use to think with.

Banking

• Memory must be as wide as External Data Bus

• 386 and 486 were 32-bit EDB, so 72-pin was wide enough

• Pentiums are 64-bits wide, so we need two 32’s (32+32=64). Should be matched pair of 72-pin memory, or one 64-bit DIMM

• Total system memory is sum of modules

22

Page 14: Random Access Memory What computers use to think with.

SDRAM

• Synchronous DRAM came along

• Tied to FSB speed (System Clock), so we did not have to wait quite as long

• Faster than EDO in general, overall result is 4 to 6 times faster

• Speeds: 66, 100, 133 (MHz)

• Uses Serial Presence Detect (SPD) chip on each module to set timings

Page 15: Random Access Memory What computers use to think with.

168-pin DIMMsSDRAM

• Dual, or Different signals on opposite sides of module; Synchronous Dynamic RAM

• 64-bits wide – only need one module per bank with Pentium

• Notice two notches to orient module

Page 16: Random Access Memory What computers use to think with.

ECC

• Error Correction Code

• Used in high-end servers

• Unlike Parity, can find and correct one-bit errors; can find two-bit errors but not able to correct

• Uses 8 bits over 64 bits of data

• This one is still around

Page 17: Random Access Memory What computers use to think with.

Registered DRAM

• Uses registers as buffers for control signals

• Again, found in high-end servers

• What we use is UNBUFFERED memory in desktop systems

Page 18: Random Access Memory What computers use to think with.

More Speed

• Rambus developed a method for faster RAM• Had to use two sticks at a time • They did not learn from history: collected a lot of

patents and developed expensive licenses• Intel thought it was great for earliest P4’s• Ran very hot – required a heat spreader• Has gone away except for replacement sticks• Betamaxed: Good technology, small market

share drives it to extinction.

Page 19: Random Access Memory What computers use to think with.

DDR

• AMD went with Double Data Rate SDRAM• Rambus had coined bus speeds (200, 400)• DDR is 184-pins, 64-bits wide, one off-center notch• DDR uses throughput volumes:

FSB Effective FSB Designation

100 200 DDR200/PC 1600

133 266 DDR266/PC 2100

166 333 DDR333/PC 2700

200 400 DDR400/PC 3200

Page 20: Random Access Memory What computers use to think with.

Next Stop

• Dual-Channel Architecture

• Get some data from one module, some from another module

• Theory is great; used for about six months

• Have to use matched pairs; total system memory is sum of modules

• Still supported today

Page 21: Random Access Memory What computers use to think with.

DDR2

• Next generation of DDR – faster

• 240-pins, 64-bit wide, won’t fit in DDR slot

• Electrical improvements allow for faster speeds and less power consumption

• Dual channel still supported

• PC2-3200 to PC2-8000

Page 22: Random Access Memory What computers use to think with.

DDR3

• 240-pin module – not compatible with DDR2

• Higher speeds, more efficient architecture, around 30% lower power consumption

Page 23: Random Access Memory What computers use to think with.

DDR3

• Some modules include XMP (Extended Memory Profile) – allows user to overclock RAM

• Others support Triple Channel Memory (stack three modules together logically)

• Doubles the buffer from 4 to 8 bits to get bandwidth improvements

• PC3-6400, 8500, 10667, 12800

Page 24: Random Access Memory What computers use to think with.

Double Sided Memory

• Memory can come either single-sided,

• Or double-sided

• Some motherboards have trouble with double-sided memory

Page 25: Random Access Memory What computers use to think with.

CAS

• Column Array Strobe – One element of the fetch-from-memory process; measured in FSB clock ticks. Think of it as RAM getting up off the couch.

• Another name is Latency

• There are four or five different “tech” numbers used with RAM – not to worry about them; the gamers will

Page 26: Random Access Memory What computers use to think with.

Buffering

• Buffering, or Registered, DRAM is used by servers using large amounts of memory

• Extra chip on memory module, rather like a cache

• We don’t use it in desktop systems; we use non-ECC and unbuffered DRAM

Page 27: Random Access Memory What computers use to think with.

Installing DIMMs

• DIMMs go straight down into slots, held in place by tabs at each end

Page 28: Random Access Memory What computers use to think with.

Do you need memory?

• Probably the quickest and cheapest speed improvement you can make – to a point.

SystemSpeed

Amount of RAM

Win 98 – 128 MB, 512 MaxWin 2000 – 256 MBWin XP – 1 Gig, 2-3G MaxVista and Win 7 – 2 Gig, 4G Max

Page 29: Random Access Memory What computers use to think with.

Easier than CPU-Z!

Page 30: Random Access Memory What computers use to think with.
Page 31: Random Access Memory What computers use to think with.

Replacing/Upgrading Memory

• Beware the evil ESD! And that 5v on the (ATX) motherboard.

• Check what you have, what your motherboard supports, empty slots

• Get the right stuff for your application

• Try not to mix speeds or capacities

Page 32: Random Access Memory What computers use to think with.

6

Page 33: Random Access Memory What computers use to think with.
Page 34: Random Access Memory What computers use to think with.
Page 35: Random Access Memory What computers use to think with.

If it doesn’t add up

• Many motherboards have “on-board video”

• System properties will show less than what you installed because 8 to 64 MB is set aside for video use. That’s where the difference lies.

• If you examine the numbers closely, you may find 386Kb “missing” as it is turned off for Upper Memory Area (BIOS).

Page 36: Random Access Memory What computers use to think with.
Page 37: Random Access Memory What computers use to think with.
Page 38: Random Access Memory What computers use to think with.

Troubleshooting RAM

• Parity errors create a Non-Maskable Interrupt (NMI). System halts.

• Can also get other Blue Screens of Death (BSOD) with memory addresses (in Hex).

• True memory errors will show same address each time; other system errors will give different addresses (think about changing the power supply).

Page 39: Random Access Memory What computers use to think with.
Page 40: Random Access Memory What computers use to think with.

Memory Map

Conventional Memory

Upper Memory

High Memory 64 KB

Extended Memory

(for a while was ExpandedMemory)

0

640 KB

1 MB

2 GB

384 KB

Page 41: Random Access Memory What computers use to think with.

Bank A slots

Bank B slots

Page 42: Random Access Memory What computers use to think with.

RAM Pricing

• Overall, memory tends to decrease in price over time. We have seen this as DDR3 dropped from $300/module to $15/module.

• Memory gets “pushed around” more than any other component – Vista drove prices up for six months, so did Win 7.

• There are only a limited number of factories for RAM and if one breaks… up goes the prices.

Page 43: Random Access Memory What computers use to think with.

Troubleshooting

• Single bit failure – NMI and system halts

• Module failure – Series of beeps at startup that continue until you turn system off

• Sometimes system just will not POST

• Keep some good memory handy

• Remember the short parts list: unplug hard disk drive, optical, pull expansion cards and try restart.