Syllabus

  1. 01How computers workThe four functions of a computer and its main components, binary and hexadecimal numbers, binary addition, subtraction, multiplication and division, two's complement and text encoding, logic gates, and building an adder and a small ALU from gates.5 lessons
    1. 01How a computer works
    2. 02Binary numbers
    3. 03Binary arithmetic and representing data
    4. 04Logic gates
    5. 05Building an adder from gates
  2. 02Instruction set architectureThe contract between software and hardware: what an ISA defines, CISC versus RISC, instruction formats and encoding, registers and addressing modes, and decoding a tiny ISA by hand.5 lessons
    1. 01What an instruction set architecture is
    2. 02CISC and RISC
    3. 03Instruction formats and encoding
    4. 04Registers and addressing modes
    5. 05Project: decode a tiny calculator ISA
  3. 03Assembly languageHow source code becomes machine code, and how to read and write RISC-V assembly: registers, loads and stores, arrays, branches, loops and function calls.4 lessons
    1. 01From source code to machine code
    2. 02Moving data: registers, loads and stores
    3. 03Branches, loops and functions
    4. 04Problem set: reading assembly
  4. 04Memory and cachesWhy caches exist and how they work: the memory hierarchy and locality, hits, misses and AMAT, mapping and associativity, replacement and write policies, and calculation practice.5 lessons
    1. 01The memory hierarchy
    2. 02Hits, misses and average access time
    3. 03Where blocks go: mapping and associativity
    4. 04Replacement and write policies
    5. 05Problem set: caches
  5. 05Instruction-level parallelismHow a processor overlaps the work of many instructions: the instruction cycle, pipelining, hazards and their remedies, superscalar and out-of-order execution, plus calculation practice.5 lessons
    1. 01The instruction cycle
    2. 02Pipelining
    3. 03Pipeline hazards
    4. 04Superscalar and out-of-order execution
    5. 05Problem set: instruction-level parallelism
  6. 06Data-level parallelismProcess many data elements with one instruction: Flynn's taxonomy, classic vector processors, SIMD extensions in everyday CPUs, GPUs and throughput computing, plus calculation practice.5 lessons
    1. 01Data-level parallelism and Flynn's taxonomy
    2. 02Vector processors
    3. 03SIMD extensions in everyday CPUs
    4. 04GPUs and throughput computing
    5. 05Problem set: data-level parallelism