memory architecture design

On-Chip Memory Architecture is the design discipline that organizes the hierarchy of registers, SRAM caches, and embedded memories within a processor or SoC — where memory access latency and bandwidth determine 50-80% of overall chip performance, making the capacity, organization, and placement of on-chip memory the most impactful architectural decision after the compute pipeline itself.

The Memory Hierarchy

LevelSizeLatencyBandwidthTechnology
Register File1-32 KB1 cycle~TB/sCustom flip-flops
L1 Cache (I/D)32-64 KB3-5 cycles200+ GB/s per core6T/8T SRAM
L2 Cache256 KB-2 MB10-20 cycles100+ GB/s6T/8T SRAM
L3 Cache (LLC)4-256 MB30-60 cycles50-200 GB/sSRAM or eDRAM
HBM/DDR (off-chip)16-192 GB100-300 cycles50-8000 GB/sDRAM

SRAM Bitcell Design

  • 6T SRAM: Standard bitcell with 6 transistors — two cross-coupled inverters for storage, two access transistors gated by the word line. Provides single-cycle read/write. Area: 0.020-0.030 μm² at 5nm node.
  • 8T SRAM: Adds a separate read port (2 transistors) to eliminate read disturb, improving read stability at low voltage. Enables operation at lower Vdd (0.5-0.6V) for power savings.
  • Bitcell vs. Periphery Area: At advanced nodes, SRAM bitcell area stops scaling (limited by read/write stability margins), while periphery circuits (sense amplifiers, drivers, address decoders) contribute 30-50% of total memory area. Assist circuits (write-assist negative bitline voltage, read-assist positive word line underdrive) enable bitcell scaling at the cost of peripheral complexity.

Cache Organization Architecture

  • Associativity: Higher associativity (8-way, 16-way) reduces conflict misses but increases tag comparison logic, area, and access latency. L1 caches typically use 4-8 way; L3 caches use 8-16 way.
  • Line Size: 64 bytes is standard. Larger lines improve spatial locality exploitation but waste bandwidth on sparse access patterns.
  • Replacement Policy: LRU (Least Recently Used) approximations (pseudo-LRU, RRIP — Re-Reference Interval Prediction) balance hit rate against hardware complexity.
  • Inclusive vs. Exclusive: Inclusive L3 guarantees that L3 contains a superset of L1/L2 data (simplifies coherence). Exclusive L3 maximizes effective capacity (L1+L2+L3) but complicates coherence protocol.

Embedded Memory Compilers

Compilers (tools from ARM, Synopsys, foundry PDKs) generate optimized SRAM/ROM instances from parameterized specifications (word count, bit width, ports, muxing ratio). The compiler produces the layout (GDS), timing model (.lib), netlist, and verification views — enabling rapid integration of custom memory blocks into SoC designs.

On-Chip Memory Architecture is the performance multiplier that determines whether a chip's compute units are fed or starved — because even the most powerful ALU is useless if it spends 90% of its cycles waiting for data from a memory hierarchy that was designed with insufficient capacity, bandwidth, or proximity.

Go deeper with CFSGPT

Get AI-powered deep-dives, save terms, and run advanced simulations — free account.

Create Free Account