Unless specifically stated otherwise, you are encouraged to discuss solutions to the homework with other students. However, you must (1) spend at least 15 minutes on each and every problem alone, before discussing it with others, and (2) write up each and every problem in your own writing, using your own words, and understand the solution fully. You may also apply the Gilligan's Island approach - work together on a problem as much as you want, but watch a full episode of Gilligan's Island before writing down the solution or entering the program on your own.
Assignments are due at the beginning of class on the assigned due date. Assignments handed in during or immediately after class will incur a 10% penalty. We will not accept assignments after we have left the classroom.
Katz: Chapter 2, pp. 75-85, 92-102
Draw a new schematic, using your full adder, to implement a 4-bit 2's
complement
adder. This adder has two 4-bit inputs, and one 4-bit
output. (Ignore the carry out and assume there is no carry
in.)
Simulate this circuit using a test fixture that generates the
following 10 test cases:
Extra Credit: Add an extra output signal for the overflow condition. Recall that there is an overflow if the carry into the sign bit is different from the carry out of the sign bit.