ARCHITECTURE 101 · COMPUTE · MEMORY · INTERCONNECT
Follow one Instagram recommendation as its data travels HBM → SRAM → MAC array
AGENDA
01
Why we need a new kind of processor
02
What each one does and the principle behind it
03
Same model, two very different bottlenecks
04
Three walls and the engineering trade-offs
05
A worked matrix multiply, from HBM to the computed result
AI Chip Architecture 101
01 · THE BIGGEST DIFFERENCE
Finish one complex task as fast as possible: lots of branches and tight data dependencies, so big caches and out-of-order execution cut single-thread latency.
Finish a huge number of simple tasks at once: regular multiply-accumulate work, so thousands of compute units run in parallel for overall throughput.
AI Chip Architecture 101 · 01 AI chips vs CPUs
01 · THE BIGGEST DIFFERENCE
Transistors mostly make a single thread faster: branch prediction, out-of-order execution, multi-level caches.
Transistors mostly lay out compute units, using massive parallelism and data reuse to hide memory latency.
Illustrative proportions that show design intent, not measured die areas of any specific chip.
AI Chip Architecture 101 · 01 AI chips vs CPUs
01 · THE BIGGEST DIFFERENCE
| Dimension | CPU | AI chip (GPU / TPU / NPU) |
|---|---|---|
| Design goal | Low single-thread latency, general purpose | High overall throughput, tensor math |
| Compute units | A few dozen complex cores | Thousands of simple compute units |
| Typical operation | Scalar/vector ops plus branching | Mostly multiply-accumulate (MAC) |
| Numeric precision | FP64 / FP32 / integer | BF16 / FP8 / INT8 / FP4 |
| Memory system | Big caches + DDR (large, lower bandwidth) | On-chip SRAM + HBM (TB/s bandwidth) |
| Programming | General languages, OS scheduling | CUDA / XLA / dedicated compilers and kernels |
In one line: an AI chip gives up being “a bit faster at everything” to become “extremely fast at matrix multiply”.
AI Chip Architecture 101 · 01 AI chips vs CPUs
02 · MODULE OVERVIEW
Host interface
PCIe, link to the CPU
Control & scheduling
Command processor
DMA engine
Bulk data movement
Power, clock, security
Debug, encryption
Compute
Tensor core / MAC array: matrix multiply
Vector unit: element-wise ops
Special functions: activation, softmax
On-chip NoC
Memory
On-chip SRAM: cache / scratchpad
Registers / accumulators
Memory controller → HBM (in-package)
Chip-to-chip links: NVLink / ICI / Ethernet, reaching other chips and servers
Compute
Memory
Interconnect
Colored blocks are covered in depth here; gray blocks get only a mention.
AI Chip Architecture 101 · 02 Three core modules
02 · THREE CORE MODULES
COMPUTE
Runs multiply-accumulate (MAC), the smallest unit of matrix multiplication.
Analogy: the chef
Metrics: TFLOPS, efficiency (FLOPS/W)
MEMORY
Holds weights and intermediate results, and feeds data to compute on time.
Analogy: pantry and serving lane
Metrics: capacity (GB), bandwidth (TB/s)
INTERCONNECT
Links modules on a chip, chips to chips, and servers to servers.
Analogy: lanes between kitchens
Metrics: link bandwidth (GB/s), latency
Performance ≈ min( peak compute , bandwidth × arithmetic intensity ): the weakest module sets the limit.
AI Chip Architecture 101 · 02 Three core modules
02 · COMPUTE
acc ← acc + a × b
One multiply plus one add, so 2 floating-point operations. Multiplying (M×K) by (K×N) takes M·K·N MACs.
Data moves between neighboring MACs one step at a time instead of returning to memory. Each value is reused many times, saving bandwidth and energy.
Partial sums ↓ accumulate downward each step
Activations →
MAC
w11
MAC
w12
MAC
w13
MAC
w21
MAC
w22
MAC
w23
MAC
w31
MAC
w32
MAC
w33
Weights w stay inside each MAC; every column outputs one dot product. Examples: Google TPU MXU, NVIDIA Tensor Core.
AI Chip Architecture 101 · 02 Three core modules
02 · COMPUTE
BF16
2.25 PFLOPS
FP8
4.5 PFLOPS
FP4
9 PFLOPS
NVIDIA B200 (HGX) dense peak throughput: each halving of bit width roughly doubles the peak. See sources on the last slide.
Half the bits: the same area fits more multipliers, and the same bandwidth moves twice the values.
Training: BF16 / FP8 multiplies, FP32 accumulation. Inference: FP8 / INT8 / FP4 quantization.
AI Chip Architecture 101 · 02 Three core modules
02 · MEMORY
Registers
Beside each MAC · fastest
On-chip SRAM
MBs · very fast · low energy
HBM
B200: 186 GB · 8 TB/s
Host memory / SSD
TBs · slow · reached over PCIe or network
Closer to compute means faster, smaller and lower energy. Reading a 32-bit value from DRAM costs over 100 times the energy of a 32-bit floating-point multiply, so memory design is mostly about moving less data.
AI Chip Architecture 101 · 02 Three core modules
02 · MEMORY
↑ Performance (FLOPS)
Memory-bound
Compute-bound
Ridge ≈ 560 FLOP/B
Arithmetic intensity (FLOP/byte) →
Stacked DRAM dies sit beside the compute die on a silicon interposer (such as CoWoS) and use a very wide bus: 1024 bits per stack in HBM3, 2048 in HBM4.
B200 · FP8 · 4.5 PFLOPS ÷ 8 TB/s ≈ 560 FLOP/B
TPU Ironwood · FP8 · 4.6 PFLOPS ÷ 7.4 TB/s ≈ 625 FLOP/B
AI Chip Architecture 101 · 02 Three core modules
02 · INTERCONNECT
ON-CHIP
Fastest
Links compute cores, SRAM and the HBM controllers
CHIP-TO-CHIP
1.8 TB/s
NVLink 5, per GPU, bidirectional. TPU Ironwood ICI: 1.2 TB/s bidirectional
NODE-TO-NODE
~0.1 TB/s
InfiniBand / Ethernet, 400–800 Gb/s per port
A large model does not fit on one chip, so it is split with tensor, pipeline and expert parallelism, and every layer needs all-reduce or all-to-all traffic. Bandwidth drops at each level, so the chattiest split goes on the fastest link.
AI Chip Architecture 101 · 02 Three core modules
03 · TRAINING VS INFERENCE
| Dimension | Training | Inference |
|---|---|---|
| Goal | Shortest time to converge (max throughput) | Low latency, low cost per token |
| Compute | Forward + backward + optimizer, ~3× forward | Forward pass only |
| Precision | BF16 / FP8, FP32 master weights | FP8 / INT8 / FP4 quantized |
| Memory | Weights + gradients + optimizer state + activations | Weights + KV cache |
| Bottleneck | Compute and interconnect (all-reduce at scale) | Memory bandwidth and capacity (decode) |
| Scale | Thousands to tens of thousands of chips | One chip to one server, scaled with traffic |
Mixed-precision Adam training needs about 16 bytes per parameter (including FP32 master weights and optimizer state). See sources on the last slide.
AI Chip Architecture 101 · 03 Training vs inference
03 · TRAINING VS INFERENCE
Model weights
70 GB
70B params × 1 B (FP8)
÷
HBM bandwidth
8 TB/s
B200
=
Time per token
8.75ms
Just to read weights
→
Single-request ceiling
≈114
tokens / s
Every token rereads all the weights. Theoretical upper bound at batch = 1, ignoring KV cache and compute time.
Several requests share one read of the weights, spreading the bandwidth cost.
FP4 halves the weights to 35 GB and roughly doubles the ceiling to ≈228 tokens/s.
Higher-bandwidth HBM, on-chip SRAM, or tensor parallelism across chips to share the reads.
AI Chip Architecture 101 · 03 Training vs inference
04 · DESIGN CHALLENGES
MEMORY WALL
~560
FLOP/byte
Each byte read needs about 560 operations to keep B200’s FP8 compute busy.
POWER WALL
1.0–1.2 kW
Per chip
B200 HGX is 1000 W and GB200 is 1200 W. Power delivery, cooling and rack density all become limits.
INTERCONNECT WALL
1.8 vs 8
NVLink vs HBM (TB/s)
Chip-to-chip bandwidth is far below local HBM, so communication takes a larger share as systems scale.
All three walls point the same way: move less data, reuse more of it, and get more compute per watt.
AI Chip Architecture 101 · 04 Design challenges
04 · DESIGN CHALLENGES
| Challenge | Why it is hard | Common answers |
|---|---|---|
| Compiler and software stack | Operators must be mapped, tiled and scheduled onto the array; the ecosystem decides usability | Operator fusion, auto-tiling, CUDA / XLA / Triton |
| Advanced packaging and yield | A single die is capped by reticle size; HBM and compute dies need 2.5D / 3D integration | Chiplets, CoWoS, multi-die assembly |
| Generality vs specialization | Models change fast, while a chip takes 2–3 years to design | Programmable tensor cores plus fixed-function units |
| Dataflow and utilization | Peak compute is usable only if data is reused enough | Large on-chip SRAM, dataflow design, batching |
| Reliability and verification | In a cluster of thousands, any failure can interrupt training | Checkpoints, redundancy, simulation and formal verification |
AI Chip Architecture 101 · 04 Design challenges
05 · WORKED EXAMPLE
1
Read user features
Age, interests, watch-history signals
CPU / features
2
Fetch candidate videos
Retrieval: shortlist from a huge pool
Retrieval system
3
Read embeddings
One vector per video, stored in HBM
HBM → SRAM
4
Matrix multiply + NN
User vectors × video vectors, batched
MAC array
5
Compute scores
Activation gives each video a score
AI chip
6
Sort by score
Keep the Top-K
AI chip / CPU
7
Show it to you
Results returned to the phone app
Client app
A teaching simplification, not Instagram’s real system. Orange marks the steps inside the AI chip that we expand next.
AI Chip Architecture 101 · 05 Worked example
05 · WORKED EXAMPLE
Features x
Interests, watch history
MLP layer
h = ReLU(W1·x)
User vector u
u = W2·h
Scoring
S = U × V^T
V: video embeddings (HBM)
Ranking
Top-K, then show
y = ReLU(W·x + b): the weights W form a matrix, and the element-wise activation costs far less than the multiply.
s = u·v. Stack B users and N videos and it becomes one (B×d) by (d×N) matrix multiply.
Illustrative: a user tower plus dot-product scoring, a common two-tower recommender structure. Real models are far more complex.
AI Chip Architecture 101 · 05 Worked example
05 · MATRIX MULTIPLY EXAMPLE
2
1
0
3
1
0
2
1
U (2×4): user vectors, one per row
×
1
0
2
2
1
0
0
3
1
1
1
2
V^T (4×3): videos, one per column
=
?
?
?
?
?
?
S (2×3): the scores
A = [2, 1, 0, 3], B = [1, 0, 2, 1]. Videos: [1, 2, 0, 1], [0, 1, 3, 1], [2, 0, 1, 2].
INT8 integers, d = 4. Real systems use tens to thousands of dimensions, in FP16 / FP8 / INT8.
AI Chip Architecture 101 · 05 Worked example
05 · STEP 1: LOAD
HBM · off-chip · large
U: addresses 0–7, 8 B in total
2
1
0
3
1
0
2
1
V: addresses 8–19, stored per video, 12 B in total
1
2
0
1
0
1
3
1
2
0
1
2
DMA burst read, 20 B
On-chip SRAM · scratchpad
U buffer · 8 B
V buffer · 12 B
Double buffering: prefetch the next block while computing this one
HBM has high bandwidth but also high latency, so it is read in large contiguous bursts, not byte by byte.
Close to the MACs, low latency, low energy. Data is read from HBM once and then reused by the array.
While one block is computed, DMA prefetches the next, hiding memory latency behind compute.
AI Chip Architecture 101 · 05 Worked example
05 · STEP 2: COMPUTE
Video 1: 1 ↓
Video 2: 0 ↓
Video 3: 2 ↓
User A: 2 →
A·v1
+= 2×1
A·v2
+= 2×0
A·v3
+= 2×2
User B: 1 →
B·v1
+= 1×1
B·v2
+= 1×0
B·v3
+= 1×2
Shown for step k = 0 of 4 (k = 0…3). A and B are users; v1–v3 are videos.
1. Each user’s k-th value goes to every MAC in its row.
2. Each video’s k-th value goes to every MAC in its column.
3. Every MAC does acc += a × b; accumulators stay put.
Six MACs run at once: 24 multiply-accumulates in 4 cycles, and accumulators never leave the array.
AI Chip Architecture 101 · 05 Worked example
05 · STEP 2: COMPUTE
| Cycle | A·v1 | A·v2 | A·v3 | B·v1 | B·v2 | B·v3 |
|---|---|---|---|---|---|---|
| k = 0 | +2 = 2 | +0 = 0 | +4 = 4 | +1 = 1 | +0 = 0 | +2 = 2 |
| k = 1 | +2 = 4 | +1 = 1 | +0 = 4 | +0 = 1 | +0 = 0 | +0 = 2 |
| k = 2 | +0 = 4 | +0 = 1 | +0 = 4 | +0 = 1 | +6 = 6 | +2 = 4 |
| k = 3 | +3 = 7 | +3 = 4 | +6 = 10 | +1 = 2 | +1 = 7 | +2 = 6 |
| Final S | 7 | 4 | 10 | 2 | 7 | 6 |
Each cell reads “this cycle’s product = running total”. Accumulators stay inside the MACs and nothing is written back to memory during the 4 cycles.
Check: A·v1 = 2×1 + 1×2 + 0×0 + 3×1 = 7.
AI Chip Architecture 101 · 05 Worked example
05 · STEP 3: OUTPUT
Video 1
Video 2
Video 3
User A
7
4
10
User B
2
7
6
Video 3 (10) > Video 1 (7) > Video 2 (4)
Video 2 (7) > Video 3 (6) > Video 1 (2)
MAC accumulators → activation → write to SRAM → write back to HBM → sort → show
Activations such as sigmoid are monotonic, so they never change the ranking.
AI Chip Architecture 101 · 05 Worked example
05 · WHAT THE EXAMPLE SHOWS
Each user vector serves 3 videos and each video vector serves 2 users, so 20 B supports 48 operand reads, about 2.4×.
24 MACs = 48 FLOP, divided by 20 B is 2.4 FLOP/B, far below the ~560 ridge, so it is still bandwidth-bound.
Use bigger batches, reuse weights in deeper and wider layers, and quantize to cut bytes.
AI Chip Architecture 101 · 05 Worked example
SUMMARY
01
CPUs optimize latency and AI chips optimize throughput, spending their transistors on MAC arrays.
02
Compute, memory and interconnect all matter: performance ≈ min(compute, bandwidth × arithmetic intensity).
03
Training is limited by compute and interconnect; inference, especially decode, by memory bandwidth and cost.
04
The memory, power and interconnect walls, plus the software stack, decide whether a chip is truly usable.
05
One recommendation: data goes from HBM into SRAM, is reused by the MAC array, and the results are sorted and shown.
AI Chip Architecture 101
SOURCES
NVIDIA B200 specifications (Glenn K. Lockwood): glennklockwood.com/garden/processors/b200
Google Cloud TPU7x (Ironwood) documentation: docs.cloud.google.com/tpu/docs/tpu7x
SK hynix HBM4 volume production report (heise): heise.de/-10643852
M. Horowitz, “Computing’s Energy Problem (and what we can do about it)”, ISSCC 2014
S. Rajbhandari et al., “ZeRO: Memory Optimizations Toward Training Trillion Parameter Models”, 2020: arxiv.org/abs/1910.02054
Compute figures are vendor-stated theoretical peaks. NVLink 5’s 1.8 TB/s and similar numbers are vendor-published specifications. The Instagram flow is a teaching simplification, not its real implementation.
AI Chip Architecture 101