In a Full Adder what's wrong with [c.(a+b) + a.b] as the expression of the Carry-Out? I checked it with truth table and gives correct output. But in all books the expression is [c.(a XOR b) + a.b].
Electronic – carry out of full adder
digital-logic
Related Topic
- # of gates in a 32 bit ripple carry adder
- Electronic – Which gate is better in buildiing the Full Adder ? XOR or OR
- Electrical – Full adder using DEC 2/4
- Electrical – Gate delay of carry out C and sum S in ripple carry adder
- Electronic – Formulas for Carry out in a Full Adder
- Electronic – How does a “standard” ripple carry adder behave
- Electronic – Why is the last carry block’s gate in a full adder an OR gate (and not a XOR)
Best Answer
You can write \$(A + B)\$ as \$A\cdot B + A \oplus B\$.
Therefore:
\$C \cdot(A+B) + A\cdot B = C \cdot (A\oplus B) + C \cdot A \cdot B + A\cdot B =\\ = C \cdot (A\oplus B) + (1+C) \cdot A \cdot B = C \cdot (A\oplus B) + A \cdot B \$
The latter formula is the one you intuitively get, when you calculate the carry: you have a carry out if at least two inputs are 1.
The books use the latter formula because you don't need to calculate again \$A \oplus B\$, because you can reuse the sum term \$S=A\oplus B\$ (i.e. you save one logic gate).