Xin Lou
School of Information Science and Technology · Fall 2026
From Python code to CPUs, GPUs, and AI clusters, to AI today and miniCPU.
Software translates programs into instructions: binary operations a CPU executes.



Get an instruction from memory, understand it, then do it.
I/O means input and output: how a computer receives and sends information.
The datapath carries values. Control signals (dashed) tell each part what to do.
The program counter (PC) holds an address; the next 32-bit instruction is four bytes away.
Pipelining overlaps instructions. A data hazard occurs when a needed result is not ready.
A CPU unites logic gates (L2), binary (L3), arithmetic (L4), and memory & clock (L5).

Clock rate alone is not speed: core count and parallelism matter just as much.
Core: a processing unit. CPUs use few large cores; GPUs pack many small parallel units.
SIMD (single instruction, multiple data): one operation across many pairs at once.



ASIC: a chip built for a specific job. FPGA: a chip whose logic can be rewired after manufacturing.
The scalar unit handles one value at a time; the vector unit works on groups of values.



Data: NVIDIA annual reports / SEC 10-K
PCIe: common system link. NVLink: fast GPU link. Cluster: networked computers.
Bandwidth: data moved per second. Nearby HBM feeds GPU math (PCI-SIG / Micron / NVIDIA).



Data: METR Time Horizon 1.1; model + tools
Token: a piece of text as a number. Every reply loops across software, memory and GPUs.
Each level gives us a different way to describe computation.
Load copies data from memory into a register; store copies it back to memory.
Run the swap on a RISC-V CPU built in Logisim, a circuit simulator.
Programs and data live in memory; CPUs execute instructions.
Control signals choose where data goes; a pipeline overlaps instructions.
GPUs and AI chips do many calculations in parallel.
Chips, memory and links form systems and clusters.