Skip to main content

6.004 / 6.1910: Computation Structures

Noisebridge

MIT 6.004 / 6.1910: Computation Structures

From the physics of complementary MOSFET switches to building pipelined 32-bit RISC-V (RV32I) processors, multi-level caches, virtual memory hierarchies, and secure enclave architectures.

Course Overview & Pedagogical Philosophy

Computation Structures is MIT's foundational course on digital systems architecture. Following the MIT OCW Educator pedagogical model, this course focuses on sharing the "How and Why" alongside the "What" of computer engineering:

Active Learning & Cognitive Scaffolding

Every lecture is modularized into 5-to-10 minute micro-segments paired immediately with interactive concept checks and diagnostics. The curriculum builds incrementally across seven rigorous abstraction layers:

  • Physical Device Physics & CMOS: Static discipline, VTCs, noise margins, complementary pullup/pulldown networks.
  • Combinational Logic & Arithmetic: Boolean minimization, K-maps, 32-bit Ripple-Carry and Carry-Select adders, RV32I ALUs.
  • Sequential Circuits & BSV Synthesis: Dynamic discipline timing ($t_{setup}, t_{hold}$), clock skew, Moore/Mealy FSMs, BSV guarded atomic rules.
  • Instruction Set Architecture: RISC-V RV32I contract, instruction decoding, ABI calling conventions, stack activation frames.
  • Processor Microarchitecture: Single-cycle CPU, multi-cycle microcoded FSM, 5-stage pipeline with hazard forwarding and load-use interlocks.
  • Memory Hierarchy & Operating Systems: Direct-mapped and set-associative caches (AMAT), Sv32 2-level virtual memory, TLBs, OS kernel privilege modes, and preemptive context switching.
  • Parallel Systems & Security: Cache coherence (MSI/MESI), atomic synchronization (`lr.w`/`sc.w`), vector accelerators (SIMD/TPUs), and hardware side-channel security (Spectre/Meltdown).

Weekly Time Budget & Study Pathways

Component Weekly Time Allocation Pedagogical Role & Activity
Lecture Micro-Segments ~2.0 – 2.5 hours Watch short 5–10 min conceptual segments with embedded active learning checks.
Supplementary Recitations ~1.0 hour Work through deep analytical problems (timing analysis, K-maps, assembly tracing).
Hands-On Design Labs ~3.0 – 5.0 hours Construct synthesizable hardware modules in Minispec/BSV and verify against automated testbenches.
Total Effort ~6.0 – 8.5 hours / week Structured for self-paced independent learners over 13–15 weeks.

Hands-On Lab Sequence & Capstone Design Project

  1. Lab 1: CMOS Technology & Gate-Level Design — DC sweeps, VTC noise margins, ring oscillator delays, AOI21 synthesis.
  2. Lab 2: CMOS Adder & Binary Arithmetic — 1-bit full adders, 32-bit ripple-carry adders, carry-select adders, signed overflow logic.
  3. Lab 3: Combinational ALU & Shifter Units — Complete 32-bit RV32I ALU with ADD/SUB, barrel shifters (SLL, SRL, SRA), and SLT comparisons.
  4. Lab 4: Sequential Circuits, FSMs & Controllers — Setup/hold timing under clock skew, synchronizers, 4-state traffic light controller.
  5. Lab 5: Pipelined Multipliers & Sorting Networks — Wallace 3:2 compressor trees, Batcher bitonic sorting networks in BSV.
  6. Lab 6: Direct-Mapped & 2-Way Set-Associative Caches — Tag/Index/Offset parsers, LRU replacement, write-back with dirty bits, AMAT modeling.
  7. Lab 7: Single/Two-Stage & 5-Stage Pipelined RV32I CPU — Hazard detection, EX-to-EX/MEM-to-EX forwarding, load-use stalls, branch flushes.
  8. Capstone Design Project: High-Performance RV32I SoC with Caches — Integrating 5-stage CPU, L1 I/D-caches, 2-bit branch predictor, and benchmark optimization.
Enroll