π¬ Chips β The Complete Guide
From Sand to Supercomputers: a first-principles guide to chip design and architecture, written for the AI/ML practitioner who optimizes models. By the end you will understand the hardware reasons behind every quantization, sparsity, batching, and parallelism decision you make.
Who This Is For
You train, fine-tune, quantize, prune, or serve neural networks. You are fluent in Python and PyTorch, comfortable with tensors, dtypes, and shapes β but the silicon underneath is a black box. Why is bf16 better than fp16 for training? Why does INT8 give a ~2Γ speedup but INT4 sometimes doesnβt? Why does a 70B model refuse to fit on one 80 GB GPU? Why is memory bandwidth β not FLOPs β usually what youβre actually waiting on? Why did 2:4 sparsity become a thing, and why not 3:7?
This guide answers all of that from first principles β starting at the transistor and building all the way up to multi-GPU training clusters and the post-Moore future. It is self-contained: every concept is explained here, from the ground up.
π Table of Contents
| # | Chapter | What Youβll Learn |
|---|---|---|
| Part I β Foundations: What Is a Chip? | Β | Β |
| 1 | What Is a Chip? | Sand β silicon β transistors; the MOSFET, doping, Mooreβs Law, Dennard scaling |
| 2 | Transistors to Logic | Boolean algebra, gates, combinational vs sequential logic, flip-flops, the ALU |
| 3 | Number Representation | Binary, twoβs complement, fixed vs floating point, IEEE-754 β with bit-inspection code |
| 4 | Anatomy of a Processor | von Neumann vs Harvard, fetch-decode-execute, datapath, registers, the clock, pipelining |
| 5 | Instruction Sets | ISA vs microarchitecture, RISC vs CISC, x86/ARM/RISC-V, SIMD & vector extensions |
| 6 | Languages & Nomenclature | Bare metal, firmware, microcode, assembly, Verilog/VHDL/RTL, HLS, CUDA, ROCm, Triton |
| 7 | Types of Chips (Taxonomy) | The full map: CPU/GPU/TPU/NPU/DSP/ISP/FPGA/ASIC/SoC/MCU in one comparison |
| Part II β Parallelism, Memory & Movement | Β | Β |
| 8 | Parallel Processing | ILP, superscalar, SIMD/SIMT, multicore, Flynnβs taxonomy, Amdahl vs Gustafson |
| 9 | Memory Types | Registers, SRAM, DRAM, DDR/GDDR/HBM, NAND; the hierarchy, latency & bandwidth numbers |
| 10 | Memory Management | Virtual memory, paging, MMU/TLB, cache coherence (MESI), NUMA, consistency |
| 11 | Memory Wall & Bandwidth | The roofline model, arithmetic intensity β why bandwidth, not FLOPs, bounds ML |
| 12 | Buses & Interconnects | On-chip (NoC, AXI) vs off-chip (PCIe, CXL, NVLink, UALink); topologies & bandwidth |
| 13 | Reliability & Fault Tolerance | ECC, RAS, soft errors, silent data corruption, redundancy β and long training runs |
| Part III β The Chips Themselves | Β | Β |
| 14 | CPUs | Out-of-order superscalar cores, branch prediction, caches; when/why CPUs for ML |
| 15 | GPUs | SIMT, SMs, warps, tensor cores, memory hierarchy β why GPUs won ML |
| 16 | TPUs & Systolic Arrays | Systolic arrays, matrix-multiply units, dataflow; Google TPU v1βTrillium |
| 17 | NPUs & Edge AI | Mobile/edge NPUs, Apple Neural Engine, Qualcomm Hexagon, Renesas DRP-AI |
| 18 | DSPs | MAC units, VLIW, signal-processing pipelines; where DSPs live |
| 19 | ISPs | Image signal processors, the camera pipeline, their place in SoCs |
| 20 | FPGAs | LUTs, reconfigurable fabric, when/why FPGAs, AI on FPGA |
| 21 | ASICs | The FPGAβASIC spectrum, NRE/full-custom, the AI-ASIC boom |
| 22 | SoCs | Integration, chiplets, heterogeneous compute, Apple M-series, mobile SoCs |
| Part IV β Datatypes (the keystone) | Β | Β |
| 23 | Number Formats Deep Dive | FP32βFP4, INT8βINT1, bit layouts, microscaling (MXFP, NVFP4) β with code |
| 24 | Datatypes & Silicon | How a format reshapes the multiplier, tensor core, and per-generation HW support |
| Part V β Optimization (HW β model co-design) | Β | Β |
| 25 | Quantization (Hardware View) | How low precision saves area/power/bandwidth β to what extent, and where it breaks |
| 26 | Sparsity (Hardware View) | Structured 2:4 sparsity, sparse tensor cores β to what extent it actually helps |
| Part VI β From Hardware to Usage | Β | Β |
| 27 | Why GPUs Won AI | How GPU parallelism maps to neural-net math; matmul as the workhorse |
| 28 | Multi-GPU & Distributed Training | Data/tensor/pipeline/expert parallelism, FSDP, ZeRO, 3D β why 70B wonβt fit on one GPU |
| 29 | Memory Hierarchy in Action | How HW memory limits drive KV-cache, batching, activation memory, offloading |
| 30 | Datatypes Drive Optimization | A practitionerβs decision framework: when INT8, when FP8, when 2:4 sparsity |
| Part VII β How Chips Are Designed, Verified & Tested | Β | Β |
| 31 | Chip Design Flow | Spec β RTL β synthesis β place & route β timing β DRC/LVS β tapeout; the EDA stack |
| 32 | Verification & Validation | Simulation, UVM, assertions, formal, coverage, DFT, emulation, post-silicon β with examples |
| Part VIII β The Industry: Players, Evolution & Future | Β | Β |
| 33 | Design-Paradigm Wars | NVIDIA vs AMD vs Intel vs ARM β design philosophies and how the lead changed hands |
| 34 | Generational Improvements | Process nodes, bandwidth growth, and tabulated family histories year over year |
| 35 | Where the Industry Is Headed | Chiplets, 3D stacking, CXL pooling, co-packaged optics, analog/in-memory, the post-Moore era |
| Appendices | Β | Β |
| A | How Chips Are Made | Sand β wafer β fab β EUV lithography β etch/doping β packaging β test; yield & binning |
| B | Foundry Ecosystem | TSMC/Samsung/Intel, the fabless model, EDA tools, IP cores, the supply chain |
| C | Photonics | Silicon photonics, co-packaged optics, optical interconnect & compute |
| D | Power & Thermals | Power delivery, DVFS, cooling, performance-per-watt, the energy cost of AI |
| E | Packaging & Integration | 2.5D/3D, CoWoS, interposers, HBM stacking, chiplets/UCIe |
| F | Glossary | Every acronym and term in one place |
| G | Resources | Books, courses, channels, blogs, papers, podcasts for going deeper |
| H | The Life of a Running Computer | What happens at power-on, how interrupts & the scheduler work, what βidleβ (HLT/C-states) really is, and who keeps the screen lit |
πΊοΈ Learning Path
β‘ Quick Start Paths
Path A: βI optimize models and want to know why my choices workβ (6 chapters)
- 11 β Memory Wall & Bandwidth β the roofline; why youβre memory-bound
- 23 β Number Formats Deep Dive β what FP8/INT4 really are
- 25 β Quantization (Hardware View) β how much it actually buys you
- 26 β Sparsity (Hardware View) β when 2:4 helps
- 29 β Memory Hierarchy in Action β KV-cache & batching
- 30 β Datatypes Drive Optimization β the decision framework
Path B: βI want to understand the hardware end-to-endβ (full guide)
Read Chapters 1 β 35 in order, then the appendices. Each builds on the previous.
Path C: βIβm scaling training to many GPUsβ (5 chapters)
- 09 β Memory Types β HBM and the memory hierarchy
- 12 β Buses & Interconnects β NVLink, PCIe, the fabric
- 15 β GPUs β whatβs inside the accelerator
- 27 β Why GPUs Won AI β the hardware/math fit
- 28 β Multi-GPU & Distributed Training β DP/TP/PP/FSDP/ZeRO
Path D: βIβm curious how chips are actually builtβ (4 reads)
- 31 β Chip Design Flow β RTL to GDSII
- 32 β Verification & Validation β how correctness is proven
- Appendix A β How Chips Are Made β the physical fab
- Appendix B β Foundry Ecosystem β the industry behind it
π Prerequisites
Youβll get the most out of this guide if youβre comfortable with:
- Python & PyTorch β tensors, dtypes, shapes, basic
nn.Moduleusage - Basic ML β what training, inference, and a matrix multiply are
- A little binary β bits and bytes (Chapter 3 reteaches everything else)
- Curiosity about hardware β no electrical-engineering background required
Everything else β semiconductor physics, logic design, computer architecture, HDLs β is taught from scratch.
ποΈ How This Guide Is Built
Every chapter follows a What β Why β Which β When β Where rhythm, and shares a consistent toolkit:
π Changelog
| Date | Changes |
|---|---|
| May 2026 | Initial release β 35 chapters + 7 appendices |
Last updated: May 2026 Β· Built with Jekyll, deployed on GitHub Pages.