
CPSC 5155 Computer Architecture
Final Exam December 11, 2008
THIS TEST IS OPEN-BOOK, OPEN-NOTES.
SHOW ALL OF YOUR WORK ON EACH QUESTION. A CORRECT ANSWER, BY
ITSELF, WILL GET ONLY PARTIAL CREDIT. I MUST SEE HOW YOU GOT IT.
1. (15 points). Assemble the Boz–5 instruction XOR %R3, %R2, %R1.
Show the machine language as eight hexadecimal digits.
2. (15 points) A given computer design calls for an 18-bit MAR and an 8-bit MBR.
a) How many addressable memory elements can the memory contain?
b) How many bits does each addressable unit contain?
c) What is the size of the address space in bytes?
NOTE: The answer can be given in many ways. If the answer were 16K, you
might say either 16K, 214, or 16384.
3. (10 points) You are asked to design a 128K-by-16 memory using available chips.
How many 16K-by-4 memory chips would be required for the design?
4. (15 points) Calculate the effective address for each of the following instructions. Assume
that the contents of the index register 3 are (%R3) = – 7; W is the memory location 0x007D and
that a partial memory map looks as follows:
Address 75 76 77 78 79 7A 7B 7C 7D 7E 7F 80 81 82
Contents 4D 7F 4F BA BA 77 8F 22 82 DD E1 23 F0 0D
a) LDR, %R1 W . Remember that W refers to address 0x7D
b) BR * W . Remember that this is indirect addressing
c) BR * W, 3 . Handle this the way that the Boz-3b does
5. (15 points) Draw a circuit diagram to show how to implement a three-input NAND
gate using only two-input NAND gates. This is not an easy problem.
6. Using any proof method desired, prove that
= X + Y for all X and Y.
7. (10 points) Produce the truth-table for the Boolean function
G(A, B, C) = (AB + C)(A + BC).
8. (10 points) Produce the -list and -list representations of this function.