(Solved): You are asked to design an 8-bit unsigned (a.k.a. magnitude) comparator out of an 8-bit adder/ subt ...
You are asked to design an 8-bit unsigned (a.k.a. magnitude) comparator out of an 8-bit adder/ subtractor, where \( \mathrm{C}_{\mathrm{in}}=0 \) for addition and \( \mathrm{Cin}_{\mathrm{in}}=1 \) for subtraction (refer to slide 11 of "ECE2300.02 Binary Arithmetic.pdf" but disregard Overflow) a. The comparator compares \( P_{7} . P_{0} \) to \( Q_{7} . Q_{0} \) and sets one and only one of its three outputs (GT, EQ, LT) to 1. Design the 8-bit magnitude comparator using a single 8-bit adder/ subtractor as a blackbox and minimal extra logic. Hint: Treat the outputs S7..So of the subtractor as a signed number in \( 2 C \) representation. ( 25 pts) b. Apply the three numerical cases below to your comparator design to verify that it produces the expected results. Show bit values at all the ports of the adder/subtractor in addition to the comparator outputs. You may hand-draw or use CircuitVerse for this part (15 pts) i. \( P_{7} . . P_{0}=14210, Q_{7} . Q_{0}=7510 \) ii. \( P_{7 .} P_{0}=7510, Q_{7} . Q_{0}=14210 \) iii. \( P_{7} . P_{0}=100_{10}, Q_{7} . Q_{0}=100_{10} \)