Unit 5: Adder Chronicles
I. Orientation: Binary Addition in Combinational Logic
A binary adder is a combinational logic circuit that performs arithmetic addition on binary digits. Its outputs depend only on the present input values, not on previous inputs or stored state. The fundamental binary operation combines input bits and produces a sum bit and, when necessary, a carry bit.
- Binary variables: Each input and output has one of two logic values,
0or1. - Logic convention: Positive logic is assumed, where a higher voltage represents logic
1and a lower voltage represents logic0. - Combinational behavior: The output changes after a propagation delay whenever an input changes.
- Basic operators: AND produces
1only when all inputs are1; OR produces1when at least one input is1; XOR produces1when inputs are different. - Adder outputs:
Sdenotes the sum bit, whileCorCoutdenotes the carry output. - Boolean notation:
+represents OR, adjacency represents AND, and an apostrophe represents NOT. Thus,A'Bmeans NOTAANDB. - Truth-table basis: All possible input combinations are listed to verify the required Boolean function.
- Hardware assumption: Gate delays, fan-in limits, voltage levels, and loading are ignored during ideal Boolean design but considered during practical validation.
II. Design of a Half Adder: Adding Two Single Bits
A. Definition and Operating Principle
A half adder is a combinational circuit that adds two one-bit binary inputs and produces a one-bit sum and a one-bit carry. It is called “half” because it has no input for a carry generated by a preceding bit position.
- Inputs:
AandBare the two binary addends. - Outputs:
Sis the sum output andCis the carry output. - Binary interpretation: The numerical operation is
A + B = 2C + S. - No carry input: The circuit cannot directly add a carry from a lower-order stage.
- Gate requirement: One XOR gate generates
S, and one AND gate generatesC.
B. Design of a half adder
The half-adder design follows directly from the four possible combinations of A and B.
| A | B | Decimal addition | S | C |
|---|---|---|---|---|
| 0 | 0 | 0 + 0 = 0 | 0 | 0 |
| 0 | 1 | 0 + 1 = 1 | 1 | 0 |
| 1 | 0 | 1 + 0 = 1 | 1 | 0 |
| 1 | 1 | 1 + 1 = 10₂ | 0 | 1 |
- Sum function: The sum is
1when exactly one input is1, which is the XOR operation.
S = A XOR B- Carry function: A carry occurs only when both inputs are
1, which is the AND operation.
C = A B- Canonical sum expression: From the truth table, the sum is also written as:
S = A'B + AB'- Canonical carry expression: The only carry-producing row is
A = 1, B = 1.
C = AB- Circuit realization: Connect
AandBto an XOR gate forS, and connect the same inputs to an AND gate forC.
C. Design Interpretation and Limitations
The half adder demonstrates how Boolean functions map directly to gates, but its missing carry input restricts its use in multibit arithmetic.
- Independent outputs:
SandCare generated simultaneously from the same inputs. - Carry significance: In
1 + 1, the outputS = 0represents the lower bit andC = 1represents the next binary position. - Application: Half adders are useful in the least significant position of an adder when no incoming carry exists.
- Limitation: A half adder cannot correctly process
A + B + Cin, whereCinis an incoming carry. - Expansion: A full adder can be constructed from two half adders and one OR gate.
D. Worked Example
For A = 1 and B = 0, the half adder produces a sum of 1 and a carry of 0.
- XOR calculation:
S = 1 XOR 0 = 1- AND calculation:
C = 1 AND 0 = 0- Result:
1 + 0 = 01₂, where the carry bit is the more significant0and the sum bit is1.
III. Design of a Full Adder: Including an Incoming Carry
A. Definition and Operating Principle
A full adder is a combinational circuit that adds three one-bit values: two operand bits and an incoming carry. It produces a sum bit and an outgoing carry, allowing several full adders to be connected for multibit binary addition.
- Inputs:
AandBare operand bits;Cinis the carry entering from the lower-order position. - Outputs:
Sis the current-position sum;Coutis the carry sent to the next position. - Numerical relationship: The circuit satisfies
A + B + Cin = 2Cout + S. - Cascading: Connecting
Coutof one stage toCinof the next creates a ripple-carry adder. - Gate-level basis: The sum uses XOR operations; the carry uses AND and OR operations.
B. Design of a full adder
The full-adder truth table contains eight input combinations and identifies whether the total is 0, 1, 2, or 3.
| A | B | Cin | Total | S | Cout |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 | 0 |
| 0 | 1 | 1 | 2 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 2 | 0 | 1 |
| 1 | 1 | 0 | 2 | 0 | 1 |
| 1 | 1 | 1 | 3 | 1 | 1 |
- Sum function: The sum is
1when an odd number of the three inputs are1.
S = A XOR B XOR Cin- Carry function: A carry occurs when at least two inputs are
1.
Cout = AB + ACin + BCin- Alternative carry form: Let
P = A XOR Brepresent the partial sum andG = ABrepresent generated carry.
Cout = G + P CinHere, P is the propagate term, G is the generate term, and Cin is the incoming carry.
C. Gate-Level Construction
A full adder can be built structurally from two half adders and an OR gate.
- First half adder: Add
AandB.
P = A XOR B
C1 = ABHere, P is the intermediate sum and C1 is the first carry.
- Second half adder: Add the intermediate sum
PtoCin.
S = P XOR Cin
C2 = P CinHere, S is the final sum and C2 is the second carry.
- Final carry combination: OR the two carry outputs.
Cout = C1 + C2- Complete structure: The circuit uses two XOR gates, two AND gates, and one OR gate in its basic implementation.
- Carry meaning:
C1is generated byAandB;C2occurs when the partial sum and incoming carry are both1.
D. Worked Example
For A = 1, B = 0, and Cin = 1, the total is 1 + 0 + 1 = 2, represented as 10₂.
- Intermediate half-adder outputs:
P = 1 XOR 0 = 1
C1 = 1 AND 0 = 0- Second half-adder outputs:
S = 1 XOR 1 = 0
C2 = 1 AND 1 = 1- Final carry:
Cout = C1 OR C2 = 0 OR 1 = 1- Result:
Cout S = 10₂, matching the arithmetic total.
IV. Validation of Combinational Logic: Proving Circuit Behavior
A. Purpose and Validation Principle
Validation of combinational logic confirms that a designed circuit produces the required output for every permitted input combination. The main evidence comes from Boolean equations, truth tables, circuit simulation, and physical measurements.
- Functional requirement: Every input pattern must produce the specified
Sand carry outputs. - Exhaustive checking: A circuit with
nbinary inputs has2ⁿpossible combinations.- A half adder has
2² = 4combinations. - A full adder has
2³ = 8combinations.
- A half adder has
- Reference model: The arithmetic relation provides a direct check:
A + B + Cin = 2Cout + SFor a half adder, Cin is absent or treated as zero.
B. Truth-Table Validation
A truth table validates logic by comparing each circuit output with the expected Boolean result.
- Half-adder check: For
A = B = 1,S = A XOR B = 0andC = AB = 1; this confirms correct binary carry behavior. - Full-adder check: For
A = B = Cin = 1,S = 1 XOR 1 XOR 1 = 1andCout = 1; the output11₂represents decimal3. - Zero-input check: When every input is
0, all outputs must be0; any1indicates a wiring, logic, or measurement fault. - Parity check: The sum output must be
1for an odd number of active inputs and0for an even number. - Majority check: The full-adder carry must be
1whenever at least two ofA,B, andCinare1.
C. Boolean and Simulation Validation
Algebraic simplification and simulation provide independent confirmation of the truth-table result.
- Equation comparison: Verify that the implemented circuit matches:
Half adder:
S = A XOR B
C = AB
Full adder:
S = A XOR B XOR Cin
Cout = AB + ACin + BCin- Structural equivalence: For the two-half-adder design, substitute
P = A XOR BintoCout = AB + P Cinand compare it with the majority expression. - Simulation inputs: Apply all binary input patterns in sequence, allowing enough time between changes for propagation delay.
- Observed outputs: Record
SandCoutand compare each row with the expected truth table. - Timing awareness: Temporary glitches may appear because different gates have unequal delays; stable outputs should be sampled after propagation has settled.
D. Hardware Validation and Practical Limitations
Physical testing checks whether the implemented circuit behaves correctly under real electrical conditions.
- Component identification: Confirm the correct XOR, AND, and OR integrated circuits, their supply voltage, and their pin connections before powering the circuit.
- Power integrity: Connect supply and ground correctly; an unpowered or incorrectly powered IC cannot provide meaningful logic results.
- Input definition: Use switches with pull-up or pull-down resistors so inputs do not float between logic
0and1. - Output observation: LEDs, logic probes, or an oscilloscope can display
SandCout; series resistors are required to limit LED current. - Propagation delay: The output changes a short time after an input transition, so rapid switching can produce an apparently incorrect reading.
- Loading effects: Excessive output current or too many connected inputs can distort voltage levels and violate logic-family specifications.
- Fault isolation: Test one gate or one stage at a time, then compare the measured output with the corresponding truth-table row.
- Scope of validation: Truth tables prove logical correctness under ideal assumptions; voltage thresholds, noise margin, delay, fan-out, and wiring quality determine practical reliability.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →