Professional Documents
Culture Documents
Computer Architecture
WHAT IS RAM?
SAM stores data as a series of memory cells that can only be
RAM VS SAM
In the most common form of computer memory, dynamic random
SOJ SOJ packages got their name because the pins coming out of the chip are
(SMALL shaped like the letter "J". SOJs are surface-mount components - that is,
OUTLINE J-LEAD)
they mount directly onto the surface of the PCB.
TSOP TSOP packaging, another surface-mount design, got its name because the
(THIN SMALL package was much thinner than the SOJ design. TSOPs were first used to
OUTLINE PACKAGE)
make thin credit card modules for notebook computers.
Unlike DIP, SOJ, and TSOP packaging, CSP packaging doesn't use pins
to connect the chip to the board. Instead, electrical connections to the
board are through a BGA (Ball Grid Array) on the underside of the
CSP package. RDRAM (Rambus DRAM) chips utilize this type of packaging.
(CHIP SCALE PACKAGE)
A capacitor is like a small bucket that is able to store electrons. To
store a 1 in the memory cell, the bucket is filled with electrons. To
store a 0, it is emptied.
The problem with the capacitor's bucket is that it has a leak. In a
is
that it takes time and slows down the memory.
cell.
Column Address Select
• Identifying each row and column (row address select and column
address select)
• Keeping track of the refresh sequence (counter)
• Reading and restoring the signal from a cell (sense amplifier)
• Telling a cell whether it should take a charge or not (write enable)
Static RAM is fast and expensive, and dynamic RAM is less expensive
and slower. Static RAM is used to create the CPU's speed-sensitive cache,
while dynamic RAM forms the larger system RAM space.
Memory chips in desktop computers originally used a pin
configuration called dual inline package (DIP). This pin
configuration could be soldered into holes on the
computer's motherboard or plugged into a socket that was
soldered on the motherboard. This method worked fine when
computers typically operated on a couple of megabytes or less
of RAM, but as the need for memory grew, the number of chips
needing space on the motherboard increased.
The Problem:
address.
3. Control lines are used to operate the memory IC. Read/Write (R/W)
line defines whether data is being read from the specified address or
written to it. Chip Select (CS) signal makes a memory IC active or inactive
(this ability to “disconnect” from a circuit is what allows a myriad of
memory ICs to all share common address and data signals in the
computer). Some memory types require additional signals, such as Row
Address-Select (RAS) and Column Address-Select (CAS), for refresh
operations.
Most memory available today is highly
reliable. Most systems simply have the
memory controller check for errors at start-up
and rely on that. Memory chips with built-in
error-checking typically use a method known
as parity to check for errors. Parity chips
have an extra bit for every 8 bits of data. The
way parity works is simple.
Parity Bits
Let's look at even parity first.
When the 8 bits in a byte receive data, the chip adds up the
total number of 1s. If the total number of 1s is odd, the parity bit
is set to 1. If the total is even, the parity bit is set to 0. When the
data is read back out of the bits, the total is added up again and
compared to the parity bit.
If the total is odd and the parity bit is 1, then the data is
assumed to be valid and is sent to the CPU. But if the total is
odd and the parity bit is 0, the chip knows that there is an error
somewhere in the 8 bits and dumps the data. Odd parity works
the same way, but the parity bit is set to 1 when the total
number of 1s in the byte are even.
Parity Bits
This mechanism enables the detection of single bit errors, because if
one bit gets flipped due to line noise, there will be an incorrect number of
ones in the received data. In the two examples above, B's calculated parity
value matches the parity bit in its received value, indicating there are no
single bit errors. Consider the following example with a transmission error in
the second bit:
There is a limitation to parity schemes. A parity bit is only guaranteed to
detect an odd number of bit errors. If an even number of bits have errors,
the parity bit records the correct number of ones, even though the data is
corrupt. B observes even parity, as expected, thereby failing to catch the two
bit errors.
Parity vs. ECC
The problem with parity is that it discovers errors but does nothing
to correct them. If a byte of data does not match its parity bit, then the
data are discarded and the system tries again. Computers in critical
positions need a higher level of fault tolerance. High-end servers often
have a form of error-checking known as error-correction code (ECC).
Like parity, ECC uses additional bits to monitor the data in each byte.
The difference is that ECC uses several bits for error checking -- how
many depends on the width of the bus -- instead of one.
ECC memory uses a special algorithm not only to detect single bit
errors, but actually correct them as well. ECC memory will also detect
instances when more than one bit of data in a byte fails. Such failures
are very rare, and they are not correctable, even with ECC. The majority
of computers sold today use nonparity memory chips. These chips do
not provide any type of built-in error checking, but instead rely on the
memory controller for error detection.
SIMM and DIMM
By the time 386 systems took hold in the PC
industry, proprietary memory modules had
been largely abandoned in favor of the
“Memory Module”.
SIMM
A SIMM (Single Inline Memory Module) is light, small,
and contains a relatively large block of memory, but
perhaps the greatest advantage of a SIMM is
standardization. Using a standard pin layout, a SIMM from
one PC can be installed in any other PC. The 30-pin SIMM
provides 8 data bits, and generally holds up to 4MB of
RAM. Later it fell short when providing more memory to
later-model PCs. The 72-pin SIMM provides 32 data bits,
and it could hold up to 32MB (or more). 72-pin SIMM
highlights the use of Error-Correction Code (ECC) instead
of parity.
DIMM
DIMM are identical to SIMMs, but they are larger. In
SIMM each electrical contact on the SIMM is tied together
between the fronts and back, the DIMM keeps front and back
contacts separate—effectively doubling the number of contacts
available on the device. For example, in a 72-pin SIMM, there
are 72 electrical contacts on both sides of the device but are
tied together, so there are only 72 signals. On the other hand, a
DIMM keeps the front and back contacts electrically separate.
Today, virtually all DIMM versions provide 168 pins (84 pins on
each side). DIMMs are appearing in high end 64-bit data-bus
PCs (such as Pentiums and PowerPC RISC workstations).
SIMMs and DIMMs referred to as composite or non-
composite modules. These terms are used infrequently to
describe the technology level of the memory module. A
composite module uses older, lower-density memory; so more
I.C’s are required to achieve the required storage capacity.
Conversely, a non-composite module uses newer memory
technology; so fewer ICs are needed to reach the same storage
capacity.
Types of RAM
SRAM Static random access memor y uses multiple transistor s,
typically
Dynamic rfour andom to six,
accessfor each
memor memor
y hasymemorcell but doesn't
y cells with have
a
DRAM
a capacitor in each cell. It is used primarily for cache.
paired
FPM DRAM Fast pa ge mode dynamic random access memor y was the
transistor
original and capacitor requiring constant refreshing.
EDO DRAM Extended data-out dynamic random access memor y does
form
not of DRAM. It waits through the entire process of locating a bit
wait
SDRAM Synchronous dynamic random access memor y takes
of
fordata
all ofby column
the and row
processing of and first
the thenbit
reading
before the bit before
continuing toitthe
starts
advantage of the burst mode concept to greatly improve
on
nextthe next
one. Asbit. Maximum
soon as the transferof rate to L2 cache is
performance. It does thisaddress
by staying the
on thefirst bit containing
row is located, EDO
the
approximately
DRAM begins 176 MBps.
requested bit looking for the
and moving nextthrough
rapidly bit. It is the
about five percent
columns, readingfaster
than
each FPM.
bit asMaximum transfer
it goes. The rate
idea is thattomost
L2 cacheof theistime
approximately
the data 264
MBps.
needed by the CPU will be in sequence. SDRAM is about five
percent faster than EDO RAM and is the most common form in
desktops today. Maximum transfer rate to L2 cache is
approximately 528 MBps.
Types of RAM
DDR Double data rate synchronous dynamic RAM is just like
SDRAM
RDRAM SDRAM
Rambusexcept that is
dynamic has higher
r andom bandwidth,
access memormeaning
y is a
Cr edit greater
rCredit
adical speed.
depar
card Maximum
tur e is
memory fr om transfer rate
the previous
a proprietary toDRAM
L2 cache is
architecture.
self-contained DRAM
Car d approximately
Designed
memory module1,064
that MBps
by Rambus, RDRAM
plugs (for
intoDDR
uses aSDRAM
Rambus
a special 133
slot MHZ).
inline
for use cards
in
PCMCIA Another self-contained DRAM module for notebooks,
Memor
Memor y y memor
notebook y module
are not(RIMM),
computers.
of this type proprietary w hich is similar
and should workinwith
size and
any
Car d pin configur
notebook ation whose
computer to a standard DIMM.
system bus Its usethe
matches of a
special
memoryhigh-speed data bus called the Rambus channel.
card's configuration.
RDRAM memory chips work in parallel to achieve a data
rate of 800 MHz, or 1,600 MBps. Since they operate at such
high speeds, they generate much more heat than other
types of chips. To help dissipate the excess heat Rambus
chips are fitted with a heat spreader, which looks like a
long thin wafer.
Types of RAM
CMOS RAM CMOS RAM is a ter m for the small amount of
VRAM memor y used
V ideoRAM, by known
also your as multipor t dynamic
computer and some
r andom access memor other devices is
y (MPDRAM), to ar emember
type of RAM
things
used like har dfor
specifically disk settings.T
video adapters his memor
or 3-D y uses a
accelerators.
small batter y part
The "multiport" to prcomes
ovide from
it with
the the
fact power
that VRAMit needs
to maintain
normally the independent
has two memor y contents.
access ports instead of one,
allowing the CPU and graphics processor to access the
RAM simultaneously. VRAM is located on the graphics card
and comes in a variety of formats, many of which are
proprietary. The amount of VRAM is a determining factor in
the resolution and color depth of the display. VRAM is also
used to hold graphics-specific information such as 3-D
geometry data and texture maps. True multiport VRAM
tends to be expensive, so today, many graphics cards use
SGRAM (synchr onous g r aphics RAM) instead.
Perfor mance is near l y the same, but SGRAM is
cheaper.
Memory Techniques
Pa ged T his appr oach basicall y divides system RAM into
memor y
Inter leaved small g r oups
Interleaved memory combines two banks of memory
memor y called
into one.pa gesfirst
The fr om 512 bytes
portion is evento sever
while thealsecond
KB long.
Memor y-mana
portion is odd—so gement
memorycircontents
cuitr y on
arethe
alternated
motherboar
between these d allows
two areas.subsequent
This allowsmemor
a memoryy access
accesses
in the second onportion
the same pa ge
to begin to bethe
before accomplished
memory
with zer
access inothe
wait
firststates.
portionIf the
has subsequent
finished. access
Interleaving
occur
doubles s memory
outside performance.
of the cur r ent
Thepa ge oneisor
problem mor
that e
you
wait states twice
must provide mightthe be amount
added ofw hile
memorythe as
new pa ge
matched
is found.
pairs. Most PCs that use interleaving will allow you to
add memory one bank at a time, but interleaving will be
disabled and system performance will suffer.
Memor y Cache is a small amount of very fast SRAM, which
Caching forms an interface between the CPU and DRAM. The
SRAM operates on the order of 5 to 15 ns, which is fast
enough to keep pace with a CPU using zero wait states.
A cache-controller IC on the motherboard keeps track
of frequently accessed memory locations (and
predicted memory locations), and copies those contents
into cache. When a CPU reads from memory, it checks
the cache first. If the needed contents are present in
cache (cache hit), the data is read at zero wait states. If
the needed contents are not present in the cache
(cache miss), the data must be read directly from DRAM
at a cost of one or more wait states.
Memory Speed and Wait States
All memory is rated in terms of speed—specifically, access time.
Access time is the delay between the time data in memory is successfully
addressed, to the point at which the data has been successfully delivered to
the data bus.
A wait state orders the CPU to pause for one clock cycle to give
memory additional time to operate. Typical PCs use one wait state,
although very old systems might require two or three. The latest PC designs
with caching might be able to operate with no (zero) wait states. More wait
states result in lower system performance. Zero wait states allow optimum
system performance.
There are ways of selecting wait states. First, the number of wait states
might be fixed. Wait states might be selected with one or more jumpers on
the motherboard. Current systems, Pentium computers, place the wait state
control in the CMOS setup routine. You might have to look in an “advanced
settings” area to find the entry.When optimizing a computer, you should be
sure to set the minimum number of wait
states.
How Program instructions
transfer in and out of RAM
When you start a computer, certain operating system files are loaded into RAM
From hard disk. The operating system interface displays the user interface on screen
How Program instructions
transfer in and out of RAM
When you start a Web browser, the program instruction are loaded into RAM from
The hard disk. The Web browser instructions and certain operating system instruction
are inside the RAM. The Web browser window is displayed on screen.
How Program instructions
transfer in and out of RAM
Hello
Word processing instructions
Web browser and word processing program windowsWWW
World!
When you start a Web processing program, the program instruction are loaded into
RAM from the hard disk. The word processing program along with Web browser and
certain operating system instruction are inside the RAM. The Web browser window
is displayed on screen.
How Program instructions
transfer in and out of RAM
Hello
World!
Web browser
instructions
are being removed Web browser window
from RAM Is no longer displayed
on screen
When you quit a program such as a Web browser, its program instructions are
removed from RAM. The Web Browser window is no longer displayed on screen.
How much RAM do you need?
RAM and OS Requirements
The amount of RAM listed for each
system is estimated for normal usage
Windows XP 128 MB (minimum) – accessing the Internet, word
256 MB processing, standard home/office
Windows Vista 512 MB (minimum)
(recommended) applications and light entertainment.
1 GB (recommended) If you do computer-aided design
Windows 95/98 32 MB (minimum) (CAD), 3-D modelling/animation or
64 MB heavy data processing, or if you are
Windows 64 MB (minimum) a serious gamer, then you will most
(recommended)
NT/2000 128 MB likely need more RAM. You may also
Linux 4 MB (minimum) need more RAM if your computer
(recommended)
Mac OS X 512 MB acts as a server of some sort (Web
(recommended) pages, database, application, FTP or
network).
How to Install RAM
Most of the time, installing RAM is a very simple and
straightforward procedure. The key is to do your research.
Here's what you need to know:
• How much RAM you have
• How much RAM you wish to add
• Form factor
• RAM type
• Tools needed
• Warranty
• Where it goes
RAM is usually sold in multiples of 16
megabytes: 16, 32, 64, 128, 256, 512, 1024
(which is the same as 1GB). This means that if
you currently have a system with 64 MB RAM
and you want at least 100 MB RAM total, then
you will probably need to add another 64 MB
module.
Once you know how much RAM you want, check to see
what form factor (card type) you need to buy. You can find
this in the manual that came with your computer, or you can
contact the manufacturer. An important thing to realize is that
your options will depend on the design of your computer. Most
computers sold today for normal home/office use have DIMM
slots. High-end systems are moving to RIMM technology, which
will eventually take over in standard desktop computers as well.
Since DIMM and RIMM slots look a lot alike, be very careful to
make sure you know which type your computer uses. Putting
the wrong type of card in a slot can cause damage to your
system and ruin the card.
You will also need to know what type of RAM is
required. Some computers require very specific types
of RAM to operate. For example, your computer may
only work with 60ns-70ns parity EDO RAM. Most
computers are not quite that restrictive, but they do
have limitations. For optimal performance, the RAM
you add to your computer must also match the
existing RAM in speed, parity and type. The most
common type available today is SDRAM.
Additionally, some computers support Dual Channel RAM configuration
either as an option or as a requirement. Dual Channel means that RAM
modules are installed in matched pairs, so if there is a 512MB RAM card
installed, there is another 512 MB card installed next to it. When Dual
Channel is an optional configuration, installing RAM in matched pairs
speeds up the performance of certain applications. When it's a requirement,
as in computers with the Mac G5 chip(s), the computer will not function
properly without matched pairs of RAM chips.
Sources and References
• www.scribd.com
• www.HowStuffWorks.com
• www.en.wikipedia.org
• www.ehow.com
• Google Image Search
• The Ultimate RAM Guide by Kingston