Professional Documents
Culture Documents
Boolean Algebra and K-Maps
Boolean Algebra and K-Maps
1
Varun Kouda - Silicon Community
2
Varun Kouda - Silicon Community
Binary to Decimal:
3
Varun Kouda - Silicon Community
4
Varun Kouda - Silicon Community
5
Varun Kouda - Silicon Community
6
Varun Kouda - Silicon Community
● Step 1: Group the binary number into sets of four digits, starting
from the right → 1011 0101 0011
● Step 2: Convert each group of four binary digits to their
hexadecimal equivalent.
7
● 1011 0101 0011 → B 5 3 → B53
Varun Kouda - Silicon Community
Decimal to Binary
● To convert a decimal number to binary, repeatedly divide the
decimal number by 2 and note down the remainders.
● The binary number is formed by reading the remainders in
reverse order.
Example:
convert the decimal number 26 to binary:
● 26 divided by 2 is 13 with a remainder of 0,
● 13 divided by 2 is 6 with a remainder of 1,
● 6 divided by 2 is 3 with a remainder of 0, and
● 3 divided by 2 is 1 with a remainder of 1.
● 1 divided by 2 is 0 with a remainder of 1
● The binary representation is 11010. 8
Varun Kouda - Silicon Community
Hexadecimal to Decimal
● To convert a hexadecimal number to decimal, multiply each
digit by the corresponding power of 16 based on its
position, and sum up the results.
● Replace any letters A to F with the corresponding decimal
values.
Example:
Hexadecimal to Binary
convert the hexadecimal number A7F to binary.
● A = 1010
● 7 = 0111
● F = 1111
.
10
Varun Kouda - Silicon Community
Logical gates
Topic 2
14
Varun Kouda - Silicon Community
A B A OR B
0 0 0
0 1 1
1 0 1
1 1 1
15
Varun Kouda - Silicon Community
A B A AND B
0 0 0
0 1 0
1 0 0
1 1 1
16
Varun Kouda - Silicon Community
A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0
17
Varun Kouda - Silicon Community
A B A XNOR B
0 0 1
0 1 0
1 0 0
1 1 1
18
Varun Kouda - Silicon Community
A B A NAND B
0 0 1
0 1 1
1 0 1
1 1 0
19
Varun Kouda - Silicon Community
A B A AND B
0 0 1
0 1 0
1 0 0
1 1 0
20
Varun Kouda - Silicon Community
22
Varun Kouda - Silicon Community
Topic 3
23
Varun Kouda - Silicon Community
Boolean Algebra
To describe behavior of combinational circuit. We require
● Truth table
● Boolean algebraic expressions
● Digital logic circuit/diagram
Algebraic expression written according to laws of boolean
algebra specifies not only what a combinational circuit does,
but also how it does it!
24
Varun Kouda - Silicon Community
Commutative:
x+y = y+x x.y = y.x
Associative
(x+y)+z = x+(y+z) (x.y).z = x.(y.z)
Distributive
x+(y.z) = (x+y).(x+z) x.(y+z)=(x.y)+(x.z)
Identity
x+0 = x x.1 = x
Complement
25
Varun Kouda - Silicon Community
Boolean Algebra
Boolean algebra has three operations defined over boolean variables: OR
(+), AND (.) and complement (’)
Duality property: each boolean property has a dual property
Exchange + and . Exchange 1 and 0
26
Varun Kouda - Silicon Community
Why K-Map
• Every boolean expression has a corresponding logic circuit diagram; and
every logic circuit diagram has a corresponding boolean expression One to
one correspondence
• But a given truth table can have several corresponding implementations
• How to map from truth table to boolean expression ?
Ø How to pick the “best” boolean expression ?
28
Varun Kouda - Silicon Community
2D K-Maps
31
Varun Kouda - Silicon Community
4D K-Maps
32
Varun Kouda - Silicon Community
F = (A + B) • (A + C)
F = A • (B + C)' + (A' • D)
F = (A • B) + (A' • C) + (A • B • C)
33
Varun Kouda - Silicon Community
Problem 4:
F = (A + B) • (C + D) • (E + F)
Problem 5:
F = A • (A' + B • C) + B • (A + C) + C • (A' + B)
34
Varun Kouda - Silicon Community
F = A • (B • C • D) • E
Problem 7:
Simplify the Boolean expression using Boolean algebra
properties:
F = (A + B') • (A' + B) • (A + B)
35
Varun Kouda - Silicon Community
Problem 9:
Problem 10:
F = Σ(0, 1)
F = Σ(1, 3, 5, 6, 7)
F = Σ(0, 1, 2, 4, 6) 37
Varun Kouda - Silicon Community
F = Σ(1, 2, 4, 5, 7)
Problem 7:
38
Varun Kouda - Silicon Community
F = Σ(0, 2, 3, 5)
Problem 10:
F = Σ(0, 3) 39