Karnaugh map for 3 variables

karnaugh map

I am trying to create a binary adder. I have this truth table:

enter image description here

This is the Karnaugh map that I made for this function (see that there is a mistake: instead of c, it had to be "c-in"):

enter image description here

Now, as the map looks like that, it gives me that s = c + c but that is certainly false. Can anyone help me with this?

Best Answer

If we look at the top left corner, where a=0 and c=0, we see that s follows b. This gives us a partial result of s=b. Moving down to the bottom left corner, we see that s is inverted when a=1. This is the XOR operation, and gives us s=a^b. Moving over to the right side, we see that the output is inverted when c=1. This gives us our final result of s=a^b^c.