AI CHIP ARCHITECTURE · 101
CPU, GPU, TPU, NPU, LPU
how their overall architectures differ, and what trade-offs each one makes
CONTENTS
1
Types overview
Why so many chip types, and what XPU means
2
GPU
Trading massive threading for total throughput
3
TPU
A matrix-multiply array driven by the compiler
4
NPU
Low-power inference at the edge
5
LPU
On-chip SRAM plus deterministic execution
6
Trainium
AWS's own design: fewer, bigger cores plus HBM
7
Ascend
Huawei's own DaVinci architecture
8
Comparison
Side by side, picks by scenario
AI Chip Architecture 101: Types and Comparison
01 · Types
← more general, more flexible more specialized, more efficient →
CPU
Few powerful cores, complex control
GPU
Massive threading plus tensor cores
FPGA
Reconfigurable logic, high barrier to entry
NPU
Low-power inference at the edge
LPU
SRAM plus deterministic, low latency
TPU / custom ASIC
Cloud-vendor custom silicon, e.g. TPU, Trainium, Ascend
There's no "best" architecture, only different trade-offs: the further right, the closer to neural-network math, and the less flexible. We'll expand on all six — GPU, TPU, NPU, LPU, Trainium, Ascend — one by one.
AI Chip Architecture 101: Types and Comparison
01 · Types overview
| Type | Design orientation | Typical use |
|---|---|---|
| CPU | Few powerful cores, good at complex control and serial logic | OS, general computing, task orchestration |
| GPU | Massive parallel compute units plus tensor cores, relies on high-bandwidth memory and the CUDA ecosystem | Training, fine-tuning, all kinds of inference |
| TPU | ASIC built around a systolic array (MXU), compiled via XLA | Large-scale training and inference, mainly via Google Cloud |
| NPU | A block alongside the CPU and GPU in an SoC, measured in TOPS | On-device inference in phones, laptops, edge devices |
| LPU | Large on-chip SRAM plus compiler-scheduled determinism | Low-latency large-model inference |
| Trainium | AWS's own design; few large cores, each with a systolic array and multiple engine types | Training and inference on AWS (Trn2 instances) |
| Ascend | Huawei's own design, DaVinci architecture, three unit types: Cube/Vector/Scalar | Training and inference within Huawei's ecosystem |
AI Chip Architecture 101: Types and Comparison
01 · Types
Meaning 1
Intel's usage: putting CPU, GPU, FPGA, and AI ASICs under one software stack, so each workload runs on whichever engine fits best.
Meaning 2
Broadcom calls the custom AI chips it builds for clients "XPUs." The "X" can be read as "any."
A related example
NVIDIA's Grace Hopper tightly couples a CPU and a GPU; Apple's M series puts a CPU, GPU, and neural engine on one chip.
XPU is not an architecture, so it shouldn't be placed side by side with GPU or TPU. To understand a specific chip, look at what its compute core actually looks like.
AI Chip Architecture 101: Types and Comparison
02 · GPU architecture
CPU: minimize a single thread's latency
GPU: maximize every thread's combined throughput
The programming model is SIMT: one instruction drives 32 threads (a warp) at once, each operating on its own data.
AI Chip Architecture 101: Types and Comparison
02 · GPU architecture
GPU
The whole die
→
GPC × 8
Graphics Processing Clusters
→
TPC × 66
Each holds 2 SMs
→
SM × 132
The basic compute unit, expanded next page
SM count
132
H100 SXM5
Per SM
128 + 4
FP32 cores plus tensor cores
L2 cache
50 MB
Shared across the whole die
HBM3
80 GB
5 stacks, over 3 TB/s
Data from NVIDIA's Hopper architecture blog, marked there as preliminary.
AI Chip Architecture 101: Types and Comparison
02 · GPU architecture
One SM (H100)
Sub-partition 0
Scheduler, FP32 cores, tensor core
Sub-partition 1
Scheduler, FP32 cores, tensor core
Sub-partition 2
Scheduler, FP32 cores, tensor core
Sub-partition 3
Scheduler, FP32 cores, tensor core
Register file, 256 KB
Threads' private data and accumulators
Shared memory / L1, 256 KB
Up to 228 KB can be configured as shared memory
TMA
Async transfers between global and shared memory
One SM has about 128 FP32 cores and 4 tensor cores, drawing data from registers and shared memory.
AI Chip Architecture 101: Types and Comparison
02 · GPU architecture
1
Launch: a kernel is split into many thread blocks, distributed across SMs.
2
Grouping: within a block, every 32 threads form a warp, each advancing on its own.
3
Scheduling: each cycle the scheduler issues one ready warp; when one warp waits on data, another steps in.
4
Matrix multiply: a warpgroup (4 warps, 128 threads) jointly issues one wgmma instruction to the tensor core.
5
Moving data: TMA asynchronously moves data tiles into shared memory, signaling arrival via an mbarrier.
The key feature: massive thread concurrency plus a hardware scheduler hide latency; Hopper can also group up to 16 thread blocks into one cluster.
AI Chip Architecture 101: Types and Comparison
03 · TPU architecture
The GPU's approach
Use lots of general-purpose threads plus tensor cores to approximate matrix multiply; a hardware scheduler manages threads, caches help hide latency.
The TPU's approach
Since a neural network's main operation is matrix multiply, put one or a few large systolic arrays (MXUs) in each core, with everything else built to serve it.
Each core holds an MXU, a vector unit, and a scalar unit; core count stays low.
Programs compile through XLA, with the compiler scheduling compute and data movement.
On-chip VMEM is controlled by the programmer or compiler — it's a scratchpad.
AI Chip Architecture 101: Types and Comparison
03 · TPU architecture
TensorCore (one or more per chip)
MXU
Matrix-multiply systolic array
Vector unit
Activations, softmax
Scalar unit
Control flow, address computation
SparseCore
Sparse and embedding ops
HBM
Main memory
| Per chip | TPU v5e | TPU v6e | TPU7x |
|---|---|---|---|
| TensorCores | 1 | 1 | 2 |
| MXUs per core | 4, 128×128 | 2, 256×256 | 2, 256×256 |
| HBM capacity and bandwidth | 16 GiB, 0.82 TB/s | 32 GiB, 1.6 TB/s | 192 GiB, 7.4 TB/s |
| bf16 peak | 197 TFLOPS | 920 TFLOPS | 2310 TFLOPS |
AI Chip Architecture 101: Types and Comparison
03 · TPU architecture
HBM
Model parameters and data
→
VMEM
On-chip scratchpad, 128 MiB on TPU7x
→
Vector registers
A small tile is fetched
→
MXU / vector unit
Computes, writes results back the same way
The scalar unit runs control flow, computes addresses, and issues the HBM-to-VMEM DMA.
The XLA compiler overlaps transfer with compute: while one tile is computing, the next is already in transit.
Weights are loaded into the array first, activations stream in from the left, partial sums accumulate downward.
AI Chip Architecture 101: Types and Comparison
03 · TPU architecture
Base unit
4×4×4
One TPU cube, 64 chips, copper cabling inside the cube
Topology
3D torus
Cubes connect via optical links and optical circuit switching
Per host
4 chips
TPU7x
ICI link
90 GB/s
Per direction, v6e and TPU7x
Chips are networked directly via a dedicated interconnect (ICI), and scale comes from the topology. GPU clusters take a layered route — NVLink plus networking — which we'll compare in a later talk on interconnects.
AI Chip Architecture 101: Types and Comparison
04 · NPU
An NPU is usually a block alongside the CPU and GPU in a phone or laptop's system-on-chip, built specifically to accelerate neural-network inference at low power.
The CPU handles sequential control, the GPU handles parallel data flow, and the NPU handles the scalar, vector, and tensor math in neural networks. The three work together to balance performance, heat, and battery life.
Embedded NPU, typical power
0.5–2 W
Embedded NPU, typical compute
1–26 TOPS
Today's AI PC NPUs
40–80 TOPS
AI Chip Architecture 101: Types and Comparison
04 · NPU
External DRAM
System memory, used when the model doesn't fit on-chip
⇄
Local SRAM
Typically 1–16 MB, holds weights and activations
⇄
MAC array
Usually systolic, fixed-function or semi-programmable
Most NPUs require INT8 or INT16 models; floating-point models must be quantized first, which can cost accuracy.
When a model exceeds local SRAM, it has to stream from external DRAM, roughly 10 to 50 times slower per access.
One unsupported op sends the rest of that subgraph back to the CPU; depthwise convolution utilization can fall below 10%.
AI Chip Architecture 101: Types and Comparison
04 · NPU
Model
A network trained in floating point
→
Quantize and compile
Converted to INT8, sliced into subgraphs by the vendor's toolchain
→
Routed to processors
NPU runs the supported ops, the rest falls back
Sequential control, unsupported ops, latency-sensitive tasks.
Parallel data flow, plus graphics and some tensor work it's well suited for.
The scalar, vector, and tensor math in neural networks, at the lowest power.
AI Chip Architecture 101: Types and Comparison
05 · LPU
Early chips, on-chip SRAM bandwidth
80+ TB/s
Groq's page compares this to GPU HBM at ~8 TB/s
Latest LP30, per chip
500 MB
SRAM, 150 TB/s bandwidth
The compiler lays out compute, transfers, and synchronization at compile time; there's no hardware scheduler at runtime, so every step is predictable to the clock cycle.
Stable time-to-first-token and per-token latency, even at small batch sizes, aimed at latency-sensitive inference.
AI Chip Architecture 101: Types and Comparison
05 · LPU
A GPU relies on a hardware scheduler to pick runnable warps at runtime; the LPU has no such layer — the compiler has already written what happens on every cycle.
Where weights, activations, and KV state live is decided by the compiler and runtime, not by cache hits — so access time is knowable in advance.
Chips use a near-synchronous protocol to cancel out clock drift, so hundreds of them follow the same schedule.
Latency is predictable and jitter-free; the cost is a heavier compiler burden and less flexibility than a GPU.
AI Chip Architecture 101: Types and Comparison
05 · LPU
Per-chip interconnect
≈2.5 TB/s
96 links, 112 Gbps each
One LPX rack
256
LP30 chips, 128 GB SRAM combined
Rack compute
315 PFLOPS
FP8
A single chip has only 500 MB of SRAM, so a large model has to be split across many chips, held together as one system by a chip-to-chip protocol.
In NVIDIA's design, the GPU handles prefill and attention while the LPU handles latency-sensitive decode, such as FFN and MoE experts.
AI Chip Architecture 101: Types and Comparison
06 · Trainium
Per Trainium2 chip
8
NeuronCores, with 96 GiB of HBM
HBM bandwidth
2.9 TB/s
Per AWS's blog
Dense FP8 compute
1.3 PFLOPS
Per chip, max figure
A GPU relies on hundreds or thousands of small tensor cores; Trainium uses a handful of large cores, each with 4 engine types working in parallel.
Both are purpose-built chips a cloud vendor designs for its own data centers; both use systolic arrays, compile via XLA, and connect chips into a torus.
AI Chip Architecture 101: Types and Comparison
06 · Trainium
HBM
External memory
⇄
SBUF
24 MB, 128 partitions, shared by all engines
→
Tensor Engine
128×128 systolic array
→
PSUM
2 MB, accumulates partial sums
Vector operations, such as softmax and normalization statistics.
Elementwise operations, such as activations and adding bias.
Programmable engines that run custom C++ operators.
AI Chip Architecture 101: Types and Comparison
06 · Trainium
Trn2 server
16 chips
A 4×4 2D torus, 128 GB/s per link
Trn2 UltraServer
64 chips
4 servers, a 4×4×4 3D torus
Chips connect directly with no switches involved; dedicated collective-communication cores handle chip-to-chip data, leaving compute cores untouched.
Mainly compiles through XLA (PyTorch XLA), but tiled kernels can also be hand-written in NKI; the ISA is fully exposed.
AI Chip Architecture 101: Types and Comparison
07 · Ascend
Ascend 910 (7nm)
256 TFLOPS
FP16; also 512 TOPS INT8, 350 W
Ascend 910 core count
32
DaVinci cores, 2 GHz on-chip network
Ascend 310 (12nm)
8 TFLOPS
FP16, roughly 8 W, aimed at edge inference
A DaVinci core (AI Core) has three parts: a scalar unit for control, a vector unit for elementwise operations, and a matrix (Cube) unit for matrix multiply — "1D scalar + 2D vector + 3D matrix."
AI Chip Architecture 101: Types and Comparison
07 · Ascend
L1 Buffer
1 MB
→
L0A / L0B
64 KB each, matrix-multiply inputs
→
Cube unit
16³, 4,096 FP16 MACs
→
L0C
256 KB, accumulates results
Explicitly manages this data path, with dedicated functions like transpose and img2col, rather than a hardware cache.
Cube, Vector, and MTE each have their own instruction queue, synchronized by events, and can run in parallel.
AI Chip Architecture 101: Types and Comparison
07 · Ascend
Per-core on-chip bandwidth
128+128 GB/s
Per DaVinci core, read and write each
Common training cluster setup
16 cards
Within one node, per published research
HCCL handles card-to-card collective communication, a role similar to NVIDIA's NCCL, doing operations like all-reduce across an NPU cluster.
CANN is the underlying compiler and runtime, with frameworks like MindSpore on top — the same layer as CUDA for GPUs or XLA for TPUs.
AI Chip Architecture 101: Types and Comparison
08 · Full comparison
| Dimension | GPU | TPU | NPU | LPU | Trainium | Ascend |
|---|---|---|---|---|---|---|
| Core idea | Massive thread parallelism | Large matrix-multiply array | Low-power AI inference | SRAM plus determinism | Few large cores, parallel engines | Cube unit plus layered buffers |
| Control style | Hardware-scheduled warps | Compiler-orchestrated instruction flow | Fixed ops, falls back to CPU | Static, compile-time schedule | Compiler plus NKI tiling | Instruction queues plus event sync |
| Software | CUDA | XLA | Vendor toolchains | Groq compiler | Neuron SDK | CANN, MindSpore |
| Flexibility | Highest | Tensor-workload focused | Narrow, fixed op set | Narrowest, inference only | Aimed at AWS workloads | Aimed at Huawei's ecosystem |
AI Chip Architecture 101: Types and Comparison
08 · Full comparison
| Dimension | GPU | TPU | NPU | LPU | Trainium | Ascend |
|---|---|---|---|---|---|---|
| On-chip memory | Registers, shared memory, L2 | VMEM scratchpad | Local SRAM, 1–16 MB | SRAM as main memory, 500 MB per chip | SBUF plus PSUM | L0/L1 layered buffers |
| External memory | HBM | HBM | External DRAM | Mostly SRAM | HBM, 96 GiB | Off-chip DDR/HBM |
| Power | B200: ~1000 W | Higher throughput per watt | From 0.5–2 W | Measured per rack | ~500 W | 910: ~350 W |
| Scaling | NVLink plus networking | ICI, 3D torus | Within one chip | Direct chip-to-chip | NeuronLink torus | HCCL multi-card |
AI Chip Architecture 101: Types and Comparison
08 · Full comparison
| Question | GPU | TPU | NPU | LPU | Trainium | Ascend |
|---|---|---|---|---|---|---|
| How it computes | Many SMs with tensor cores | Large matrix array plus vector unit | Low-precision MAC array | Compiler-scheduled compute units | 128×128 array plus three engine types | Cube plus Vector, Scalar |
| How data arrives | Multi-level cache hides latency | Compiler moves data to VMEM | Local SRAM, DRAM if it doesn't fit | Placed directly in SRAM | DMA moves data to SBUF | MTE explicitly moves data to L0/L1 |
| How it's networked | NVLink plus networking | ICI, 3D torus | Coordinated within the SoC | Direct chip-to-chip, synchronized | NeuronLink torus | HCCL collective communication |
| Design starting point | Run any workload | Throughput per watt on large tensor workloads | A power budget | Stable, low latency | AWS's own accelerator | Huawei's own accelerator |
AI Chip Architecture 101: Types and Comparison
08 · Full comparison
| Scenario | Better fit | Why |
|---|---|---|
| Training, fine-tuning, varied workloads | GPU | Most flexible, mature ecosystem |
| Large-scale, steady tensor workloads | TPU | High throughput per watt, used via Google Cloud |
| On-device inference in phones, laptops | NPU | Low power, good enough |
| Low-latency token-by-token generation | LPU | High SRAM bandwidth, deterministic execution |
| Training and inference already on AWS | Trainium | AWS's own design, used via Trn2 instances |
| Training and inference in Huawei's ecosystem | Ascend | DaVinci architecture, CANN/MindSpore ecosystem |
Real systems often combine several: a phone runs CPU, GPU, and NPU together; some data centers pair a GPU with an LPU.
AI Chip Architecture 101: Types and Comparison
SUMMARY
CPU
General control
Few strong cores; good at complex control and serial logic
GPU
Flexible parallel
Massive threading plus tensor cores, runs any workload
TPU
Compiler-driven
Large matmul array, orchestrated via XLA, scaled with ICI
NPU
Power-sipping edge
A dedicated SoC block, mostly INT8, limited op set
LPU
Low-latency inference
On-chip SRAM plus deterministic execution, scaled across chips
Trn
Cloud vendor's own chip
Few large cores, software-managed memory, scaled with a torus
Ascend
Device vendor's own chip
DaVinci architecture, Cube unit plus layered buffers moved by MTE
AI Chip Architecture 101: Types and Comparison
SOURCES
Pages checked for this talk
AI Chip Architecture 101: Types and Comparison