Combinatorial Logic
Combinatorial Logic
Digital (logic) circuits operate in the binary mode when each input and output
voltage is either a 1 or 0 (TRUE or FALSE).
+5 V
Example: TTL NAND Gate
R2 R4
1.6 KΩ 130 Ω
This is the basic logic gate as one R1
can use this to implement all the 4 KΩ
other gates Q4
D
A Q2 Y=AB
B Q1
Output
Inputs Q3
R3
1 KΩ
R2 R4
1.6 KΩ 130 Ω
R1
4 KΩ
Q4
EN=1 Gate operates normally
Input D
EN=0 Q3 and Q4 are OFF and Q1
Q2 Y=A
the output is FLOATING Output
Q3
EN
R3
1 KΩ
GND
Truth Table
0
A
1
0
OR operation X = A+B
A B X
A
X=A+B 0 0 0
B
0 1 1
1 0 1
2-Input OR gate 1 1 1
Truth Table
OR operation X = A+B+C A B C X
0 0 0 0
0 0 1 1
A 0 1 0 1
B
C X=A+B+C 0 1 1 1
1 0 0 1
1 0 1 1
3-Input OR gate 1 1 0 1
1 1 1 1
Truth Table
AND operation X = AB
A B X
A X = AB 0 0 0
B 0 1 0
1 0 0
1 1 1
2-Input AND gate
Truth Table
NOR Gate
A B A+B A+B
0 0 0 1
A
B X=A+B 0 1 1 0
1 0 1 0
1 1 1 0
Truth Table
NAND Gate
A B AB AB
A 0 0 0 1
X = AB
B 0 1 0 1
1 0 0 1
1 1 1 0
Truth Table
Ex-OR (or XOR) Gate A
Y
Y=A B=AB+AB
B
Y
Truth Table
AB
AB
B
Describing Logic Circuits Algebraically
Examples: B
X=AB+C
X= ?
C
A
B X= ? X=(A+B)C
C
A
B X= ?
X=A+B
B X= ?
X = (A + B)
Boolean Algebra Theorems
Duals
A.(A + B) = A (17)
A.(A + B) = A.B (18)
(A + B).(A + B) = A (19)
(A + B).(A + C) = AC + AB (20)
(A + B).(A + C).(B + C) = (A + B).(A + C) (21)
De Morgan’s Theorem:
• Again NAND or NOR gates in proper combination can be used to perform each of
the Boolean operations OR, AND and NOT.
• Any logic expression can be implemented using ONLY NAND or NOR gates.
Note that (i) The same variable used never appears twice because A.A=A A.A=0 A+A=A A+A = 1
and (ii) One complement sign cannot cover more than one variable in a term (e.g., we cannot have
ABC as we can then use De Morgan’s Law to simplify.
Standard Sum of Products (SOP) Form
A SOP Form in which each product term involves all the variables, complemented or
uncomplemented. Each individual term is referred to as a minterm.
Example: Z=ABC+ABC+ABC
Example: Z=(A+B+C)(A+B+C)