1 Introduction
1 Introduction
Decimal Octal
Binary Hexadecimal
• Example
2510 = 110012 = 318 = 1916
Er. Gaurav Gautam, 9801104102
Base
Decimal to Binary
• Technique
• Divide by two, keep track of the remainder
• The remainders read from bottom to top give the equivalent binary integer number.
• Example - 1 Example - 2
12510 = ?2 2 125 1
0.687510 = ?2 integer fraction
2 62 0
2 31 1 0.6875 x 2 = 1.3750 1 + 0.3750
2 15 1 0.3750 x 2 = 0.7500 0 + 0.7500
2 7 1 0.7500 x 2 = 1.5000 1 + 0.5000
2 3 1 0.5000 x 2 = 1.0000 1 + 0.0000
2 1 1
0 0.687510 = 0.10112
12510 = 11111012 Er. Gaurav Gautam, 9801104102
Binary to Decimal
• Technique
• Multiply each bit by 2n, where n is the “weight” of the bit
• The weight is the position of the bit, starting from 0 on the right. Finally, Add the results.
• Example - 1 Example - 2
1010112 = ?10 11.112 = ?10
1 0 1 0 1 1 1 1 . 1 1
1 x 25 + 0 x 24 + 1 x 23 + 0 x 22 + 1 x 21 + 1 x 20 1 x 21 + 1 x 20 + 1 x 2-1 + 1 x 2-2
32 + 0 + 8 + 0 + 2 + 1 2 + 1 + 0.5 + 0.25
7 x 82 + 2 x 81 + 4 x 80 4 x 81 + 3 x 80 + 2 x 8-1 + 5 x 8-2
448 + 16 + 4 32 + 3 + 0.25 + 0.0781
7 x 82 + 2 x 81 + 4 x 80 4 x 81 + 3 x 80 + 2 x 8-1 + 5 x 8-2
448 + 16 + 4 32 + 3 + 0.25 + 0.0781
A C 𝐶 = 𝐴ҧ 𝑜𝑟 𝐶 = 𝐴′
A C
0 1
1 0
A A B C 𝐶 = (𝐴 ∙ 𝐵)′
C
B 0 0 1
0 1 1
1 0 1
1 1 0
A A B C 𝐶 =𝐴⨁𝐵
C
B 0 0 0
0 1 1
1 0 1
1 1 0
A’
A
(A’B’)’ = (A+B)
B
B’
OR using NAND
A’
A
(A’+B’)’ = AB
B
B’
AND using NOR
• Idempotent laws
Absorption laws
1. 𝐴 ∙ 𝐴 = 𝐴
1. 𝐴 + 𝐴𝐵 = 𝐴
2. 𝐴 + 𝐴 = 𝐴 2. 𝐴(𝐴 + 𝐵) = 𝐴
De Morgan’s Theorem
1. 𝐴 + 𝐵 = 𝐴ҧ𝐵ത
2. 𝐴𝐵 = 𝐴ҧ + 𝐵ത
A B C ഥ
A+B+C 𝐀 + 𝐁 + 𝐂 𝐀 ഥ
𝐁 𝐂ത ഥ𝐁
𝐀 ഥ 𝐂ത
0 0 0 0 1 1 1 1 1
0 0 1 1 0 1 1 0 0
0 1 0 1 0 1 0 1 0
0 1 1 1 0 1 0 0 0
1 0 0 1 0 0 1 1 0
1 0 1 1 0 0 1 0 0
1 1 0 1 0 0 0 1 0
1 1 1 1 0 0 0 0 0
From truth table, it is clearly visible that L.H.S. = R.H.S. Hence, the complement of
a sum of variables is equal to the product of their individual
Er. Gaurav Gautam , 9801104102
Proof of 𝐴𝐵𝐶 = 𝐴ҧ + 𝐵ത + 𝐶ҧ
L.H.S. R.H.S.
A B C ABC 𝐀𝐁𝐂 ഥ
𝐀 ഥ
𝐁 𝐂ത ഥ+𝐁
𝐀 ഥ
0 0 0 0 1 1 1 1 + 𝐂ത
0 0 1 0 1 1 1 0 1
0 1 0 0 1 1 0 1 1
0 1 1 0 1 1 0 0 1
1 0 0 0 1 0 1 1 1
1 0 1 0 1 0 1 0 1
1 1 0 0 1 0 0 1 1
1 1 1 1 0 0 0 0 1
0
From truth table, it is clearly visible that L.H.S. = R.H.S. Hence, the complement of
a product of variables is equal toEr. Gaurav
theGautam
sum of their individual
, 9801104102
Simplification using Boolean algebra:
1. 𝑥ҧ 𝑦ത 𝑧 + 𝑥ҧ y 𝑧 + 𝑥𝑦ത
2. x y + 𝑥ҧ 𝑧 + y 𝑧
3. 𝑥ҧ 𝑦ത 𝑧ഥ + 𝑥ҧ y 𝑧ഥ + x 𝑦ത 𝑧ഥ + x y 𝑧ഥ
4. AB + A(B+C) + B (B+C)
Boolean Boolean
• A Boolean function is described by an Function Expression
algebraic operation called Boolean
expression which consist of binary Any logical expression can be expressed
variables, the constants 0 and 1 and in the following two standard forms:
the logical operation symbols.
i. Sum-of-Products (SOP)
ii. Product of Sum (POS)
0 0 1 𝐴ҧ 𝐵𝐶
ത m1 0 0 0 1 0
0 1 0 𝐴ҧ 𝐵 𝐶ҧ m2 0 0 1 0 0
0 1 1 𝐴ҧ 𝐵 𝐶 m3 0 1 0 0 0
1 0 0 A 𝐵ത 𝐶ҧ m4 0 1 1 1 1
1 0 1 A 𝐵ത 𝐶 m5 1 0 0 0 0
1 1 0 A B 𝐶ҧ m6 1 0 1 0 1
1 1 1 ABC m7 1 1 0 1 1
1 1 1 0 1
F1 =𝐴ҧ 𝐵ത 𝐶+
ҧ 𝐴ҧ 𝐵 𝐶+A B 𝐶ҧ • F2 =𝐴ҧ 𝐵 𝐶 + A 𝐵ത 𝐶 + A B 𝐶ҧ +A B C
= m0 + m3 + m6 = m3 + m5 + m6 + m7
=σ𝑚(0,3,6)
Er. Gaurav Gautam, 9801104102
Converting SOP to Standard SOP
• Multiply each product term by • Convert A+B to Standard SOP.
ҧ where A is the missing
(A+ 𝐴), Here, F = A+B
term.
ത + B(A+ 𝐴)ҧ
= A(B+ 𝐵)
• Expand the multiplication and
ത
= AB+A 𝐵+AB+ ҧ
𝐴B
repeat step 1 until standard SOP
is obtained ത 𝐴B
= AB+A 𝐵+ ҧ
Step 2: 000,010,100,110
Step3: SOP
=𝐴ҧ𝐵ത 𝐶ҧ + 𝐴𝐵
ҧ 𝐶ҧ + 𝐴𝐵𝐶
ҧ ത + 𝐴𝐵𝐶
+ 𝐴𝐵𝐶
Er. Gaurav Gautam