(4.6) Fundamentals of computer systems Flashcards
NOT gate
Ā
A Ā
0 1
1 0
It is also known as an inverter. If the input variable is A, the inverted output is known as NOT A.
(A with a bar over the top), A’, ~A, ¬A, are all common notation
AND gate
A . B
A B O
1 1 1
0 1 0
1 0 0
0 0 1
A and B must both be equal to 1 for an output of 1.
OR gate
A+B
A B O
1 1 1
1 0 1
0 1 1
0 0 0
A, B or both A and B must be equal to 1 for an output of 1
XOR gate
A ⊕ B
A B O
1 1 0
1 0 1
0 1 1
0 0 0
Exclusively A or B must be equal to 1 for an output of 1
NAND gate
___
A.B
A B O
1 1 0
1 0 1
0 1 1
0 0 1
For an output of 1, A and B cannot both be 1.
(This is the opposite of the AND gate)
NOR gate
_____
A + B
A B O
1 1 0
1 0 0
0 1 0
0 0 1
If either A or B are equal to 1 the output is 0.
(This is the opposite of the OR gate)
Order of operations in boolean expressions of logic gates
NOT
XOR
AND
OR
de Morgan’s first law
─…─….───
A . B = A+B
The inversion of the product is the same as the sum of the inversions.
de Morgan’s second law
───….─..─
A . B = A+B
The inversion of the sum is the same as the product of the inversions.
General boolean identities (1)
X . 0 =
X . 1 =
X . X =
X . ¬X =
X . 0 = 0
X . 1 = X
X . X = X
X . ¬X = 0
General boolean identities (2)
X + 0 =
X + 1 =
X + X =
X + ¬X =
¬¬X =
X + 0 = X
X + 1 = 1
X + X = X
X + ¬X = 1
¬¬X = X
Boolean algebra commutative rule
X . Y = Y . X
X + Y = Y + X
Boolean algebra associative rule
X . (Y . Z) = (X . Y) .Z
X + (Y + Z) = (X + Y) + Z
Boolean algebra distributive law
X . (Y + Z) = X . Y + X . Z
(X+ Y) (W + Z) = X . W + X . Z + Y . W + Y . Z
Boolean algebra absorbtion rules
X + (X . Y) = X
X . (X + Y) = X
proof:
X + (X . Y) = X . 1 + (X . Y)
= X . (1 + Y)
= X . 1 = X