Question: Give a circuit to add/subtract two 2-bit 2s complement numbers a1a0 and b1b0. Your circuit will have also have an input SUB, which is set

Give a circuit to add/subtract two 2-bit 2s complement numbers a1a0 and b1b0. Your circuit will have also have an input SUB, which is set to 0 if you want to add, and set to 1 if you want to subtract (ie. a1a0-b1b0). Your circuit will have three outputs C, s0 and s1, where C is the carry-out, s0 is bit 0 of the result, and s1 is bit 1 of the result. Finally, your circuit can ONLY use two 1-bit full adders and a few gates (AND,OR,NOT,NOR,NAND,XOR). Hint: XOR gates can be useful here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!