1.4.3 Boolean Algebra Flashcards
What are adders useful for?
Outputting the results of binary addition and subtraction.
How many inputs does a half adder take?
Two
How many outputs does a half adder produce?
2
Sum and carry bit
What logic gates is a half adder made up of?
AND gate
XOR gate
What is the issue with half adders?
They only output the carry bit and do not use it in the addition.
What does a full adder combine?
Two half adders.
What is the boolean expression for the sum output from a half adder?
S = A ⊻ B
What is the boolean expression for the carry bit output from a half adder?
C = A ∧ B
What does a full adder allow for?
The input of the carry from the last calculation into the next calculation.
How many inputs does a full adder accept?
3
A, B and carry bit from previous
How many outputs does a full adder produce?
2
Sum and carry bit
What logic gates is a full adder made up of?
2 x Half adder (AND + XOR)
OR gate
What is the boolean expression for the sum output from a full adder?
S = A ⊻ B ⊻ Cᵢₙ
What is the boolean expression for the carry bit output from a full adder?
Cₒᵤₜ = (A ∧ B) v (Cᵢₙ ∧ (A ⊻ B))
How many full adders do we need to add together two binary numbers, n bits long?
n full adders.