Tom Kelliher, CS 240
Mar. 8, 1999
Midterm Wednesday. Class Friday.
From now on, assigned readings will be classified as covered material or background material. At the beginning of the next class I will ask for questions on the background material. Other than answering those questions, we will not discuss the background material in class.
You are responsible for reading the background material before class.
For next Friday.
Background material: Section 5.1 minus An Overview of the Implementation.
Covered material: An Overview of the Implementation, Section 5.2.
Homework
Bicycle light.
Four problems.
Open book. Study as if closed book.
Classes of instructions.
Instruction formats.
Various types of branches and why we have them.
Registers and their use.
Load/store and memory addressing. Word addressing vs. byte addressing. Effective address.
Unsigned, sign-magnitude, one's complement, two's complement. Ranges, symmetry, etc.
Why one's complement is called one's complement. This generalizes to
the
's and b's complement in radix b number systems.
Computation of the complements. Example: decimal system.
Powers of two, hexadecimal number system, converting between hex and binary.
Addition. Use of same adder for signed and unsigned operations.
Sign extension.
Overflow.
Logical operations. Bitwise operations and masks. Shifts and rotates. The two right shifts.
Carry lookahead. Addition reduces to carry generation. Equations for p, g, carry-out, P, G, PP, and GG.
NOT, OR, AND, and XOR.
Realizing SOP equations and counting delays.
Truth tables and minterms.