Best viewed in landscape on a phone

AI CHIP ARCHITECTURE · 101

AI Chip Architecture 101
Types and Comparison

CPU, GPU, TPU, NPU, LPU
how their overall architectures differ, and what trade-offs each one makes

CONTENTS

What this talk covers

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

Why so many chip types: generality vs. efficiency

← 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

Common processor types at a glance

TypeDesign orientationTypical use
CPUFew powerful cores, good at complex control and serial logicOS, general computing, task orchestration
GPUMassive parallel compute units plus tensor cores, relies on high-bandwidth memory and the CUDA ecosystemTraining, fine-tuning, all kinds of inference
TPUASIC built around a systolic array (MXU), compiled via XLALarge-scale training and inference, mainly via Google Cloud
NPUA block alongside the CPU and GPU in an SoC, measured in TOPSOn-device inference in phones, laptops, edge devices
LPULarge on-chip SRAM plus compiler-scheduled determinismLow-latency large-model inference
TrainiumAWS's own design; few large cores, each with a systolic array and multiple engine typesTraining and inference on AWS (Trn2 instances)
AscendHuawei's own design, DaVinci architecture, three unit types: Cube/Vector/ScalarTraining and inference within Huawei's ecosystem

AI Chip Architecture 101: Types and Comparison

 

01 · Types

What is an XPU: a catch-all term, not an architecture

Meaning 1

A heterogeneous-processor family

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

A custom AI chip

Broadcom calls the custom AI chips it builds for clients "XPUs." The "X" can be read as "any."

A related example

CPU and GPU co-packaged

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

The GPU's idea: trade massive threading for total throughput

CPU: minimize a single thread's latency

  • Few powerful cores, complex control logic
  • Large caches plus out-of-order and speculative execution
  • Cache hits hide memory latency

GPU: maximize every thread's combined throughput

  • Tens of thousands of threads in flight at once
  • A very large register file (H100: 256 KB per SM)
  • When one thread waits on memory, another steps in

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

Chip hierarchy: the H100 as an example

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

SM: the GPU's basic compute unit

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

How the GPU executes: threads, warps, and async transfers

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 TPU's idea: just build a big matrix-multiply array

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.

A few large cores

Each core holds an MXU, a vector unit, and a scalar unit; core count stays low.

Compiler-orchestrated

Programs compile through XLA, with the compiler scheduling compute and data movement.

Software-managed scratchpad

On-chip VMEM is controlled by the programmer or compiler — it's a scratchpad.

AI Chip Architecture 101: Types and Comparison

 

03 · TPU architecture

Chip composition and generations compared

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 chipTPU v5eTPU v6eTPU7x
TensorCores112
MXUs per core4, 128×1282, 256×2562, 256×256
HBM capacity and bandwidth16 GiB, 0.82 TB/s32 GiB, 1.6 TB/s192 GiB, 7.4 TB/s
bf16 peak197 TFLOPS920 TFLOPS2310 TFLOPS

AI Chip Architecture 101: Types and Comparison

 

03 · TPU architecture

How the TPU executes: a compiler-orchestrated data path

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

Who drives it

The scalar unit runs control flow, computes addresses, and issues the HBM-to-VMEM DMA.

Who schedules the timing

The XLA compiler overlaps transfer with compute: while one tile is computing, the next is already in transit.

Matrix multiply

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

System scaling: tying chips together with ICI

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

The NPU's idea: run AI inference within a power budget

What it is

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.

Division of labor

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

NPU's typical makeup and its limits

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

Needs quantization first

Most NPUs require INT8 or INT16 models; floating-point models must be quantized first, which can cost accuracy.

Slow when it doesn't fit

When a model exceeds local SRAM, it has to stream from external DRAM, roughly 10 to 50 times slower per access.

Limited operator coverage

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

How the NPU works: the model is split and routed

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

CPU

Sequential control, unsupported ops, latency-sensitive tasks.

GPU

Parallel data flow, plus graphics and some tensor work it's well suited for.

NPU

The scalar, vector, and tensor math in neural networks, at the lowest power.

AI Chip Architecture 101: Types and Comparison

 

05 · LPU

The LPU's idea: SRAM as main memory, the compiler fixes every step

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

Deterministic execution

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.

The goal is stable, low latency

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

How the LPU executes: the schedule is written at compile time

Different from GPU / TPU

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.

SRAM placed directly by software

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.

Multiple chips still synchronize

Chips use a near-synchronous protocol to cancel out clock drift, so hundreds of them follow the same schedule.

Result

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

The LPU's cost: scaling by stitching many chips together

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

Why stitch chips together

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.

Paired with a GPU

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

Trainium: AWS's own design, few large cores plus HBM

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

Difference from a GPU

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.

Similarity to a TPU

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

NeuronCore: four engine types, software-managed on-chip memory

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

Vector operations, such as softmax and normalization statistics.

Scalar

Elementwise operations, such as activations and adding bias.

GpSimd

Programmable engines that run custom C++ operators.

AI Chip Architecture 101: Types and Comparison

 

06 · Trainium

How Trainium scales: NeuronLink's torus

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

Point-to-point, no switches

Chips connect directly with no switches involved; dedicated collective-communication cores handle chip-to-chip data, leaving compute cores untouched.

Software

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: Huawei's own DaVinci architecture

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

Inside the AI Core: the Cube unit plus layered buffers

L1 Buffer

1 MB

→

L0A / L0B

64 KB each, matrix-multiply inputs

→

Cube unit

16³, 4,096 FP16 MACs

→

L0C

256 KB, accumulates results

The MTE transfer engine

Explicitly manages this data path, with dedicated functions like transpose and img2col, rather than a hardware cache.

Three independent instruction queues

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

How Ascend scales: HCCL plus multi-card systems

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

Communication library

HCCL handles card-to-card collective communication, a role similar to NVIDIA's NCCL, doing operations like all-reduce across an NPU cluster.

Software stack

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

Comparison 1: idea, control, and software

DimensionGPUTPUNPULPUTrainiumAscend
Core ideaMassive thread parallelismLarge matrix-multiply arrayLow-power AI inferenceSRAM plus determinismFew large cores, parallel enginesCube unit plus layered buffers
Control styleHardware-scheduled warpsCompiler-orchestrated instruction flowFixed ops, falls back to CPUStatic, compile-time scheduleCompiler plus NKI tilingInstruction queues plus event sync
SoftwareCUDAXLAVendor toolchainsGroq compilerNeuron SDKCANN, MindSpore
FlexibilityHighestTensor-workload focusedNarrow, fixed op setNarrowest, inference onlyAimed at AWS workloadsAimed at Huawei's ecosystem

AI Chip Architecture 101: Types and Comparison

 

08 · Full comparison

Comparison 2: memory, power, and scale

DimensionGPUTPUNPULPUTrainiumAscend
On-chip memoryRegisters, shared memory, L2VMEM scratchpadLocal SRAM, 1–16 MBSRAM as main memory, 500 MB per chipSBUF plus PSUML0/L1 layered buffers
External memoryHBMHBMExternal DRAMMostly SRAMHBM, 96 GiBOff-chip DDR/HBM
PowerB200: ~1000 WHigher throughput per wattFrom 0.5–2 WMeasured per rack~500 W910: ~350 W
ScalingNVLink plus networkingICI, 3D torusWithin one chipDirect chip-to-chipNeuronLink torusHCCL multi-card

AI Chip Architecture 101: Types and Comparison

 

08 · Full comparison

Comparison 3: how each architecture answers the same three questions

QuestionGPUTPUNPULPUTrainiumAscend
How it computesMany SMs with tensor coresLarge matrix array plus vector unitLow-precision MAC arrayCompiler-scheduled compute units128×128 array plus three engine typesCube plus Vector, Scalar
How data arrivesMulti-level cache hides latencyCompiler moves data to VMEMLocal SRAM, DRAM if it doesn't fitPlaced directly in SRAMDMA moves data to SBUFMTE explicitly moves data to L0/L1
How it's networkedNVLink plus networkingICI, 3D torusCoordinated within the SoCDirect chip-to-chip, synchronizedNeuronLink torusHCCL collective communication
Design starting pointRun any workloadThroughput per watt on large tensor workloadsA power budgetStable, low latencyAWS's own acceleratorHuawei's own accelerator

AI Chip Architecture 101: Types and Comparison

 

08 · Full comparison

Picking by scenario

ScenarioBetter fitWhy
Training, fine-tuning, varied workloadsGPUMost flexible, mature ecosystem
Large-scale, steady tensor workloadsTPUHigh throughput per watt, used via Google Cloud
On-device inference in phones, laptopsNPULow power, good enough
Low-latency token-by-token generationLPUHigh SRAM bandwidth, deterministic execution
Training and inference already on AWSTrainiumAWS's own design, used via Trn2 instances
Training and inference in Huawei's ecosystemAscendDaVinci 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

Summary: seven chip types, one line each

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

Sources

Pages checked for this talk

AI Chip Architecture 101: Types and Comparison

 

1 / 31