Professional Documents
Culture Documents
This refresh operation is where dynamic RAM gets its name. Dynamic
RAM has to be dynamically refreshed all of the time or it forgets what it is
holding. The downside of all of this refreshing is that it takes time and
slows down the memory.
Static RAM
Static RAM uses a completely different technology. In static RAM, a form
of flip-flop holds each bit of memory. A flip-flop for a memory cell takes
four or six transistors along with some wiring, but never has to be
refreshed. This makes static RAM significantly faster than dynamic RAM.
However, because it has more parts, a static memory cell takes up a lot
more space on a chip than a dynamic memory cell. Therefore, we get less
memory per chip, and that makes static RAM a lot more expensive.
So static RAM is fast and expensive, and dynamic RAM is less expensive
and slower. So static RAM is used to create the CPU's speed-sensitive
cache, while dynamic RAM forms the larger system RAM space.
Types of RAM
The RAM family includes two important memory devices: static RAM (SRAM) and
dynamic RAM (DRAM). The primary difference between them is the lifetime of the
data they store. SRAM retains its contents as long as electrical power is applied to
the chip. If the power is turned off or lost temporarily, its contents will be lost
forever. DRAM, on the other hand, has an extremely short data lifetime-typically
about four milliseconds. This is true even when power is applied constantly.
In short, SRAM has all the properties of the memory we think of when we hear the
word RAM. Compared to that, DRAM seems kind of useless. By itself, it is. However,
a simple piece of hardware called a DRAM controller can be used to make DRAM
behave more like SRAM. The job of the DRAM controller is to periodically refresh the
data stored in the DRAM. By refreshing the data before it expires, the contents of
memory can be kept alive for as long as they are needed. So DRAM is as useful as
SRAM after all.
When deciding which type of RAM to use, a system designer must consider access
time and cost. SRAM devices offer extremely fast access times (approximately four
times faster than DRAM) but are much more expensive to produce. Generally, SRAM
is used only where access speed is extremely important. A lower cost-per-byte
makes DRAM attractive whenever large amounts of RAM are required. Many
embedded systems include both types: a small block of SRAM (a few kilobytes)
along a critical data path and a much larger block of DRAM (perhaps even
Megabytes) for everything else.
Dynamic random access memory
(DRAM)
memory (DRAM) is a type of random access memory that
stores each bit of data in a separate capacitor. As real-world
capacitors are not ideal and hence leak electrons, the
information eventually fades unless the capacitor charge is
refreshed periodically. Because of this refresh requirement, it
is a dynamic memory as opposed to SRAM and other static
memory. Its advantage over SRAM is its structural simplicity:
only one transistor and a capacitor are required per bit,
compared to six transistors in SRAM. This allows DRAM to
reach very high density. Since DRAM loses its data when the
power supply is removed, it is in the class of volatile memory
devices.
Types of DRAM
By function
Asynchronous — independent of clock frequency;
data in and data out are controlled by address
transition
Synchronous — all timings are initiated by the clock
edge(s). Address, data in and other control signals are
associated with the clock signals