CMPE 120

Computer Organization and Architecture

Welcome to CMPE 120! We’re so happy to have you in this course. Many of you have been writing programs for a couple of years now, and they have always run on computer hardware. The cool part was that you were able to learn how to program without needing to think much about how the hardware executed your code. But, at some point in your software engineering career, you will be confronted with the fact that some hardware is running your code—and something is going wrong with the way they are interacting. Not only does it impact your program, but also that of your colleagues! Oh no! This course will help demystify why this is happening and how to fix it, turning you into an even stronger software engineer.

Please read the official course syllabus with all the grading information.

Schedule

The current schedule is tentative and subject to change depending on how the class progresses. Slides and assignments will be posted in the schedule below. The classes listed as (async) will not be held in-person. They will instead be posted as recorded lectures on Canvas.

For the suggested reading, we will be using these textbooks:

Week Date Lecture Topic Homework Suggested Reading
0 Thu, Aug 20 Introduction [blank slides; sec01 slides; sec02 slides] HW0 out
1 Tue, Aug 25 Intro to C & binary [blank slides; slides1; demo1; slides2; demo2] DIS 1.1 - 1.4
Thu, Aug 27 More binary & overflow [blank slides; slides1; demo1; slides2; demo2] HW0 due DIS 4.1 - 4.5
2 Tue, Sep 1 Binary wrap-up & strings (async) [blank slides; annotated slides; demo] DIS 1.5
Thu, Sep 3 Unicode & bitwise operators (async) [blank slides; annotated slides; demo] HW1 out DIS 4.6
3 Tue, Sep 8 Intro to memory and pointers [blank slides; slides1; demo1; slides2; demo2] DIS 2.1 - 2.3
Thu, Sep 10 Dynamic memory allocation [blank slides; slides1; demo1; slides2; demo2] DIS 2.4 - 2.5
4 Tue, Sep 15 Structs, linked lists [blank slides; slides1; demo1; slides2; demo2] DIS 1.6, DIS 2.7
Thu, Sep 17 Intro to ISA [blank slides; slides1; slides2] HW1 due; HW2 out P&H 1.1 - 1.3, P & H 2.1 - 2.3
5 Tue, Sep 22 ISA instructions; HW1 quiz [blank slides; slides1; slides2] P&H 2.7, DIS 3.1 - 3.2
Thu, Sep 24 Control flow & gdb [blank slides; slides1; slides2] P&H 2.8
6 Tue, Sep 29 More control flow [blank slides; slides1; slides2] P&H 2.8
Thu, Oct 1 Amdahl’s law [blank slides; slides1; slides2] HW2 due; HW3 out P&H 1.6 - 1.7 P&H 1.10
7 Tue, Oct 6 Performance equation ; HW2 quiz [blank slides; slides1; slides2]
Thu, Oct 8 Single cycle processor & midterm review [blank slides; slides1; slides2] P&H 4.1, 4.3 - 4.4
8 Tue, Oct 13 MIDTERM EXAM
Thu, Oct 15 Pipelining [slides] HW3 due; HW4 out P&H 4.5 - 4.6
9 Tue, Oct 20 Pipelining; HW3 quiz [blank slides; slides1; slides2] P&H 4.7
Thu, Oct 22 Pipelining [blank slides; slides1; slides2]
10 Tue, Oct 27 Speculation [blank slides; slides1; slides2] P&H 4.8
Thu, Oct 29 Speculation [blank slides; slides1; slides2]
11 Tue, Nov 3 Cache design [blank slides; slides1; slides2] P&H 5.1 - 5.3
Thu, Nov 5 Cache design [blank slides; slides1; slides2] HW4 due; HW5 out
12 Tue, Nov 10 Caches and your programs; HW4 quiz [blank slides; slides1; slides2] P&H 5.4
Thu, Nov 12 Virtual memory & paging [blank slides; slides1; slides2] P&H 5.7
13 Tue, Nov 17 Virtual memory & paging
Thu, Nov 19 Superscalar & VLIW architectures HW5 due P&H 4.10
14 Tue, Nov 24 Security (cache side-channel attacks)
Thu, Nov 26 NO CLASS - Happy Thanksgiving!
15 Tue, Dec 1 Multicore, SMT; HW5 quiz P&H 6.2, 6.4
Thu, Dec 3 SIMD & GPU architectures & hardware-software codesign P&H 6.3, 6.6
16 Thu, Dec 10 FINAL EXAM - SEC 01
17 Tue, Dec 15 FINAL EXAM - SEC 02

Many parts of this course are thanks to Leo Porter and Pat Pannuto.