Pre-class Assignment
Complete the participation activities for Chapters 3.1–3.3. Note: participation activities are the orange ones; you do not need to complete the blue challenge activities. We will do these in class or for homework.
Announcements
- Homework 1 is out and will be due next Monday Jan 30th before lab. Work can be submitted on Moodle.
- If you haven’t been able to get the zyBook yet, please complete the participation activities when you get your book; I’ll wait to grade for a few days so everyone can get caught up. Work with someone near you on class exercises for today.
- We will have our first lab Monday in Singer 221 at 1:15pm.
- Office hours: by appointment (email me if none of those times work)
Learning Objectives and Outcomes
In this lecture you will:
- listen to a short lecture reviewing the MIPS instruction language and basic instructions
- complete in class challenge activities and labs to learn the basics of using MIPS
By the end of this lecture you should be able to:
- write basic programs in MIPS that can execute arithmetic functions such as addition, subtraction, and multiplication.
Lecture Content
- Minor comment from last time:
- When the book talks about “performance,” this usually means 1/execution time (i.e. faster execution time = higher performance)
- MIPS
- introduction to instruction types
add
, sub
addi
, subi
lw
, sw
- MIPS Design Principles So Far:
- Design Principle 1: Simplicity favors regularity.
- Design Principle 2: Smaller is faster.
- Class activity
- Challenge Activity 3.3.1
- Challenge Activity 3.3.2
In Class Exercises