Logic Functions & Logic Gates: Logic Functions
Logic Functions & Logic Gates: Logic Functions
LOGIC FUNCTIONS
George Boole invented and published this form of mathematics (Boolean Algebra) in
1847.
The 3 basic logic functions, which can be used to solve any Boolean equation, are:
NOT
AND
OR
Other common logic functions, that are combinations of the basic 3, are:
NAND
NOR
XOR
NOT FUNCTION
Truth Table
Input Output
A | X in out
-----|------ A X
0 | 1 0 1
1 | 0 1 0
Logic Symbols
X = AxB X = A⋅B
X = A*B X = AB
Truth Table
AB X
00 0
01 0
10 0
11 1
Logic Symbols
X = A+B
Truth Table
AB X
00 0
01 1
10 1
11 1
Logic Symbols
Truth Table
AB X
00 1
01 1
10 1
11 0
Logic Symbols
Truth Table
AB X
00 1
01 0
10 0
11 0
Logic Symbols
Truth Table
AB X
00 0
01 1
10 1
11 0
Logic Symbols
Examples:
________
Equation to convert: X=A*B*C
________
step 1: A+B+C change logic symbol(s)
_ _ _
step 2: A+B+C break bar over symbol change(s)
_ _ _
X=A+B+C
________
Equation to convert: X=A+B+C
_______
` step 1: A*B*C change logic symbol(s)
_ _ _
step 2: A*B*C break bar over symbol change(s)
_ _ _
X=A*B*C
ALTERNATIVE GATE SHAPES
Sometimes the logic of a circuit is more easily understood if an alternative gate shape is
used.
Rules: 1. Change the gate shape (AND ==> OR; OR ==> AND).
Examples:
More Examples:
FUNCTIONALLY COMPLETE GATES
Some gates are functionally complete. These gates can implement any
combinational logic equation. These gates are:
The first 4 Laws (Theorems) for Boolean Algebra are similar to those of regular algebra.
Commutative Law
A+B=B+A A*B=B*A
Associative Law
A + (B + C) = (A + B) + C A * (B * C) = (A * B) * C
Distributive Law
A(B + C) = AB + AC (A + B)(C + D) = AC + AD + BC + BD
Miscellaneous Laws
These laws can be easily proven by looking at the truth tables for OR gates and AND
gates.