what is a logic gate?
an electronic circuit designed to perform logical operations on one or more binary inputs to produce a single output
what is a truth table?
a table that lists all possible combinations of inputs and their corresponding outputs
how is a NOT gate represented?
symbol: triangle pointing in direction of flow with a circle next to it, 1 input, 1 output
mathematical: ¬A
engineering: A̅
draw the truth table for a NOT gate (negation)
A | Q
1 | 0
0 | 1
how is an AND gate represented?
symbol: looks like a D with 2 inputs, 1 output
mathematical: A ∧ B
engineering: A.B
draw the truth table for an AND gate (conjunction)
A | B | Q
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1
how is an OR gate represented?
symbol: like a curved arrowhead - pointy end up front, curved end behind, 2 inputs, 1 output
mathematical: A ∨ B
engineering: A + B
draw the truth table for an OR gate (disjunction)
A | B | Q
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
how is an XOR gate represented?
symbol: like an OR gate but with an extra line behind it too
mathematical: A ⊻ B
engineering: A ⊕ B
draw the truth table for an XOR gate (exclusive disjunction)
A | B | Q
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 0
what strategies can be used to simplify a boolean expression?
what are the general rules of boolean algebra?
(all here in engineering coz its easier)
A.0 = 0
A.1 = A
A.A = A
A.A̅ = 0
A + 0 = A
A + 1 = 1
A + A = A
A + A̅ = 1
what is the commutative law of boolean algebra?
(in engineering notation)
A + B = B + A
A.B = B.A
what is the associate law of boolean algebra?
A + (B + C) = (A + B) + C
A.(B.C) = (A.B).C
what is the distributive law of boolean algebra?
A.(B + C) = A.B + A.C
A + (B.C) = (A+B).(A+C)
what is the absorption/redundancy law of boolean algebra?
A + A.B = A
A.(A + B) = A
what are de Morgan’s laws of boolean algebra?
(A̅+̅B̅) = A̅.B̅
(A̅.̅B̅) = A̅ + B̅
(basically break the bar, change the sign)