Professional Documents
Culture Documents
06/21/20 1
AND
In order for current to flow, both switches
must be closed
¤ Logic notation AB = C
(Sometimes AB = C)
A B C
0 0 0
0 1 0
1 0 0
1 1 1
06/21/20 2
OR
Current flows if either switch is closed
¤ Logic notation A + B = C
A B C
0 0 0
0 1 1
1 0 1
1 1 1
06/21/20 3
Properties of AND and OR
Commutation
¤A+B=B+A
¤AB=BA
Same as
Same as
06/21/20 4
Properties of AND and OR
Associative Property
¤ A + (B + C) = (A + B) + C
¤ A (B C) = (A B) C
06/21/20 5
Properties of AND and OR
Distributive Property
¤ A + B C = (A + B) (A + C)
¤ A+BC
A B C Q
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
06/21/20 6
Distributive Property
(A + B) (A + C)
A B C Q
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
06/21/20 1 1 1 1 7
Binary Addition
A B S C(arry)
0 0 0 0
1 0 1 0
0 1 1 0
1 1 0 1
A Q
0 1
Logic: QA
1 0
06/21/20 9
Exclusive OR (XOR)
06/21/20 11
Circuit for XOR
A B AB AB
Accumulating our results: Binary addition is the
result of XOR plus AND
06/21/20 12
NAND (NOT AND)
A B Q
Q AB 0 0 1
0 1 1
1 0 1
1 1 0
06/21/20 13
NOR (NOT OR)
A B Q
QAB 0 0 1
0 1 0
1 0 0
1 1 0
06/21/20 14
Exclusive NOR
A B Q
Q AB
0 0 1
0 1 0
Equality Detector
1 0 0
1 1 1
06/21/20 15
Summary
Summary for all 2-input gates
0 0 0 1 0 1 0 1
0 1 0 1 1 0 1 0
1 0 0 1 1 0 1 0
1 1 1 0 1 0 0 1
06/21/20 16