Professional Documents
Culture Documents
Notes-04 2021-04-15
Notes-04 2021-04-15
ELEN2021 : Microprocessors
Digital Logic and Design
Chabalala Chabalala
2021
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Page 2
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
• Boolean equations.
• Boolean algebra.
Page 3
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Page 4
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
In this lecture …
• De Morgan’s Theorem.
Page 5
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Page 6
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
How to Prove
• Method 1 → Prove by Induction:
- This is also called: proof by exhaustion, check every
possible input value.
- If two expressions produce the same value for every
possible input combination, the expressions are equal.
Page 8
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
B C (B+C) B(B+C)
0 0
0 1
1 0
1 1
Page 9
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
B C (B+C) B(B+C)
0 0 0 0
0 1 1 0
1 0 1 1
1 1 1 1
Page 10
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
B C (B+C) B(B+C)
0 0 0 0
0 1 1 0
1 0 1 1
1 1 1 1
Page 11
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Page 13
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
• Example 1
Y= AB + AB
= A(B + B) T8: Distributivity
= A(1) T5’: Complements
= A T1: Identity
• Example 2
Y= A(AB + ABC)
= A(AB(1 + C)) T8: Distributivity
= A(AB(1)) T2’: Null Element
= A(AB) T1: Identity
= (AA)B T7: Associativity
= AB T3: Idempotency
Page 16
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
• POS – product-of-sums
O C E maxterm
0 0 0 O + C E = (O + C)(O + C)(O + C)
0 1 0 O + C
1 0 1 O + C = Π(0, 1, 3)
1 1 0 O + C
Page 17
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
• Example: Y = (A + C + D + E)(A + B)
Y = AA+AB+AC+BC+AD+BD+AE+BE T8: Distributivity
= A+AB+AC+AD+AE+BC+BD+BE T3: Idempotency
= A + BC + BD + BE T9’: Covering
Page 18
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
• Example: Y = (A + BCDE)
Apply T8’ first when possible: W+XZ = (W+X)(W+Z)
Make: X = BC, Z = DE and rewrite equation
Y = (A+XZ) substitution (X= BC, Z=DE)
= (A+ BC)(A+DE) T8’: Distributivity
= (A+ B)(A+C)(A+D)(A+E) T8’: Distributivity
Page 19
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
De Morgan’s Theorem
Page 20
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
DeMorgan’s Theorem
• Y = AB = A + B → A
B
Y
A
Y
B
• Y=A+B=A B → A
B
Y
A
Y
B
Page 22
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Y = (ACE+D) + B
= (ACE+D) • B
= (ACE•D) • B
= ((AC+E)•D) • B
= ((AC+E)•D) • B
= (ACD + DE) • B
= ABCD + BDE
Page 23
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
A A
Y Y
B B
• Forward:
– Body changes
– Adds bubble to output
A A
Y Y
B B
Page 24
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
A
B
C Y
D
Page 25
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
A
B
C Y
D
Page 26
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
C Y
D
Page 27
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
C Y
D
bubble on
A input and output
B
C Y
D
Page 28
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
C Y
D
bubble on
A input and output
B
C Y
D
no bubble on
input and output
A
B
C Y
D
Y = ABC + D
Page 29
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
A B C
minterm: ABC
minterm: ABC
minterm: ABC
Page 30
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Page 31
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Page 32
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
A B C Y Y Y
AB AB
0 0 0 1
00 01 11 10 C 00 01 11 10
0 0 1 1 C
0 1 0 0
0 1 1 0 0 1 0 0 0 0 ABC ABC ABC ABC
1 0 0 0
1 0 1 0
1 1 0 0 1 1 0 0 0 1 ABC ABC ABC ABC
1 1 1 0
Page 33
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
K-Map
• Circle 1’s in adjacent squares
• In Boolean expression, include only literals
whose true and complement form are not in the
circle
Y
A B C Y AB
0 0 0 1 00 01 11 10
0 0 1 1 C
0 1 0 0
0 1 1 0 0 1 0 0 0
1 0 0 0
1 0 1 0
1 1 0 0 1 1 0 0 0
1 1 1 0
Y = 𝑨𝑩
Page 34
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
K-Map Definitions
Page 36
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
K-Map Rules
4-Input K-Map
A B C D Y Y
0 0 0 0 1 AB
0 0 0 1 0 CD 00 01 11 10
0 0 1 0 1
0 0 1 1 1 00
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1 01
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1 11
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0 10
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
Page 38
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
4-Input K-Map
A B C D Y Y
0 0 0 0 1 AB
0 0 0 1 0 CD 00 01 11 10
0 0 1 0 1
0 0 1 1 1 00 1 0 0 1
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1 01 0 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1 11 1 1 0 0
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0 10 1 1 0 1
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
Page 39
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
4-Input K-Map
A B C D Y Y
0 0 0 0 1 AB
0 0 0 1 0 CD 00 01 11 10
0 0 1 0 1
0 0 1 1 1 00 1 0 0 1
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1 01 0 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1 11 1 1 0 0
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0 10 1 1 0 1
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0 Y = AC + ABD + ABC + BD
Page 40
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Summary
• Boolean equations can be simplified using the rules of
Boolean algebra or K-maps.
Page 42
ELEN2021 : Microprocessors
Digital Logic and Design
Combinational Logic Design
Thank you!
Page 43