Do you know?
[AE] Codes, adders, MUX and DEMUX - part 2
- Fact 1 of 12โ
Half adder adds two bits
A half adder adds two single bits, A and B. Sum = A XOR B. Carry = A AND B. Like 1 + 1 giving sum 0 and carry 1. Recall: what gate gives the carry? Answer: AND.
- Fact 2 of 12๐ง
Half adder uses two gates
A half adder uses one XOR gate and one AND gate. XOR gives the sum bit, AND gives the carry bit. Recall: how many gates in a half adder? Answer: two.
- Fact 3 of 12๐ซ
Half adder's big limit
A half adder cannot take a carry-in from a previous stage. So it can add only the lowest bit in a chain. Recall: which input can a half adder not accept? Answer: carry-in.
- Fact 4 of 12๐งฎ
Full adder adds three bits
A full adder adds A, B and carry-in Cin. It gives a Sum and a Carry-out. Why: it handles the carry from the previous column. Recall: how many inputs does a full adder have? Answer: three.
- Fact 5 of 12๐
Full adder sum formula
Sum = A XOR B XOR Cin. Carry-out = AB + Cin(A XOR B). Exam tip: learn both formulas for AE. Recall: what is the full adder sum formula? Answer: A XOR B XOR Cin.
- Fact 6 of 12๐
Full adder truth table rows
Three inputs give 2 power 3 combinations, which is 8 rows. Exam tip: a full adder truth table always has 8 rows. Recall: how many rows in a full adder truth table? Answer: 8.
- Fact 7 of 12๐
Ripple carry adder
Full adders joined carry-out to carry-in form a ripple carry adder. Each bit waits for the carry from the bit before, like a queue at a crowded bus stop. Recall: what is this chained adder called? Answer: ripple carry adder.
- Fact 8 of 12๐
Multiplexer: many inputs, one output
A multiplexer picks one of many input lines and sends it to one output. Why: only one signal goes through at a time. Like a TV remote choosing one channel. Recall: how many outputs does a MUX have? Answer: one.
- Fact 9 of 12๐๏ธ
MUX select lines
A MUX with 2 power n inputs needs n select lines. A 4-to-1 MUX therefore needs 2 select lines. Recall: how many select lines does a 4-to-1 MUX need? Answer: two.
- Fact 10 of 12๐ก
2-to-1 MUX formula
Y = S'A + SB in plain text. When S is 0, output is A. When S is 1, output is B. Like a two-way switch choosing one light. Recall: when S is 1, which input passes? Answer: B.
- Fact 11 of 12๐
Full adder from half adders
A full adder can be built from two half adders and one OR gate. The first half adds A and B, the second adds the result with Cin. Recall: what extra gate joins the two half adders? Answer: OR.
- Fact 12 of 12โ๏ธ
Gates in a full adder
The standard full adder design uses five gates: two XOR, two AND and one OR. Exam tip: half adder uses two gates, so full adder needs more. Recall: how many gates in a standard full adder? Answer: five.
