2 bits Full adder-subtractor

Thread Starter

alexmath

Joined May 2, 2014
17
Hi everyone! I've got 2 full adder-subtractors in front of me, both work, but in different ways. Both add in the same way, but when it comes to substraction they subtract different.

My 2 bits full adder-subtractor is done exactly like this one
where it says there is a problem with the borrow bit at the end.
Here aswell tells us that there's a problem at the end. 12:30
https://www.academia.edu/4020322/DE...OR_COMPOSITE_UNIT_USING_2_S_COMPLEMENT_METHOD

And the second one, made by my roomate, works with no problem at all even at subtraction. The question is, why don't we use the second version? Take a look at his circuit below.



when p is 0 ,subtracts, 1 adds
 

Thread Starter

alexmath

Joined May 2, 2014
17
As you can see here, mine should have a not borrow at the end.

Mine works in C2, and his doesn't? What's wrong here?
 
Top