DE Notes
Complete guide to full adder: truth table, K-map minimization for Sum and Carry-out, logic circuit, 4-bit ripple carry adder, carry lookahead adder introduction, and Verilog code.
What is a Full Adder?
A full adder adds three 1-bit inputs — A, B, and Carry-in (Cin) — and produces a Sum and Carry-out (Cout). The Cin allows full adders to be cascaded for multi-bit addition.
Boolean Expressions (from K-map)
Sum K-map (3-variable):
Sum is the XOR of all three inputs — produces 1 when an odd number of inputs are 1.
Cout K-map:
| - AB | Cout when A=1, B=1 (regardless of Cin) |
| - A·Cin | when A=1, Cin=1 |
| - B·Cin | when B=1, Cin=1 |
Logic Circuit
Implementation using two half adders:
More precisely:
Gate count: 2 XOR + 2 AND + 1 OR = 5 gates
4-bit Ripple Carry Adder
Cascading 4 full adders (with the first Cin tied to 0):
Example: Add 0111 (7) + 0101 (5):
Problem: Carry ripple delay Each adder must wait for carry from previous stage. For n-bit adder: total delay = n × (full adder delay). For 16-bit: 16 × 3ns = 48ns.
Solution: Carry Lookahead Adder Computes all carries simultaneously using:
- Generate: G = A·B (this stage always generates a carry)
- Propagate: P = A⊕B (this stage propagates an incoming carry)
All carries computed in 2 gate delays regardless of bit width!
Verilog
Interview Questions
Q1: What are the Boolean expressions for Sum and Cout of a full adder? Sum = A ⊕ B ⊕ Cin (three-input XOR). Cout = A·B + B·Cin + A·Cin = majority function (output is 1 when 2 or more of the 3 inputs are 1).
Q2: How is a full adder constructed from two half adders? Half Adder 1: inputs A, B → outputs S1 = A⊕B, C1 = A·B. Half Adder 2: inputs S1, Cin → outputs Sum = S1⊕Cin = A⊕B⊕Cin, C2 = S1·Cin. Final Cout = C1 OR C2.
Q3: What is the propagation delay problem in ripple carry adders? In a ripple carry adder, each full adder must wait for the carry from the previous stage before computing its result. For an n-bit adder, the worst-case delay = n × (carry delay per stage). This grows linearly with bit width, making it slow for wide additions (e.g., 32-bit, 64-bit).
Q4: Why is carry lookahead faster than ripple carry? Carry lookahead computes all intermediate carries simultaneously in parallel using generate (G=AB) and propagate (P=A⊕B) signals. The delay is O(log n) for the lookahead logic, compared to O(n) for ripple carry — significantly faster for wide adders.
Q5: How many full adders are needed for an n-bit ripple carry adder? Exactly n full adders (one per bit position). The first position uses Cin=0 (or a half adder), each subsequent position receives carry from the previous one.
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Full Adder — Circuit, Truth Table, K-Map and Carry Propagation.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Digital Electronics topic.
Search Terms
digital-electronics, digital electronics, digital, electronics, combinational, circuits, full, adder
Related Digital Electronics Topics