DCF Module 2
DCF Module 2
1
Boolean algebra
Example:
Z= AB+BC+ACD
F=ABC+AC+D
Example:
Z= (A+B) (B+C)(A+C)
F=(A+B+C)(A+C+D)
Convert the given expression into canonical form
f= x + xy + xyz
X Y Z XY XYZ F
0 0 0 0 0 0
0 0 1 0 0 0
0 1 0 0 0 0
0 1 1 0 0 0
1 0 0 0 0 1
1 0 1 0 0 1
This is the required minterm.
1 1 0 1 0 1 By adding these terms to get canonical SOP form
1 1 1 1 1 1
Convert the canonical POS equation of the given expression
Y= A+AB+ABC
A B C AB ABC Y
0 0 0 0 0 0
0 0 1 0 0 0 This is the required maxterm.
0 1 0 0 0 0 Product of these terms to get canonical POS form
0 1 1 0 0 0
1 0 0 0 0 1
1 0 1 0 0 1
1 1 0 1 0 1
1 1 1 1 1 1
Define minterm. Expand A’+B’ to minterms.
Logic Gates
3. NOT
4. NOR
UNIVERSAL GATES
5. NAND
6. XOR
7. XNOR
2. AND GATE
Logic Symbol Logic Expression Truth Table
3. NOT GATE
Logic Symbol Logic Expression Truth Table
18
4. NOR GATE
Logic Symbol Logic Expression Truth Table
5. NAND GATE
Logic Symbol Logic Expression Truth Table
19
6. XOR GATE
Logic Symbol Logic Expression Truth Table
7. XNOR GATE
Logic Symbol Logic Expression Truth Table
20
• NAND and NOR
are known as
universal gates
because any NOT GATE USING NAND GATES
Boolean function
can be
constructed using
only NAND or only
NOR gates. AND GATE USING NAND GATES
21
Gates can have multiple inputs and more than one output. A
second output can be provided for the complement of the
operation.
23
• The main thing to remember is that combinations of
gates implement Boolean functions.
• The circuit below implements the Boolean function:
24
Karnaugh Map
A graphical tool for finding the SOP or POS simplification of a
Boolean function. The variables can be cancelled by grouping
minterms or maxterms.
25
Three variable K-Map
Four variable K- Map
27
Rules followed for K-Map Simplification
1. Groups do not include any cell containing zero
28
Wrong Right
29
4. Each group should be as large as possible
30
Examples of Grouping of Cells
1. Karnaugh
Grouping of Map
2 adjacent 1’s ( pair)
31
2. Grouping of 4 adjacent 1’s ( quad)
3. Grouping of 8 adjacent 1’s ( octet)
Karnaugh Map
39
Karnaugh Map
40
Karnaugh Map
41
Karnaugh Map
42
Karnaugh Map
43
Karnaugh Map
44
Don’t Care
• The “Don’t Care” conditions allow us to replace the empty cell of a K-Map to form
a grouping of the variables which is larger than that of forming groups without
don’t care.
45
Example-1:
Minimise the following function in SOP minimal form using K-
Maps:
f = m(1, 5, 6, 11, 12, 13, 14) + d(4)
47
Minimise the following function in SOP minimal form using K-Maps:
F(A, B, C, D) = m(1, 2, 6, 7, 8, 13, 14, 15) + d(0, 3, 5, 12)