Computer scienceLearning library

Computer architecture

Connect digital logic, instruction execution, memory hierarchy, and operating-system boundaries. Classical models and archived teaching systems are labeled explicitly; current ISA details come from ratified specifications.

Intermediate15 chapters11 practice questions5 references
Start coursePractise questions

Get an in-app notice when new lessons or practice are added.

15 chapters across 5 modules

Course chapters

Explore all 15 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.

01 · Logic and representation3 chapters
  1. Bits, integers, and overflow

    • Interpret a bit pattern using an explicit width and signedness

    Practice: Convert eight-bit values and distinguish carry from signed overflow.

    Read the primary referenceLesson guide · Ready
  2. Boolean logic and combinational circuits

    • Derive a truth table before implementing a small circuit

    Practice: Design a multiplexer and verify all control/input combinations.

    Read the primary referenceLesson guide · Ready
  3. State, clocks, and registers

    • Distinguish stored state from combinational output

    Practice: Trace a register update over a sequence of clock edges.

    Read the primary referenceLesson guide · Ready
02 · Instruction-set execution3 chapters
  1. Instructions, registers, and the program counter

    • Trace changes in architectural state for a short instruction sequence

    Practice: Step through a small arithmetic and branch example using a documented base ISA.

    Read the primary referenceLesson guide · Ready
  2. Loads, stores, and alignment

    • Explain how addresses, widths, and byte order affect memory access

    Practice: Map a byte array to word loads under explicit alignment assumptions.

    Read the primary referenceLesson guide · Ready
  3. Calling conventions and stack frames

    • Distinguish ISA instructions from the software calling convention

    Practice: Trace arguments, return addresses, and saved registers through two calls.

    Read the primary referenceLesson guide · Ready
03 · Memory hierarchy3 chapters
  1. Memory hierarchy and locality

    Relate a program’s access pattern to the storage levels that serve it.

    • Explain why access pattern changes effective memory cost

    Practice: Compare sequential and strided accesses using a simple cache model.

    Read the primary referenceExpanded reading · Ready
  2. Cache mapping and misses

    • Classify compulsory, capacity, and conflict misses in a stated model

    Practice: Trace a short access sequence through a tiny direct-mapped cache.

    Read the primary referenceLesson guide · Ready
  3. Virtual addresses and translation

    • Separate virtual addresses, physical frames, and permission checks

    Practice: Translate sample addresses through a small page table and identify a fault.

    Read the primary referenceLesson guide · Ready
04 · Pipelines and parallelism3 chapters
  1. Pipelining and hazards

    • Distinguish increased throughput from reduced single-instruction latency

    Practice: Schedule a dependent instruction sequence and identify stalls.

    Read the primary referenceLesson guide · Ready
  2. Branches and speculation

    • Explain why incorrect speculation must not change architectural results

    Practice: Compare a predictable and unpredictable branch under an explicit cost model.

    Read the primary referenceLesson guide · Ready
  3. Multicore sharing and ordering

    • Separate cache coherence from a program’s synchronization rules

    Practice: Analyze a shared flag example and state what ordering guarantee is missing.

    Read the primary referenceLesson guide · Ready
05 · Hardware and systems boundaries3 chapters
  1. Traps, interrupts, and privilege

    • Explain how control moves from an application into privileged code

    Practice: Draw a system-call path in the archived xv6 teaching system.

    Read the primary referenceLesson guide · Ready
  2. Performance models and measurement

    • Use latency, throughput, and Amdahl’s law under stated assumptions

    Practice: Estimate the maximum gain from improving one measured component.

    Read the primary referenceLesson guide · Ready
  3. Build an instruction trace explorer

    • Connect instructions, memory accesses, and visible results

    Practice: Implement a tiny trace interpreter and document the instructions it supports.

    Read the primary referenceLesson guide · Ready

Learn it. Check it. Try again.

11 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.

Open Computer architecture practice

Books & references

Free reading at the publisher or author’s site. External materials keep their own licenses.