Skip to content

CSE142: Computer Architecture: Software Perspective (2022 Summer Session II)

Online: Zoom or
Lecture: MTuWTh 2:00p – 3:20p @ Zoom Lecture Link

Schedule and SlidesAssignmentsLogistics


Hung-Wei Tseng
email: htseng @
Office Hours: Tu 11a-12p F 9a-12p @ Zoom Office Hour Link

Teaching Assistant

Parthasarathi Kumar
email: pakumar @
Office hours: MTh 7p-9p @ Zoom Office Hour Link
Discussion Session: W 5p-7p @ Zoom Lecture Link

Other important links

Quizzes, Assignments, Grading: Canvas
Discussion Forum on Piazza:
YouTube Channel:

Course Overview

This course will describe the basics of modern processor operation. Topics include computer system performance, instruction set architectures, pipelining, branch prediction, memory-hierarchy design, and a brief introduction to multiprocessor architecture issues. This course is taught in tandem with CSE141L. Unless you have discussed it with you me, you should be in enrolled in both.

Text books

Required: Patterson & Hennessy, Computer Organization and Design MIPS Edition: The Hardware/Software Interface (The Morgan Kaufmann Series in Computer Architecture and Design) 6th Edition
Required: Other assigned readings throughout the quarter.


  • Homework 25%
    Homeworks will be assigned throughout the course.
    • Class participation — count as two assignments
      This class uses “peer instruction” and your participation in discussion questions during the lecture is important to the success of the class!
  • Reading Quizzes 15%
    We will have reading quizzes on Canvas!
  • Midterm 25%
  • Final 35%
    The final will be cumulative.
  • Additional notes about grades in this course
    • Your score will be available on Canvas. Your final grade is the weighted average of these grades.
      We do our best to record grades accurately, but you should double-check.
    • Late submission: We do not accept any late submission, including quiz, assignments, projects.
    • Errors in grading: If you feel there has been an error in how an assignment or test was graded, you have one week from when the assignment is return to bring it to our attention. You must submit (via email to the instructor and the appropriate TAs) a written description of the problem. Neither I nor the TAs will discuss regrades without receiving an email from you about it first. For arithmetic errors (adding up points etc.) you do not need to submit anything in writing, but the one week limit still applies.
    • For midterm and final: We do not regrade on a single problem. We will re-grade your whole test. The one week regrading window still applies.
    • Final grades: If you have a problem with your final grade in the course, send me email and we can set up an appointment to discuss it.

Schedule and Slides

Topic Reading Slides
Slides (Release) Due Note
08/01/2022 Introduction: the Big Picture of Computers 1.1-1.5, 2.12
(1) Introduction


08/02/2022 Performance: What affects performance?1.6, 1.8 & 1.11Performance (Preview)(2) Performance I: The Basics

Reading quiz for 1.6, 1.8 and 1.10
due before class

08/03/2022 Performance (II)(3) Performance II: How can I get better?


08/04/2022 Performance (III)(4) Performance III: Mine is better than your — really?

Reading quiz for 2.1 – 2.5, 2.14, 2.17, 2.18, 2.19, 2.20, 2.21

Assignment #1 due 8/7 midnight

08/08/2022 Instruction Set Architecture2.1 – 2.5, 2.14, 2.17, 2.18, 2.19, 2.20, 2.21ISA (Preview)(5) ISA: Now you see meReading quiz for 5.1-5.3
08/09/2022 Memory Hierarchy5.1 – 5.3Memory (Preview)(6) Memory I: Inside out your computer memory
08/10/2022Memory Hierarchy (II)5.4, 5.8(7) Memory II: The A, B, Cs of of your cacheReading quiz for 5.4 and 5.7-5.8
08/11/2022 Memory Hierarchy (III)
(8) Memory III: Roots and Remedies

Assignment #2 due 8/14 midnight
08/15/2022Memory Hierarchy (IV)5.7Virtual Memory (Preview)(9) Memory 4: Just an illusion

Demo (Blocking algorithm and transpose)

Demo (Data structures)

Demo (Data Prefetch)

Demo (Virtual Memory)

08/16/2022 Virtual Memory
(10) Virtual Memory

Demo (Virtual Memory)
08/17/2022Midterm Review(11) Midterm ReviewAssignment #3 due 8/17 midnight
08/18/2022 Midterm

08/22/2022 Pipelined processors4.1-4.3, 4.6Modern Processor Design (Preview)(12) Processor Design I: In the pipeline Reading quiz for 4.1-4.3, 4.6 and 4.9
08/23/2022 Pipelined processors (II)4.9(13) Processor Design II: I guess I just feel like
08/24/2022 Pipelined processors (III)4.8Data hazards (Preview)(14) Processor Design III: Data HazardsReading quiz for 4.8 and 4.11
08/25/2022 Parallelism (I): ILP4.11(15) Dynamic Instruction SchedulingAssignment #4 due 8/28 midnight
08/29/2022Parallelism (II): TLPProgramming for Modern Processors (Preview)(16) Programming on Modern Processors

Demo (popcount)
Reading quiz for 6.1-6.7
08/30/2022 Parallelism (III): CMPParallel Architectures (Preview)(17) Programming on Modern Processors (2) and Parallel Architectures (1)

Demo (Optimizing code)
Demo (Slowest ALU operations)

08/31/2022 Parallelism (IV): SIMD and DSA6.6-6.7
(18) Parallel Architectures (2)


09/01/2022 Final Review
(19) Final ReviewAssignment #5 due 9/1 midnight
09/02/2022Final Exam (3p-6p)


  • Assignment #1
  • Assignment #2
  • Assignment #3
    • Please find the homework questions and complete the homework using the 
    • Due 8/17/2022 midnight
  • Assignment #4
    • Please find the homework questions and complete the homework using the.
    • Due 8/28/2022 midnight
  • Assignment #5
    • Please find the homework questions and complete the homework using the.
    • Due 9/1/2022 midnight
  • Cheating WILL be taken seriously. Doing otherwise is not fair to honest students. It is also not fair to allow the cheater to thing that it is a reasonable alternative in life.
  • Please review the UCSD student handbook for more details on Academic Integrity.
  • Anyone copying information or having information copied during a test will receive an F for the class and will not be allowed to drop. They will be reported to their college dean. If you can prove non-cooperative copying took place, your grade may be restored, but you must prove it to the dean–I don’t want to be involved. Anyone caught cheating or falsely representing the work of others on the homework will not be allowed to turn in further homework. Your grade will be based exclusively on the tests with a penalty of 25% OR GREATER applied.
  • We photocopy a random sampling of the exams in order to ensure that students do not modify their tests after they have been returned.
  • Online solutions, etc.: A solutions manual exists for this text. Using it, or any solutions you may find on the internet elsewhere IS CHEATING and will be dealt with accordingly. We know what the solution manual solutions look like. Homework is a small fraction of your grade, so cheating on it is unproductive.