Memory

Volatile Memory Summary
Memory Layout & Cost Speed Implementation Insights Transistor Function
SRAM Larger (6T)
High Cost
Very Fast CPU Cache: Demands raw speed. Small capacity (KB/MB) justifies cost. High R/W endurance. Store data & control signal transfer.
DRAM Smaller (1T, 1C)
Low Cost
Slower
(Refresh)
System RAM: OS/Apps need massive capacity (GBs); SRAM is too expensive. Handles heavy R/W cycles. Access switch to charge/discharge data capacitor.
Non-Volatile Memory Summary
Memory Layout & Arch. Cost / Cap. Erasure / Granularity Implementation Insights
EPROM 1T. Needs quartz window for UV. High
Low Cap.
Very Slow (∼\sim15m)
Full Chip Erase
Legacy storage; rarely used today.
EEPROM 2T (Storage + Access). Large footprint. Very High
Very Low
Slow (∼\sim5ms/byte)
Byte-level erase
Micro-storage: Saves small system variables. 2T isolates bytes.
NOR Flash 1T. Parallel wiring. Dedicated buses. Medium
Medium Cap.
Moderate (∼\sim1s/blk)
Block Erase
Boot Memory: Parallel wiring allows random access & XIP.
NAND Flash 1T. Series strings. Multiplexed I/O. Very Low
Very High
Fast (∼\sim1.5ms/blk)
Page write, Block erase
SSDs/Storage: Series wiring maximizes density. No XIP.
Storage Architecture Comparison: SSD vs. HDD
Feature Solid-State Drive (SSD) Hard Disk Drive (HDD) Implementation Insights
Mechanics & Weight Lighter, with less/no moving parts. Heavier, relies on mechanical spinning platters and read/write heads. SSD Advantage: Highly resistant to physical shock and ideal for portable electronics (laptops/phones).
Transfer Rate Higher (purely electronic memory access). Lower (bottlenecked by mechanical seek time and disk RPM). SSD Advantage: Drastically faster OS boot times and application loading.
Cost per Bit Higher. Lower. HDD Advantage: The most cost-effective solution for massive, terabyte-scale bulk storage and backups.
Erase Cycles Finite (Flash memory cells physically degrade with repeated writes). Infinite (Magnetic polarity can be flipped endlessly without wear). HDD Advantage: Superior for systems that require constant, heavy, 24/7 data rewriting (e.g., security camera DVRs).

Volatile

Data lost when electric power is removed. Used as system memory.

Non-volatile

Data is retained even if electric power is removed. Used as storage memory.
Floating Gate Transistor (FGT)

image

image

image

Erasable Programmable Read-Only Memory (EPROM) / Electrically Erasable PROM (EEPROM)
Implementation of the FGT.

Flash
Uses FGT technology.

NOR Flash
Used mainly as system memory.
Has multiple Address and Data lines.

image

FGT cells are connected to resemble NOR gate logic.
To read, the CPU sends voltage down the specific Word Line, and the transistor either turns ON or stays OFF, depending on erased or programmed state.

NOR flash supports XIP (execute-in-place): Code can be executed directly from flash memory without loading the code into RAM (main memory).

So we have the following operations for NOR flash:

NAND Flash
Has only one I/O bus so all Commands, Addresses, Data has to go through this bus.
Data is accessed a page at a time. Command used to open a particular page followed by the individual bytes read/write.

image

FGT cells are connected to resemble NAND gate logic.
To read Word Line 3,

NAND does not support XIP. E.g. for read op,

Why use NAND flash? Less connecting wires, higher density, lower cost per bit, used for main storage like SSD, USB.
Hard Disk Drive (HDD)

image

image

Platters rotate on the spindle. Each platter has two surfaces. Each surface is served by a R/W head.
Data is stored on the platters, which is organised in concentric rings called tracks or cylinders.
Tracks are divided into sectors, each containing header, data and trailer.

image

Note that the platter is always spinning.

image

Solid state drive (SSD)

image

HDD vs SSD: