Full Adder
Last updated Jun 23, 2022
Chapter 1 - Classical Information and Computation > Full Adder
# Full Adder
- A circuit that adds three bits (a carry into the sum and the two bits we want to add) and outputs a carry and a bit of sum is called a full adder.
- Carry out is $1$ when $A$ and $B$ are both $1$, or when $C_{in} = 1$ and $A \oplus B = 1.$: $$C_{out} = AB + C_{in}(A \oplus B)$$
- The sum $S$ is 1 whenever one of the inputs $A, B$, or $C_{in}$ are $1$, or when all three of them are $1$. This is equivalent to the XOR of all three bits: $$S = A \oplus B \oplus C.$$
- The logic circuit is:

- Code in Verilog:
| |
# Sources
# Uses
It used in Ripple-carry adder to perform binary addition.