Spring 1999, Computer Org, Assignment 5

Answers

  1. No circuits on test
  2. No circuits on test
  3. (4 points) Mic-2
  4. (2 poionts) Whenever the ALU does subtraction for unsigned numbers, it inverts the normal carry out bit to set the carry flag. How would this be implemeted in hardware?
  5. (2 points) It is not reliable to use the N bit to determine the relative order of two unsigned numbers. Give me an example of subtracting unsigned numbers as follows:
  6. (4 points) Mic-3. Figure 4-33 on page 258 shows how the SWAP instruction from Mic-2 would be sequenced in Mic-3.
  7. (2 points) Consider the direct-mapped cache on page 267.