CS 207
Final Exam
Ondich
Due 5:00 PM Monday, November 19, 2001

This is an exam. If you have questions, you may consult books, the Internet, or Jeff Ondich, but not anybody else.

Have fun.

  1. (8 points) If you watch a 7-line digital display (the kind that displays a single digit on a digital clock), you will see that the bottom line lights up when the display is showing a 0, 2, 3, 5, 6, 8, or 9, and does not light up for 1, 4, or 7.

    Design a circuit that takes a 4-bit number as input and produces 1 bit of output. For input values between 0 and 9 (i.e. 0000 through 1001), the output should be a 1 if the bottom line of the corresponding 7-line display should be lit, and 0 otherwise. So, for example, if the input is 0010, the output should be 1 because the bottom line of a 7-line display is lit when the display is showing a 2. For input values between 10 and 15 (i.e. 1010 through 1111), it does not matter what your output value is.

    Design your circuit to be as simple as possible.

  2. (10 points) Consider the following caches, each of which can hold up to sixteen 32-bit words of data. Assume that addresses are 32 bits long.

    For each of these caches, answer the following questions.

  3. (5 points) Consider the datapath shown in Figure 5.22. Show how you would modify this datapath to enable it to support the BNE instruction. Would you need to modify the control as well? If not, why not? If so, how?

  4. (3 points) Those jokes were awful. Let's try this instead: please recommend a book for me to read.

  5. (16 points) John von Neumann's "First Draft of a Report on the EDVAC." I will give you a copy of the first ten pages of von Neumann's report on Wednesday in class. Read it and answer the following questions.