Best viewed in landscape on a phone

ARCHITECTURE 101 · COMPUTE · MEMORY · INTERCONNECT

AI Chip Architecture 101

Follow one Instagram recommendation as its data travels HBM → SRAM → MAC array

AGENDA

Roadmap

01

AI chips vs CPUs

Why we need a new kind of processor

02

Three core modules: compute, memory, interconnect

What each one does and the principle behind it

03

Training chips vs inference chips

Same model, two very different bottlenecks

04

Design challenges

Three walls and the engineering trade-offs

05

Putting it together: one Instagram recommendation

A worked matrix multiply, from HBM to the computed result

AI Chip Architecture 101

 

01 · THE BIGGEST DIFFERENCE

CPUs are built for latency,
AI chips for throughput

CPU

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.

AI chip

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

The transistor budget: where it goes

CPU

Control logic

Large cache

Compute

Other

AI chip

Ctrl

On-chip SRAM

Massive compute (MAC array)

I/O

CPU

Transistors mostly make a single thread faster: branch prediction, out-of-order execution, multi-level caches.

AI chip

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

CPU vs AI chip: six dimensions

DimensionCPUAI chip (GPU / TPU / NPU)
Design goalLow single-thread latency, general purposeHigh overall throughput, tensor math
Compute unitsA few dozen complex coresThousands of simple compute units
Typical operationScalar/vector ops plus branchingMostly multiply-accumulate (MAC)
Numeric precisionFP64 / FP32 / integerBF16 / FP8 / INT8 / FP4
Memory systemBig caches + DDR (large, lower bandwidth)On-chip SRAM + HBM (TB/s bandwidth)
ProgrammingGeneral languages, OS schedulingCUDA / 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

The modules of an AI chip

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)

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

The three core modules

COMPUTE

Compute

Runs multiply-accumulate (MAC), the smallest unit of matrix multiplication.

Analogy: the chef

Metrics: TFLOPS, efficiency (FLOPS/W)

MEMORY

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

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

Compute: the MAC unit and the systolic array

MAC: multiply-accumulate

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.

Why a systolic array saves energy

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

Lower precision, more compute per area

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.

Why lower precision is faster

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

Memory: the hierarchy pyramid

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

HBM and the Roofline: bandwidth sets the ceiling

↑ Performance (FLOPS)

Memory-bound

Compute-bound

Ridge ≈ 560 FLOP/B

Arithmetic intensity (FLOP/byte) →

HBM: memory moved next to the chip

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.

Ridge = peak compute ÷ bandwidth

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

Interconnect: from the die to the cluster

ON-CHIP

On-chip NoC

Fastest

Links compute cores, SRAM and the HBM controllers

CHIP-TO-CHIP

Chip-to-chip links

1.8 TB/s

NVLink 5, per GPU, bidirectional. TPU Ironwood ICI: 1.2 TB/s bidirectional

NODE-TO-NODE

Server network

~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

Training chips vs inference chips: six dimensions

DimensionTrainingInference
GoalShortest time to converge (max throughput)Low latency, low cost per token
ComputeForward + backward + optimizer, ~3× forwardForward pass only
PrecisionBF16 / FP8, FP32 master weightsFP8 / INT8 / FP4 quantized
MemoryWeights + gradients + optimizer state + activationsWeights + KV cache
BottleneckCompute and interconnect (all-reduce at scale)Memory bandwidth and capacity (decode)
ScaleThousands to tens of thousands of chipsOne 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

Inference hits the memory wall

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.

Batching

Several requests share one read of the weights, spreading the bandwidth cost.

Quantization

FP4 halves the weights to 35 GB and roughly doubles the ceiling to ≈228 tokens/s.

Closer memory

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

Design challenge 1: three walls

MEMORY WALL

Memory wall

~560

FLOP/byte

Each byte read needs about 560 operations to keep B200’s FP8 compute busy.

POWER WALL

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

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

Design challenge 2: engineering trade-offs

ChallengeWhy it is hardCommon answers
Compiler and software stackOperators must be mapped, tiled and scheduled onto the array; the ecosystem decides usabilityOperator fusion, auto-tiling, CUDA / XLA / Triton
Advanced packaging and yieldA single die is capped by reticle size; HBM and compute dies need 2.5D / 3D integrationChiplets, CoWoS, multi-die assembly
Generality vs specializationModels change fast, while a chip takes 2–3 years to designProgrammable tensor cores plus fixed-function units
Dataflow and utilizationPeak compute is usable only if data is reused enoughLarge on-chip SRAM, dataflow design, batching
Reliability and verificationIn a cluster of thousands, any failure can interrupt trainingCheckpoints, redundancy, simulation and formal verification

AI Chip Architecture 101 · 04 Design challenges

 

05 · WORKED EXAMPLE

You open Instagram: 7 steps of one recommendation

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

Recommender model: all matrix multiplies

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

Each layer = one matrix multiply

y = ReLU(W·x + b): the weights W form a matrix, and the element-wise activation costs far less than the multiply.

Scoring = dot products, still a matmul

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 requests × 3 candidate videos

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

The data

A = [2, 1, 0, 3], B = [1, 0, 2, 1]. Videos: [1, 2, 0, 1], [0, 1, 3, 1], [2, 0, 1, 2].

Simplified to see it clearly

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 → SRAM: one DMA transfer

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

Big bursts

HBM has high bandwidth but also high latency, so it is read in large contiguous bursts, not byte by byte.

SRAM as scratchpad

Close to the MACs, low latency, low energy. Data is read from HBM once and then reused by the array.

Hiding latency

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

SRAM → MAC array: a 2×3 output-stationary array

 

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.

Each cycle k

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 by cycle: 4 steps produce 6 scores

CycleA·v1A·v2A·v3B·v1B·v2B·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 S7410276

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

Write back, sort, show

Score matrix S

 

Video 1

Video 2

Video 3

User A

7

4

10

User B

2

7

6

User A’s ranking

Video 3 (10) > Video 1 (7) > Video 2 (4)

User B’s ranking

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

Read 20 B, do 24 MACs,
get 6 scores

Data reuse

Each user vector serves 3 videos and each video vector serves 2 users, so 20 B supports 48 operand reads, about 2.4×.

Arithmetic intensity

24 MACs = 48 FLOP, divided by 20 B is 2.4 FLOP/B, far below the ~560 ridge, so it is still bandwidth-bound.

How to raise it

Use bigger batches, reuse weights in deeper and wider layers, and quantize to cut bytes.

AI Chip Architecture 101 · 05 Worked example

 

SUMMARY

Summary: five takeaways

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

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

 

1 / 26