Ohmwork
0 XP
C8Core EE

Computer organization

Reads and writes RISC-V assembly and machine code, including loops, arrays, strings, functions, recursion and integer and fixed-point arithmetic; explains how C compiles, links and starts up on a microcontroller; drives devices through memory-mapped registers, interrupts and DMA; measures performance with the performance equation and Amdahl's law; designs and times single-cycle and pipelined datapaths, with hazards and branch prediction; designs caches and explains virtual memory; and writes simulators and an emulator. Midterm and final exams.

0%0 of 55 pages

Test out of C8Already know this? Answer a few questions from its final exam, pass, and the whole course counts as finished.

130 h · 55 pages · After C7, A4

Unit 1The instruction cycle, instructions and memory8
  1. Fetch, decode, execute65 min
  2. RISC-V instructions and assembly2 h
  3. Overflow, comparisons and big numbers2 h
  4. Machine code and instruction encoding70 min
  5. CISC and RISC1.5 h
  6. Memory, addresses and the memory map85 min
  7. Instruction encoding labLab · 3 h
  8. Problem set 1Problem set · 4 h
Unit 2Loops, arrays, strings and structs5
  1. Branches and loops in assembly2 h
  2. Arrays and strings in assembly2 h
  3. Structs, unions and data layout2 h
  4. Dynamic memory and linked structures1.5 h
  5. Problem set 2Problem set · 4 h
Unit 3Branches, loops, data and functions3
  1. The stack and function calls1.5 h
  2. Recursion and stack frames90 min
  3. Problem set 3Problem set · 4 h
Unit 4C, pointers, bits and integer arithmetic6
  1. From C to assembly2 h
  2. Pointers and memory-mapped registers2 h
  3. Assembly labLab · 2 h
  4. Multiplication, division and fixed point2 h
  5. Floating point on a processor85 min
  6. Problem set 4Problem set · 4 h
Unit 5Functions, the stack and fixed point2
  1. Assembly functions labLab · 3 h
  2. Problem set 5Problem set · 4 h
Unit 6Interrupts, input and output, linking and performance9
  1. Interrupts and exceptions80 min
  2. Privilege modes and system calls1.5 h
  3. Input and output, polling, interrupts and DMA1.5 h
  4. Critical sections and atomicity1.5 h
  5. Atomic instructions and locks80 min
  6. Linking, loading and startup code75 min
  7. Measuring performance85 min
  8. What the compiler does1.5 h
  9. Problem set 6Problem set · 4 h
  1. Midterm examMidterm · 4.5 h
Unit 7Building the processor4
  1. The single-cycle processor80 min
  2. The control unit70 min
  3. The multi-cycle processor80 min
  4. Problem set 7Problem set · 4 h
Unit 8Datapaths, pipelines and prediction5
  1. Caches and pipelines, previewed75 min
  2. Pipelining and hazards90 min
  3. Branch prediction and parallel processors1.5 h
  4. SIMD and vector instructions1.5 h
  5. Problem set 8Problem set · 4 h
Unit 9Caches, writes and coherence3
  1. Cache design1.5 h
  2. Writes, coherence and DMA80 min
  3. Problem set 9Problem set · 4 h
Unit 10Caches, virtual memory and simulation4
  1. Virtual memory90 min
  2. Main memory and buses85 min
  3. Computer organization labLab · 2 h
  4. Problem set 10Problem set · 4 h
Unit 11Virtual memory, DRAM and buses2
  1. Cache and memory labLab · 3 h
  2. Problem set 11Problem set · 4 h
Unit 12Computer organization across the course2
  1. Project: a RISC-V emulatorProject · 2 h
  2. Problem set 12Problem set · 4.5 h
  1. Final examFinal exam · 4.5 h