Static & Dynamic RAM
Static & Dynamic RAM
Introduction
The memory constructed with the help of transistors is known as
semiconductor memory.
Depending on the technology used to construct a RAM, there are two types of
RAM :
SRAM: Static Random Access Memory.
DRAM: Dynamic Random Access Memory
STATIC Memories
Memories that consist of circuits capable of retaining their state as
long as power is applied are known as static memories.
STATIC Memories
Two inverters are cross-connected to form a latch.
When the word line is at ground level, the transistors are turned off
and the latch retains its state
In order to read the state of the SRAM cell, the word line is activated to
close switches T1 and T2
STATIC Memories
If the cell is in state 1, the signal on bit line b is high and the signal on bit
line b’ is low. The opposite is true if the cell is in state 0.
The Sense/Write circuit at the end of the two bit lines monitors their state
and sets the corresponding output accordingly.
During a Write operation, the Sense/Write circuit drives bit lines b and b’
instead of sensing their state.
It places the appropriate value on bit line b and its complement on b’ and
activates the word line.
This forces the cell into the corresponding state, which the cell retains
when the word line is deactivated
Static RAMs
Continuous power is needed for the cell to retain its state.
When power is restored, the latch settles into a stable state, but not
necessarily the same state the cell was in before the interruption.
SRAMs are said to be volatile memories because their contents are lost
when power is interrupted.
Static RAMs can be accessed very quickly. Access times on the order of
a few nanoseconds are found in commercially available chips.
Dynamic RAMs
Static RAMs are fast, but their cells require several transistors.
But, these simpler cells do not retain their state for a long period,
unless they are accessed frequently for Read or Write operations.
Memories that use such cells are called dynamic RAMs (DRAMs).
Dynamic RAMs
Information is stored in a dynamic memory cell in the form of a charge
on a capacitor, but this charge can be maintained for only tens of
milliseconds.
Since the cell is required to store information for a much longer time,
its contents must be periodically refreshed by restoring the capacitor
charge to its full value.
After the transistor is turned off, the charge remains stored in the capacitor,
but not for long. The capacitor begins to discharge.
The information stored in the cell can be retrieved correctly only if it is read
before the charge in the capacitor drops below some threshold value.
A sense amplifier connected to the bit line detects whether the charge stored
in the capacitor is above or below the threshold value
Dynamic RAMs
If the charge is above the threshold, the sense amplifier drives the bit
line to the full voltage representing the logic value 1.
If the sense amplifier detects that the charge in the capacitor is below
the threshold value, it pulls the bit line to ground level ensuring
capacitor has no charge- representing logic value 0
Since the word line is common to all cells in a row, all cells in a
selected row are read and refreshed at the same time.
Dynamic RAMs
15x215
decoder
15 bit row
address
215x211x23
11 x211 decoder
11 bit column
address
Dynamic RAMs
A 256-Megabit DRAM chip, configured as 32M × 8, is given.
The cells are organized in the form of a 16K × 16K array.(214 rows and 214
columns
The 16,384 cells in each row are divided into 2,048 groups of 8, forming 2,048
bytes of data.
Therefore, 14 address bits are needed to select a row, and another 11 bits are
needed to specify a group of 8 bits in the selected row.
The high-order 14 bits and the low-order 11 bits of the address constitute the
row and column addresses of a byte, respectively.
Dynamic RAMs
During a Read or a Write operation, the row address is applied first. (A24-11)
This address is now fed to the row decoder, because there are number of
rows and we need to select one particular row from set of these rows
The timing of the operation of the DRAM is controlled by the RAS and
CAS signals.
Another feature available on many dynamic memory chips is that once the
row address is loaded, successive locations can be accessed by loading
only column addresses.(fast page mode)
Because of their high density and low cost, dynamic memories are widely
used in the main memory units of computers.
SRAM vs.DRAM
Both static and dynamic RAMs are volatile, that is, it will
retain the information as long as power supply is applied.
And the sense/write circuits and these latches are connected to the
data input register and data output register.
Synchronous DRAM
Data input register will be required when we have to transfer a data
from a data bus to this particular cell.
In response to the column address the data present in the latches of the
selected columns are transferred to the data output registers.
From the data output registers the data is then available in the data bus
and finally reaches the processor.
In response to the column address, the data present in the data bus is
made available to the latches through the data input register.
Synchronous DRAM
And then finally, the data is written to the particular cell.
New data are placed on the data lines at the rising edge of each clock
pulse.
Structure of Larger Memories
We have discussed the basic organization of memory circuits as they may
be implemented on a single chip.
We will see how this memory can be implemented using 512K × 8 static
memory chips.
Since the chip is 512k x 8 each chip contains 2 19 rows and 23=8 columns.
When this input is set to 1, it enables the chip to accept data from or to place data on its
data lines.
Only the selected chip places data on the data output line, while all other outputs are
electrically disconnected from the data lines.
Twenty-one address bits are needed to select a 32-bit word in this memory.
The high-order two bits of the address are decoded to determine which of the four rows
should be selected.
The remaining 19 address bits are used to access specific byte locations inside each chip
in the selected row.
The R/W inputs of all chips are tied together to provide a common Read/Write control line
Example 2:
Construct a 4M X 16 memory module using 256K X 4 memory chips
Since the circuit has 16 rows 4 bits are needed to select a row of chips.
But there are many applications requiring memory devices that retain the stored
information when power is turned off.
Eg: storing bootstrap loader which loads OS when computer is turned on.
Allows the stored data to be erased and new data to be written into it.
Exposing the chip to ultraviolet light erases the entire contents of the chip.
Read-only Memories
Electrically Erasable Programmable Read-Only Memory
(EEPROM)
The entire contents of the chip are erased when exposed to ultraviolet light
It does not have to be removed for erasure, and it is possible to erase the cell
contents selectively.
different voltages are needed for erasing, writing, and reading the stored
Read-only Memories
Flash Memory
Uses an approach similar to EEPROM technology.
They have shorter seek and access time, resulting in faster response.
They have lower power consumption, making them suitable for battery
driven applications.
Disadvantage is smaller capacity and high cost per bit when compared to
hard drives