EEE241 DLDlect 03
EEE241 DLDlect 03
EEE241 DLDlect 03
x y F Minterm
m0 m1
0 0 0 0 m0
1 0 1 0 m1 m2 m3
2 1 0 0 m2
3 1 1 1 m3
y
y x 0 1
0 0 0
x 0 1 1
Riaz Hussain (rhussain@comsats.edu.pk) CUI-IBD-ECE EEE241 DLD Chapter-03
05/20/2023
… continued 2
Two
Variable
Example
K-Map 9
x y F Minterm
m0 m1
0 0 0 0 m0
1 0 1 1 m1 m2 m3
2 1 0 1 m2
3 1 1 1 m3
y
y x 0 1
0 1 0
x 1 1 1
Riaz Hussain (rhussain@comsats.edu.pk) CUI-IBD-ECE EEE241 DLD Chapter-03
05/20/2023
Three-variable Map 10
x y z Minterm m0 m1 m3 m2
0 0 0 0 m0
m4 m5 m7 m6
1 0 0 1 m1
2 0 1 0 m2
yz
3 0 1 1 m3 x 00 01 11 10
4 1 0 0 m4
0
5 1 0 1 m5
6 1 1 0 m6 1
7 1 1 1 m7
Riaz Hussain (rhussain@comsats.edu.pk) CUI-IBD-ECE EEE241 DLD Chapter-03
05/20/2023
Three-variable Map 11
m0 m1 m3 m2
• Example
m4 m5 m7 m6
x y z F Minterm
yz
0 0 0 0 0 m0 x 00 01 11 10
1 0 0 1 0 m1 0
2 0 1 0 1 m2 1
3 0 1 1 1 m3
y
4 1 0 0 1 m4
5 1 0 1 1 m5 0 0 1 1
6 1 1 0 0 m6 x 1 1 0 0
7 1 1 1 0 m7 z
B
A
D
B
A
D
B
A
1
D
1
B
A
D
B
A
1 1
D
E E
A=0 A=1
A=0
A=1
Implicant:
C
Gives F = 1
1
1 1 1
B
1 1 1
A
1
D
Prime Implicant:
Can’t grow beyond C
this size 1
1 1 1
B
1 1 1
A
1
D
Logic F
B
Circuit
A B C F
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 x
1 0 0 1 Don’t care
1 0 1 x what value F
1 1 0 x
1 1 1 x
may take
Riaz Hussain (rhussain@comsats.edu.pk) CUI-IBD-ECE EEE241 DLD Chapter-03
05/20/2023
Don’t-Care Condition 31
•Example A
B F
0 1 x 0
A 1 x x x
C
Output: f on as a set of
1. All Essential Prime Implicants
2. As Few Prime Implicants as Possible
Essential row
• If Row P is equal to Row Q and Row Q does not cost more than Row P,
eliminate Row P, or if Row P is dominated by Row Q and Row Q Does
not cost more than Row P, eliminate Row P
05/20/2023
45
• For now, we Arbitrarily Choose a PI
• Later we will Study Exact and Heuristic Methods
• G is Dominated by E
• B is Dominated by A
• Form Reduced Cover Table and Go To Step 2
01 1 01 1
11 1 1 11 1 1
10 1 1 1 10 1 1 1
05/20/2023
• One Type 49
– Use as many as you need (quantity), but one type only.
• Perform Basic Operations
– AND, OR, and NOT
• NAND Gate
– NOT-AND functions
– OR function can be obtained from AND by Demorgan’s
• NOR Gate
– NOT-OR functions (AND by Demorgan’s)
Digital circuits are frequently constructed with NAND or NOR gates rather
than with AND and OR gates.
NAND and NOR gates are easier to fabricate with electronic components and
are the basic gates used in all IC digital logic families.
Riaz Hussain (rhussain@comsats.edu.pk) CUI-IBD-ECE EEE241 DLD Chapter-03
05/20/2023
Universal Gates 50
• NAND Gate
– NOT:
– AND:
– OR:
DeMorgan’s
– OR:
– AND:
DeMorgan’s
• OR
• NAND
• NOR
3.
5. AND-OR
6. AND-AND
AND The remaining
Those reduced to 8 a are ---
single
4.
7. AND-NOR
AND-NOR NAND-AND
operation and
Nondegenerateare AND-NOR
called are
forms ---
8. AND-NAND
NAND equivalent
• SoP form
Degenerate or
FOR-NAND and NOR-OR are
= (AB+CD+E)’
• PoS
• OR-AND-Invert
5. NOR-OR
9. NOR-OR equivalent
AND-OR-INVERT
10. NOR-AND
NOR F = [(A+B)(C+D)E)]’
6.
11. NOR-NOR OR-AND-INVERT
12. NOR-NAND
OR
13. NAND-OR
NAND
7. NAND-AND
14. NAND-AND
15. NAND-NOR
AND
8. NAND-NAND
16.
Riaz Hussain (rhussain@comsats.edu.pk) CUI-IBD-ECE EEE241 DLD Chapter-03
05/20/2023
Implementations Summary59
• Sum Of Products:
– AND-OR
– AND-OR-Invert = AND-NOR = NAND-AND
• Products Of Sums
– OR-AND
– OR-AND-Invert = OR-NAND = NOR--OR
• XNOR
F=xy=xy=xy+xy
F = ∑(0, 3, 5, 6) yz
x 00 01 11 10
0 0 1 0 1
1 1 0 1 0
1 1
0 0
1 0
0
0
1 1
Parity Parity
Generator Checker
Riaz Hussain (rhussain@comsats.edu.pk) CUI-IBD-ECE EEE241 DLD Chapter-03
05/20/2023
Parity Generator 64
• 1 Odd Parity 1
0 0
1 1
0 0
1
Odd number of ‘1’s
• Even Parity
1 1
0 0
1 1
0 0
0
Even number of ‘1’s
Error
1
Check
• Even Parity
1
0
1
0
Error
0 Check
Riaz Hussain (rhussain@comsats.edu.pk) CUI-IBD-ECE EEE241 DLD Chapter-03
05/20/2023
Practice Problems 66
3.1, 3.3, 3.5, 3.7, 3.9, 3.15, 3.16, 3.18,
3.22, 3.28
Convert the logic diagram of the circuit
shown in Fig. 4-4 into a multiple-level
NAND circuit.