I'm building a 16-bit ALU that needs to be able to perform logical AND, OR, add, subtract and rotate one bit to the left.
I need to have addition and subtraction operate with different op codes through a mux. Right now I have my addition and subtraction going through the same output in my full adder.
Here's my 1-bit ALU slice. I'm wondering how I can alter it so I can have subtraction be it's own operation.