Logic Flashcards
Logic gates, Boolean expressions and Karnaugh maps
NOT logic gate
▶o
AND logic gate
D
OR logic gate
)> (concave and pointy ver of and)
XOR logic gate
) )> (same as or with added curved line in front)
AND boolean symbol
OR boolean symbol
∨
XOR boolean symbol
v with line underneath
NOT boolean symbol
¬
order of precedence for boolean expressions
Brackets
NOT
AND
OR and XOR
Double Negation
If there are two nots in front of a letter they can be erased
¬¬A = A
Commutation
The order of letters around an operator can be changed (remember the NOT symbol stays with the letter)
A v ¬B = ¬B v A
Association
If a long expression contains only one operator, letters can be reordered, and brackets can be added or taken away
A ^ B ^ ¬C = ( A ^ ¬C) ^ B
Distribution
If there is more than one operator, letters outside brackets can be “distibruted” to the letters inside the brackets
A v ( B ^ C ) = ( A v B) ^ ( A v C )
De Morgan’s Law
If there is a NOT outside of a bracket, it can be added to the letters inside, but the operator must change
¬( A v B) = ¬A ^ ¬B
What is a Karnaugh Map
- A summary version of a truth table used to simplify logic expressions
- Can have up to 4 inputs (2 per axis)