3.5.1
Half-adder and full-adder (3.5.1) is a Class 9 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.
Unlock full courseAlready paid? Sign in with the Google account you paid with.
A half-adder adds two single bits A and B. It has two outputs: Sum S = A ⊕ B (XOR) and Carry C = A·B (AND). For 1 + 1, S = 0 and C = 1.
A full-adder adds three bits: A, B and a carry-in Cin. Sum = A ⊕ B ⊕ Cin is 1 when an odd number of inputs are 1. Cout = A·B + Cin·(A ⊕ B) is 1 when at least two inputs are 1.
To add two 4-bit numbers, a half-adder handles bit 0 and three full-adders handle bits 1–3, each taking the carry from the stage before.
Step 1 / 1
A half-adder adds two single bits A and B. It has two outputs: Sum S = A ⊕ B (XOR) and Carry C = A·B (AND). For 1 + 1, S = 0 and C = 1.
A full-adder adds three bits: A, B and a carry-in Cin. Sum = A ⊕ B ⊕ Cin is 1 when an odd number of inputs are 1. Cout = A·B + Cin·(A ⊕ B) is 1 when at least two inputs are 1.
To add two 4-bit numbers, a half-adder handles bit 0 and three full-adders handle bits 1–3, each taking the carry from the stage before.
Half: 2 inputs. Full: 3 inputs (with carry-in).
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
No ads. Tell us what to fix.