I have to implement a full adder circuit where I have two control inputs O1 and O0. When O1 and O0 are 0 0 it should add A+B (and it does). When O1 and O0 are 0 1 and 1 0 they have to add A-B and B-A respectively and when O1 and O0 are 1 1 it adds -A-B.
Using XOR, AND and NOT logic gates was able to implement a circuit that does the first three operations because it inverts only one number (A or B) however I can't make it add the -A-B or -(A+B) .
Using XOR, AND and NOT logic gates was able to implement a circuit that does the first three operations because it inverts only one number (A or B) however I can't make it add the -A-B or -(A+B) .