Lec 05 - Memory
DRAM
The basic cell used in DRAM is shown as follows:

This structure is known as 1T1C (One Transistor, One Capacitor). At the end of the Bit Line (BL), we have a sense amplifier (we will discuss its usage later).
Refresh
As we know, DRAM uses a capacitor to store bit information:
When the capacitor is charged, a 1 is stored (voltage ).
When it is discharged, a 0 is stored (voltage ).
Since the access transistor controlled by the Word Line (WL) cannot isolate the capacitor completely, leakage current exists. Consequently, the charge stored in the capacitor will slowly leak away. This is why we need to recharge (refresh) the capacitor periodically.
Steps to Refresh
Precharge: Preload all Bit Lines to .
Access: Activate one Word Line (only one at a time) The NMOS access transistor turns ON.
Charge Sharing: The sense amplifier at the end of each BL detects the voltage change on the Bit Line caused by the capacitor connecting to it.
If 1 was stored: Charge moves from the capacitor to the Bit Line, causing the Bit Line voltage to rise slightly.
If 0 was stored: Charge moves from the Bit Line to the capacitor, causing the Bit Line voltage to drop slightly.
Sensing & Restoration: The sense amplifier amplifies this small voltage difference.
If the voltage increased, it pulls the Bit Line up to a constant . This recharges the capacitor, refreshing the 1.
If the voltage decreased, it pulls the Bit Line down to . This fully discharges the capacitor, refreshing the 0.
Read
The Read operation in DRAM is destructive, meaning the act of reading discharges the cell. Therefore, a "Read" is essentially the same process as the "Refresh" described above. Once the Sense Amplifier has sensed and latched the data (driving the BL to or ), the data is effectively read and restored simultaneously. We simply read the voltage state of the Bit Line.
Write
To write to a DRAM cell:
The row is activated, and the sense amplifiers latch the current values (effectively a refresh/read cycle begins).
To write new data, the write driver circuits overpower the sense amplifiers, driving the Bit Lines to the desired value ( for 1, for 0).
This forces the capacitor to charge or discharge to the new logic level.
SRAM
We start with the bistable element. The following is a classic bistable circuit composed of two cross-coupled inverters. If is 1,

This bistable element can store 1 bit of information. However, the problem is: how do we write new information into it? To solve this, we add access transistors to build the 6T SRAM bit cell shown below:

Read
Precharge: Precharge both Bit Lines ( and ) to .
Access: Activate the Word Line () to high. This turns on the access transistors ( and )
Sensing: The internal node storing 0 will pull down the corresponding Bit Line.
For example, if , it will pull down towards the ground.
The other side () will leave at .
Output: A sense amplifier reads the voltage difference between and to determine the stored bit.
Read Stability Constraint
During the read operation, a potential problem arises. The Bit Line is precharged to , and the internal node is at . When the access transistor () turns on, it forms a voltage divider with the driver transistor ().
We must ensure that the voltage at node does not rise high enough to flip the state of the other inverter. The driver () must be stronger than the access transistor ().

We model the transistors as resistors ( for the driver, for the access). Since acts as a voltage source of , the voltage at node is determined by the voltage divider rule:
To prevent the cell from flipping, must stay below the switching threshold () of the other inverter ():
Since we want to be very low, we require . In transistor design, resistance is inversely proportional to width (). Therefore, the Driver () must be wider than the Access ().
This defines the Cell Ratio (CR):
Write
Drive Bit Lines: Drive one Bit Line to and the other to (depending on the value you want to write).
Example: To write a 0 (when was previously 1), we force and .
Access: Activate the Word Line ().
Force State: The access transistor connected to the . Bit Line must overpower the internal PMOS pull-up transistor to flip the cell.
Write Ability Constraint
During the write, the access transistor () is trying to pull node down to 0, while the PMOS pull-up transistor () is trying to keep it up at . The access transistor must be stronger.

We model the transistors as a voltage divider between the Access Transistor (, connected to ) and the PMOS Pull-Up (, connected to ).
To successfully write a 0, we must pull below the switching threshold () of the inverter () so the feedback loop flips:
This implies that must be smaller than (Access requires lower resistance than Pull-Up). In other words, must be very large so that is very low. Therefore, the Access transistor must be stronger (wider) than the PMOS Pull-Up.
This defines the Pull-up Ratio (PR):
NAND Flash
The building blocks of NAND Flash are the Floating Gate (FG) and the Floating Gate Transistor. It is essential to understand their working principles before analyzing the NAND Flash architecture.
Floating Gate Physics
If a sufficiently strong electric field is applied, the Fowler-Nordheim (FN) Tunneling effect occurs: electrons pass through the oxide insulator and get trapped in the conductive floating gate.
Conversely, if a strong electric field is applied in the opposite direction, the electrons are pushed out of the floating gate.
Floating Gate Transistor
By placing a floating gate between the control gate and the channel of an NMOS transistor, we create a floating gate transistor.

We can perform the following three operations on the floating gate transistor:
Program (Write 0): Apply a high programming voltage () to the control gate and to the substrate. Electrons tunnel into the floating gate and are stored there. This increases the threshold voltage ().
Erase (Write 1): Apply a high erase voltage (, usually the same as ) to the substrate and to the control gate. This creates an opposite electric field, forcing electrons out of the floating gate. This decreases the threshold voltage.
Read: We use the shift in threshold voltage () to determine the state. Apply a reference voltage (usually ) to the gate.
If electrons are present (Programmed/0): The negative charge in the FG cancels out the gate voltage. The effective voltage is below the of the transistor. The device is in cutoff (does not conduct).
No conduction Electrons present Read 0.
If no electrons are present (Erased/1): There is no cancellation. The NMOS turns ON.
Conduction No electrons Read 1.
SLC/MLC/TLC/QLC
In the section above, the floating gate has only 2 options:
Has electrons (0)
No electrons (1)
This is called SLC (Single Level Cell). The other types are:
MLC (Multi-Level Cell): 1 floating gate stores 4 states (2 bits).
TLC (Triple-Level Cell): 8 states (3 bits).
QLC (Quad-Level Cell): 16 states (4 bits).
The circuit diagram for NAND Flash is shown below:

The diagram above represents a Block. It is composed of several Strings, where each string is connected to one Bit Line.
SSL (String Select Line) and GSL (Ground Select Line) control standard NMOS transistors at the top and bottom of the stack.
The remaining transistors, controlled by different Word Lines (WLs), are floating gate transistors.
All floating gate transistors connected to the same Word Line form a Page.
Read
In NAND Flash, read operations are performed at the Page granularity.
Select String: Apply high voltage to SSL and GSL to turn on the selection transistors.
Bypass Unselected Cells: Apply a Pass Voltage () to all other Word Lines (the ones we are not reading).
Note: is a voltage high enough to turn on a transistor regardless of whether its floating gate is charged (programmed) or empty (erased), but not high enough to trigger tunneling (programming). This turns the unselected cells into "pass-through" wires.
Read Selected Cell: Apply the read reference voltage () to the specific Word Line we are reading.
If the Floating Gate has electrons (programmed), the transistor does not conduct.
If the Floating Gate is empty (erased), the transistor conducts.
Sense: The sense amplifiers detect if current flows through the string (Bit Line voltage drops) or not (Bit Line stays high).
Write
Writing (Programming) is also performed at the Page granularity. Note that we can only program 1s to 0s. To turn 0s back to 1s, we must Erase (see below).
Setup: Apply high voltage to SSL (to connect the string to BL) and to GSL (to disconnect from ground).
Data Setup: Set the Bit Lines based on the data to be written:
To Write 0 (Program): Set Bit Line to 0V. This creates a high potential difference between the Gate and the Channel, allowing tunneling.
To Write 1 (Inhibit): Set Bit Line to . This raises the channel potential, reducing the voltage difference between the Gate and Channel so that tunneling does not occur (Program Inhibit).
Pass Voltage: Apply to the unselected Word Lines (to pass the Bit Line voltage down the string).
Program Voltage: Apply the Programming Voltage (, a very high voltage, e.g., 20V) to the specific Word Line we are writing to.
If BL is 0V: Electrons tunnel into the floating gate Write 0.
If BL is High: No tunneling occurs State remains 1.
Erase
Erase operations in NAND Flash are performed at the Block granularity (you cannot erase just one Page).
Apply Erase Voltage: Apply a high Erase Voltage () to the common substrate (p-well).
Ground Gates: Set all Word Lines (control gates) in the block to .
Result: Electrons in the floating gates are attracted to the substrate (tunneling out of the FG) due to the strong electric field. All cells in the block are reset to 1.
Last updated