0706.205.01 Computer Organization
Homework 1
Performance / Simple Machine Instruction
Due Date
- Wednesday, February 20 (11:59pm)
- Extension: Monday, February 25
Form of Submission
Homework can submitted via email or printout by deadline.
Preparation
Patterson & Hennessy. Chapters 2 and Chapter 3 (through Section 3.5)
Questions
- Patterson & Hennessy: Exercise 2.1
- P&H: Exercise 2.2
- P&H: Exercise 2.3
- P&H: Exercise 2.10
- P&H: Exercise 2.11
- P&H: Exercise 2.14
- Both Machine A and Machine B execute a certain program in the
same amount of time. Machine A has a clock rate of 200MHz and
a CPI of 1.8 (for the program), while Machine B has a clock rate
of 300MHz and CPI of 2.4. Compare the number of instructions
performed by Machine A and Machine B during the execution of
the program.
- Complete the empty slots in the following table:
(Note the "0x" convention to denote hexadecimal values)
| Binary (Base 2) |
Decimal (Base 10) |
Hexadecimal (Base 16) |
| |
80 |
|
| |
144 |
|
| 1000 0001 |
|
|
| |
|
0xD8 |
- Compute the following sums, staying in base 2 or base 16, as appropriate:
- 1010 + 0011 (binary)
- 0111 + 0011 (binary)
- 0x14 + 0x19
- 0x2F + 0x81
- Patterson & Hennessy: Exercise 3.1
This question uses a MIPS instruction that was only alluded to in
class (on Feb 7). ADDI is used to add a constant
value (in machine language idiom, an immediate value)
and a register value, storing the result in a register. Also note
the two new register names ($a0 and $v0).
- P&H: Exercise 3.9
- P&H: Exercise 3.11
This question will require some work; the authors think that it
will take you 30 minutes to complete.