C8 Core 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.
Test out of C8 Already 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 1 The instruction cycle, instructions and memory 8
Fetch, decode, execute 65 min
RISC-V instructions and assembly 2 h
Overflow, comparisons and big numbers 2 h
Machine code and instruction encoding 70 min
CISC and RISC 1.5 h
Memory, addresses and the memory map 85 min
Instruction encoding lab Lab · 3 h
Problem set 1 Problem set · 4 h
Unit 2 Loops, arrays, strings and structs 5
Branches and loops in assembly 2 h
Arrays and strings in assembly 2 h
Structs, unions and data layout 2 h
Dynamic memory and linked structures 1.5 h
Problem set 2 Problem set · 4 h
Unit 3 Branches, loops, data and functions 3
The stack and function calls 1.5 h
Recursion and stack frames 90 min
Problem set 3 Problem set · 4 h
Unit 4 C, pointers, bits and integer arithmetic 6
From C to assembly 2 h
Pointers and memory-mapped registers 2 h
Assembly lab Lab · 2 h
Multiplication, division and fixed point 2 h
Floating point on a processor 85 min
Problem set 4 Problem set · 4 h
Unit 5 Functions, the stack and fixed point 2
Assembly functions lab Lab · 3 h
Problem set 5 Problem set · 4 h
Unit 6 Interrupts, input and output, linking and performance 9
Interrupts and exceptions 80 min
Privilege modes and system calls 1.5 h
Input and output, polling, interrupts and DMA 1.5 h
Critical sections and atomicity 1.5 h
Atomic instructions and locks 80 min
Linking, loading and startup code 75 min
Measuring performance 85 min
What the compiler does 1.5 h
Problem set 6 Problem set · 4 h
Midterm exam Midterm · 4.5 h
Unit 7 Building the processor 4
The single-cycle processor 80 min
The control unit 70 min
The multi-cycle processor 80 min
Problem set 7 Problem set · 4 h
Unit 8 Datapaths, pipelines and prediction 5
Caches and pipelines, previewed 75 min
Pipelining and hazards 90 min
Branch prediction and parallel processors 1.5 h
SIMD and vector instructions 1.5 h
Problem set 8 Problem set · 4 h
Unit 9 Caches, writes and coherence 3
Cache design 1.5 h
Writes, coherence and DMA 80 min
Problem set 9 Problem set · 4 h
Unit 10 Caches, virtual memory and simulation 4
Virtual memory 90 min
Main memory and buses 85 min
Computer organization lab Lab · 2 h
Problem set 10 Problem set · 4 h
Unit 11 Virtual memory, DRAM and buses 2
Cache and memory lab Lab · 3 h
Problem set 11 Problem set · 4 h
Unit 12 Computer organization across the course 2
Project: a RISC-V emulator Project · 2 h
Problem set 12 Problem set · 4.5 h
Final exam Final exam · 4.5 h