H8: Adders & Multipliers
Time Estimate1-2 hours Grade Impact1% DueSep 14 @ 12pm
Additional Materials & Formats
Check Box for the most up-to-date versions of this lecture’s materials.
Notes
Show your work. You must show all steps of your work for full credit. While calculators can perform these calculations, demonstrating your process ensures understanding and mastery of the concepts.
Notation. To encourage flexibility between notations, the problems in this assignment use a variety of notations. We have discussed each style already; review the textbook or your notes if you need help.
Exercises
-
Derive the sum and carry outputs for a half adder. Construct the full truth table and write the Boolean expressions for each output in both sum-of-products and XOR/AND form.
-
Design a full adder using only AND, OR, and NOT gates. Show how the carry-out is formed from the three input bits and simplify your expressions as much as possible.
-
Add the two 5-bit binary numbers
10110and01111using a ripple-carry adder. Show each intermediate carry and sum bit, and give the final result in binary and decimal. -
For signed 4-bit two’s complement addition, determine whether overflow occurs for each case below. Explain your reasoning using carry into and out of the sign bit.
a.0101 + 0011
b.0111 + 0001
c.1100 + 1011 -
A full adder can be written as $S = A \oplus B \oplus C_{in}$ and $C_{out} = AB + AC_{in} + BC_{in}$. Show that the carry expression can also be written as $C_{out} = AB + C_{in}(A \oplus B)$. Verify the equivalence algebraically.
-
Use an adder to compute
9 - 6in 4-bit unsigned binary and-3 + 5in 4-bit two’s complement. Show how subtraction is converted into addition and identify any carry-out or overflow. -
For a 4-bit adder, define the propagate and generate signals for each bit. Using these signals, derive expressions for
C1,C2,C3, andC4in a carry lookahead adder. -
Explain how a subtraction-based adder can be used to compare two unsigned 4-bit numbers
AandB. Describe how to determine whetherA > B,A = B, orA < Bfrom the result and carry-out. -
Multiply
1011₂by110₂using the partial-products method. Show each shifted partial product and add them to obtain the final product. -
Multiply the 4-bit two’s complement numbers
1101and0011. Check your work by converting each number to decimal, perform the multiplication, and express the result in binary using enough bits to avoid overflow.