I\'m a trying to find out the problem with this simple VHDL code. I\'ll be grateful if someone could help me.
PS: I tried the code without the conditional block and it w
Besides David's (correct) answer, note that if you are trying to make a 4-bit adder with Cout as the carry output, that process will not give the correct value. Consider A = "1111" and B = "0001". A(3) is '1' but B(3) is not, and the result is S = "0000" and Cout should be '1' but is '0'.