Introduction To Digital Electronics: Boolean Algebra
Introduction To Digital Electronics: Boolean Algebra
▪ 0/1
▪ True/False
▪ On /Off (Current/Logic Gates/Devices such as motors)
▪ High/Low (Voltage)
▪ Magnetized /Demagnetized (Hard Disk Platter)
▪ Light passes/Light does not pass (Punch Card Holes)
▪ Light reflects/Light does not reflect (DVD/Optical fiber)
3
NOT 𝐹 = 𝐴ҧ or 𝐴′ or ! 𝐴 or ~𝐴
AND 𝐹 = 𝐴. 𝐵 or 𝐴𝐵 or 𝐴 ∗ 𝐵
OR 𝐹 =𝐴+𝐵
NAND 𝑭 = (𝑨. 𝑩)
NOR 𝑭= 𝑨+𝑩
XOR ഥ 𝑩 + 𝑨𝑩
𝑭=𝑨 ഥ
XNOR ഥ𝑩
𝑭 = 𝑨𝑩 + 𝑨 ഥ
6
7
Mapping process:
1. Make a matrix with cells equal to the
total number of possible output.
2. Arrange the inputs along the edges of
the matrix.
3. Put the output corresponding to the
combination of the row-column
inputs into the cells.
8
AND gate
OR gate
10
De Morgan’s Therem
If the inputs are passed first through NOT gates and then through an OR gate, the final
output is the same as putting the inputs first through AND gate and then the output inverted
by a NOT gate, i.e., ഥ+𝑩
𝑨 ഥ = 𝑨. 𝑩
12
13
0 1 0 =𝐴
1 0 1
1 1 1
14
= (𝐴 + 0)(𝐴′ + 0) 𝐴𝐵 + 𝐵 + 𝐵𝐶 ′ + 𝐵′𝐶
= 𝐴. 𝐴′ = 𝐵 𝐴 + 1 + 𝐶 ′ + 𝐵′𝐶
=0 = 𝐵 𝑨 + 𝑪′ + 𝟏 + B′C
= 𝐵. 1 + 𝐵′ 𝐶
= 𝐵 + 𝐵′ 𝐶
=𝐵+𝐶
15
𝑿𝒙 ഥ. 𝑩
𝑿 = (𝑨 ഥ 𝑫) . ( 𝑨. 𝑩. 𝑪.
ഥ . 𝑪. ഥ 𝑫ഥ)
𝑋 = 𝐴ҧ + 𝑩 ഥ+𝑫
ഥ +𝑪 ഥ . (𝑨
ഥ+𝑩 ഥ+𝑫
ഥ +𝑪 ഥ)
𝑋 = 𝐴 + 𝐵 + 𝐶 + 𝐷 (𝐴 + 𝐵ത + 𝐶 + 𝐷)
ഥ
𝑿= 𝒀+𝑩 . 𝒀+𝑩 [taking A+C+D=Y]
𝑋 = 𝑌 + 𝐵 . 𝑌 + 𝑌 + 𝐵 . 𝐵ത
ഥ
ഥ + 𝑩𝑩
𝑋 = 𝑌𝑌 + 𝐵𝑌 + 𝑌B ഥ 𝒀+𝟎
= Y+ B+B
⇒ 𝑿 = 𝒀 + 𝟏. 𝒀 = 𝒀 + 𝒀 = 𝒀 = 𝑨 + 𝑪 + 𝑫
16
(SOP)
variables.
(POS)
▪ Treat zeros in the truth table as uncomplemented
variables, and ones as complemented variables.
▪ Drop terms corresponding to an output of one in the
truth table
L = (B1+B2). (B1+B2’). (B1’+B2). (B1’+B2’)
L = 𝐵1. 𝐵2
20
= 𝐵1. 𝐵1. 𝐵2 + 𝐵2
= 𝐵1 + 𝐵1. 𝐵2 + 𝐵1. 𝐵2
Let’s simplify
= 𝐵2. 𝐵1. 𝐵2 + 𝐵1
OFF
OFF
ON ❖ Both S1 and S3
ON change values while
S2 remains fixed
𝑀 = 𝑆1. 𝑆2 + 𝑆1. 𝑆2
𝑀 = 𝑆2(𝑆1 + 𝑆1)
𝑀 = 𝑆2.1
𝑀 = 𝑆2
25
2. Arrange the inputs variables along the edges of the matrix. For 2 input variable
system, 1 input variable along the row and 1 input variable along the column;
For 3 input variable system, 1 input variable along the row and 2 input variables
along the column or vice versa; For 4 input variable system, 2 input variables
along the row and 2 input variables along the column or 1 input variable along
the row and 3 input variables along the column or vice versa.
For example, for 2 input variables along the row (or column) the values should
be taken as 00, 01, 11 and 10 sequentially.
For 3 input variable traverse, the sequence should be 000, 001, 011, 010, 110,
111, 101 and 100.
27
K-Mapping Process:
3. Put the outputs (0’s or 1’s) corresponding to the combination of the row-
column input variables into the cells.
5. For each block of 1’s, traverse both row-wise and column-wise and list the
input variable(s) which remain unchanged.
In the expression, write all the unchanged input variables for each block
AND-ing them together. If the value of the unchanged input variable is 0,
then write its compliment in the expression.
Unchanged input variables for each block are OR-ed with other block.
28
K-Mapping
S1 S2 S3 M
S1S2
Motor
S3
1. At first, a matrix is created with total cells of 8 equal to the number of possible output.
2. 1 input variable (S3) is arranged in the row and 2 input variables (S1 and S2) in the column
with their values in proper sequence.
3. Output values are put into the cells.
4. For the square block of 1’s, as row traversing is done, input variable S3 changes and as
column traversing is done, input variable S1 changes, while input variable S2 remains fixed.
5. The result of the minimization is M = S2
29
0 0 1 1 1 1 0 0
1. At first, a matrix is created with total cells of 8 equal to the number of possible output.
2. All 3 input variables (S1, S2 and S3) are arranged in the column with their values in proper sequence.
3. Output values are put into the cells.
4. For the rectangular block of 1’s, as column traversing is done, input variable S1 and input variable S3
change values, while input variable S2 remains fixed.
5. The result of the minimization is M = S2
30
S2S3 00 0 0
01 0 0
11 1 1
10 1 1
1. At first, a matrix is created with total cells of 8 equal to the number of possible output.
2. 2 input variables (S2 and S3) are arranged in the row with their values in proper sequence and 1
input variable (S1) in the column
3. Output values are put into the cells.
4. For the square block of 1’s, as column traversing is done, input variable S1 changes, while row
traversing done, input variable S3 changes, while input variable S2 remains fixed.
5. The result of the minimization is M = S2
31
(viii) There should be as few groups as possible, as long as this does not
contradict any of the previous rules.
36
Let’s consider the logic circuit below. Assuming the input signals “A”, “B”
and “C” are provided from switches, sensors or other gate circuits.
37
Step-1:
Write a Boolean expression for the output.
38
A+B
A 𝑄𝐹𝑄 = 𝐴 + 𝐵 . 𝐵 + 𝐶ҧ )
B
Q
B 𝑄𝐹𝑄 = 𝐴 + 𝐵 + (𝐵 + 𝐶)ҧ
C 𝑄𝐹𝑄 = 𝐴 + 𝐵 + 𝐵 + 𝐶ҧ
B+C
C
𝑄𝐹𝑄 = 𝐴 + 𝐵 + 𝐶ҧ
Simplified circuit.
A
B
Q
C
41
Simplified circuit.
𝑄
42
Introduction to Digital Electronics
Practice Problems
Inputs Output
A B C X
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1
44
Introduction to Digital Electronics
Practice Problems
(i)
45
(ii) (iii)
46
B
Q
(ii)
X
48
(iii)