1.4.3. Boolean Algebra Flashcards
Logic gates
Take inputs from 1 or more binary switches and reach an output
Can be combined to form a complex circuit
Combining logic gates
Make a column in your truth table for each gate, starting from the ones needed first
NOT gate
Symbol: One line going into a triangle with a circle at the point and a line coming out
What it does: Turns a 0 to a 1 and a 1 to a 0
Boolean algebra: P = NOT A
Boolean notation: P = ¬ A
AND gate
Symbol: Two lines into the long edge of a semi-circle, one coming out
What it does: Only outputs a 1 if both inputs are 1
Boolean algebra: P = A AND B
Boolean notation: A ∧ B
OR gate
Symbol: Two lines into the inside of a crescent moon, one out
What it does: If one or both input(s) are 1 it outputs a 1
Boolean algebra: P = A OR B
Boolean notation: P = A V B
XOR gate
Symbol: The OR symbol but with another curve the same as the inside of the moon cutting the lines
What it does: Only outputs 1 if one input is 1, not both
Boolean algebra: P = A XOR B
Boolean notation: P = A ⊻ B
De Morgan’s First Law
¬(A V B) = ¬A ∧ ¬B
De Morgan’s Second Law
¬(A ∧ B) = ¬A V ¬B
How to implement de Morgan’s laws
Invert both terms, swap OR and AND and invert the whole result
Associative Rule
If the same expression is used on three inputs the brackets can be anywhere or not there
e.g. A V (B V C) = (A V B) V C = A V B V C
Commutative Rule
Changing which input comes first makes no difference
E.g. A V B = B V A
Distribution
Allows you to multiply out or factorise an expression, done the same as brackets in maths
e.g. X ∧ (Y V Z) = (X ∧ Y) V (X ∧ Z) and vice versa
Double negative
¬¬X = X
Absorption
When brackets have the first input inside in front of it also with an and and an or inside and out you can eliminate the second variable X V ( X ∧ Y) = X X ∧ (X V Y) = X
Finding an expression from a karnaugh map
Draw squares/rectangles around groups of 1s, find the expression for each and put around ors