
CPSC 2105 Introduction to Computer Organization
Homework Set 2 Due Wednesday, April 4, 2007
HOMEWORK KEY WITH ANSWERS AND COMMENTS
1. Use a 2–to–4 active–high decoder and an OR gate to implement the
exclusive NOR function F(X, Y) = NOT (X Y).
Answer: Let’s look at the truth table implementation of NOT(X Y).
Row X Y X Y NOT(X Y)
0 0 0 0 1
1 0 1 1 0
2 1 0 1 0
3 1 1 0 1
We can write F(X, Y) = NOT(X Y) = (0, 3). This leads immediately to the answer.
2. Use a 4–to–1 multiplexer to implement the same function.
Answer: We still have F(X, Y) = NOT(X Y) = (0, 3). This also gives the answer.