|
|||||
| | |||||
that is the equivalent of exclusive or (same for subtraction) because
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0 and carry the one
When designing this using a logic circuit, the exclusive-or part is called the "sum" output, and the carry is called the "carry" ouput. See type "adding binary numbers" in the search engine. Is under 'toolbox' category. This allows us to design a circuit which will mimic binary addition.
This circuit is called an "half-adder".
The web link above shows a full-adder.
an example of overflow is
0101
0110
| Leave a Reply |