Digital Unit-1-1
Digital Unit-1-1
Number System
In a digital system, the system can understand only the optional number
system. In these systems, digits symbols are used to represent different values,
depending on the index from which it settled in the number system.
In simple terms, for representing the information, we use the number system in
the digital system.
Example (10110.001)2
We multiplied each bit of (10110.001)2 with its respective positional weight, and
last we add the products of all the bits with its weight.
(10110.001)2=(1×24)+(0×23)+(1×22)+(1×21)+(0×20)+
(0×2-1)+(0×2-2)+(1×2-3)
(10110.001)2=(1×16)+(0×8)+(1×4)+(1×2)+(0×1)+
(0×1⁄2)+(0×1⁄4)+(1×1⁄8)
(10110.001)2=16+0+4+2+0+0+0+0.125
(10110.001)2=(22.125 )10
Example 1: (111110101011.0011)2
1. Firstly, we make pairs of three bits on both sides of the binary point.
111 110 101 011.001 1
On the right side of the binary point, the last pair has only one bit. To make it a
complete pair of three bits, we added two zeros on the extreme side.
111 110 101 011.001 100
2. Then, we wrote the octal digits, which correspond to each pair.
(111110101011.0011)2= (7653.14)8
Example 1: (152.25)10
152/2 76 0 (LSB)
76/2 38 0
38/2 19 0
19/2 9 1
9/2 4 1
4/2 2 0
2/2 1 0
(152)10= (10011000)2
Step 2:
Now, perform the multiplication of 0.25 and successive fraction with base 2.
(0.25)10= (.01)2
Example 1: (152.25)10
Step 1:
Divide the number 152 and its successive quotients with base 8.
Operation Quotient Remainder
152/8 19 0
19/8 2 3
2/8 0 2
(152)10= (230)8
0.25×8 0 2
(0.25)10= (2)
Example 1: (152.25)10
152/16 9 8
9/16 0 9
0.25×16 0 4
(0.25)10= (4)16
Example 1: (152.25)8
(152.25)8=(1×82)+(5×81)+(2×80)+(2×8-1)+(5×8-2)
(152.25)8=64+40+2+(2×1⁄8)+(5×1⁄64)
(152.25)8=64+40+2+0.25+0.078125
(152.25)8=106.328125
Example 1: (152.25)8
We write the three-bit binary digit for 1, 5, 2, and 5.
(152.25)8= (001101010.010101)2
So, the binary number of the octal number 152.25 is (001101010.010101)2
For converting octal to hexadecimal, there are two steps required to perform,
which are as follows:
In the first step, we will find the binary equivalent of number 25.
Next, we have to make the pairs of four bits on both sides of the binary point. If
there will be one, two, or three bits left in a pair of four bits pair, we add the
required number of zeros on extreme sides and write the hexadecimal digits
corresponding to each pair.
Example 1: (152.25)8
Step 1:
We write the three-bit binary digit for 1, 5, 2, and 5.
(152.25)8= (001101010.010101)2
So, the binary number of the octal number 152.25 is (001101010.010101)2
Step 2:
1. Now, we make pairs of four bits on both sides of the binary point.
0 0110 1010.0101 01
On the left side of the binary point, the first pair has only one digit, and on the
right side, the last pair has only two-digit. To make them complete pairs of four
bits, add zeros on extreme sides.
0000 0110 1010.0101 0100
2. Now, we write the hexadecimal digits, which correspond to each pair.
(0000 0110 1010.0101 0100)2= (6A.54)16
Example 1: (152A.25)16
Step 1:
We multiply each digit of 152A.25 with its respective positional weight, and last
we add the products of all the bits with its weight.
(152A.25)16=(1×163)+(5×162)+(2×161)+(A×160)+(2×16-1)+(5×16-2)
(152A.25)16=(1×4096)+(5×256)+(2×16)+(10×1)+(2×16-1)+(5×16-2)
(152A.25)16=4096+1280+32+10+(2×1⁄16)+(5×1⁄256)
(152A.25)16=5418+0.125+0.125
(152A.25)16=5418.14453125
Example 1: (152A.25)16
We write the four-bit binary digit for 1, 5, A, 2, and 5.
(152A.25)16= (0001 0101 0010 1010.0010 0101)2
So, the binary number of the hexadecimal number 152.25
is (1010100101010.00100101)2
Example 1: (152A.25)16
Step 1:
We write the four-bit binary digit for 1, 5, 2, A, and 5.
(152A.25)16= (0001 0101 0010 1010.0010 0101)2
So, the binary number of hexadecimal number 152A.25
is (0011010101010.010101)2
Step 2:
3. Then, we make pairs of three bits on both sides of the binary point.
001 010 100 101 010.001 001 010
4. Then, we write the octal digit, which corresponds to each pair.
(001010100101010.001001010)2= (12452.112)8
So, the octal number of the hexadecimal number 152A.25 is 12452.112
Gray Code
Book Definition (M. Morris Mano)
Ex:- Binary 100101=(1 then 1+0 then 0+0 then 0+1 then 1+0 then
0+1) = Gray Code(110111)
0 0000 0000
1 0001 0001
2 0010 0011
3 0011 0010
4 0100 0110
5 0101 0111
6 0110 0101
7 0111 0100
8 1000 1100
9 1001 1101
10 1010 1111
11 1011 1110
12 1100 1010
13 1101 1011
14 1110 1001
15 1111 1000
Excess-3 Code
The excess-3 code is also treated as XS-3 code. The excess-3 code is a non-
weighted and self-complementary BCD code used to represent the decimal
numbers.
We can find the excess-3 code of the given binary number by using the following
steps:
We find the decimal number of the given binary number.
Then we add 3 in each digit of the decimal number.
Now, we find the binary code of each digit of the newly generated decimal
number.
We can also add 0011 in each 4-bit BCD code of the decimal number for getting
excess-3 code.
0 0000 0011
1 0001 0100
2 0010 0101
3 0011 0110
4 0100 0111
5 0101 1000
6 0110 1001
7 0111 1010
8 1000 1011
9 1001 1100
Example 2: Decimal number 81.61
1. We find the BCD code of each digit of the decimal number.
Digit BCD
8 1000
1 0001
6 0110
1 0001
8 1000+0011 1011
1 0001+0011 0100
6 0110+0011 1001
(3) So, the excess-3 code of the decimal number 81.61 is 1011
0100.1001 0100
Signed Numbers
The signed numbers are represented in three ways. The signed bit makes two
possible representations of zero (positive (0) and negative (1)), which is an
ambiguous representation.
Sign-Magnitude form
In this form, a binary number has a bit for a sign symbol. If this bit is set
to 1, the number will be negative else the number will be positive if it is
set to 0. Apart from this sign-bit, the n-1 bits represent the magnitude of
the number.
1's Complement
by inverting each bit of a number, we can obtain the 1's complement of a
number. The negative numbers can be represented in the form of 1's
complement. In this form, the binary number also has an extra bit for sign
representation as a sign-magnitude form.
2's Complement
by inverting each bit of a number and adding plus 1 to its least significant
bit, we can obtain the 2's complement of a number. The negative
numbers can also be represented in the form of 2's complement. In this
form, the binary number also has an extra bit for sign representation as a
sign-magnitude form.
1's complement
In number representation techniques, the binary number system is the most
used representation technique in digital electronics. The complement is used for
representing the negative decimal number in binary form. Different types of
complement are possible of the binary number, but 1's and 2's complements are
mostly used for binary numbers. We can find the 1's complement of the binary
number by simply inverting the given number.
Example 1: 11010.1101=00101.0010
2's complement
Just like 1's complement, 2's complement is also used to represent the signed
binary numbers. For finding 2's complement of the binary number, we will first
find the 1's complement of the binary number and then add 1 to the least
significant bit of it.
For example. If we want to calculate the 2's complement of the number
1011001, then firstly, we find the 1's complement of the number that is
0100110 and add 1 to the LSB. So, by adding 1 to the LSB, the number will be
(0100110) +1=0100111.
9's Complement
The 9's complement is used to find the subtraction of the decimal numbers. The
9's complement of a number is calculated by subtracting each digit of the
number by 9. For example, suppose we have a number 1423, and we want to
find the 9's complement of the number. For this, we subtract each digit of the
number 1423 by 9. So, the 9's complement of the number 1423 is 9999-1423=
8576.
10's Complement
The 10's complement is also used to find the subtraction of the decimal
numbers. The 10's complement of a number is calculated by subtracting each
digit by 9 and then adding 1 to the result. Simply, by adding 1 to its 9's
complement we can get its 10's complement value. For example, suppose we
have a number 1423, and we want to find the 10's complement of the number.
For this, we find the 9's complement of the number 1423 that is 9999-1423=
8576, and now we will add 1 to the result. So the 10's complement of the
number 1423 is 8576+1=8577.
Logic Gates
Logic gates play an important role in circuit design and digital systems. It is a
building block of a digital system and an electronic circuit that always have only
one output. These gates can have one input or more than one input, but most of
the gates have two inputs. On the basis of the relationship between the input
and the output, these gates are named as AND gate, OR gate, NOT gate, etc.
AND Gate
This gate works in the same way as the logical operator "and". The AND gate is
a circuit that performs the AND operation of the inputs. This gate has a
minimum of 2 input values and an output value.
Example:- Y=A AND B AND C AND D……N
Y=A.B.C.D……N
Y=ABCD……N
NAND Gate
The NAND gate is the combination of AND gate and NOT gate. This gate gives
the same result as a NOT-AND operation. This gate can have two or more than
two input values and only one output value.
Logic Design
Truth Table
NOR Gate
The NOR gate is the combination of an OR gate and NOT gate. This gate gives
the same result as the NOT-OR operation. This gate can have two or more than
two input values and only one output value.
Logic Design
Truth Table
XOR Gate
The XOR gate is also known as the Ex-OR gate. The XOR gate is used in half and
full adder and subtractor. The exclusive-OR gate is sometimes called as EX-OR
and X-OR gate. This gate can have two or more than two input values and only
one output value.
Logic Design
Truth Table
XNOR Gate
The XNOR gate is also known as the Ex-NOR gate. The XNOR gate is used in half
and full adder and subtractor. The exclusive-NOR gate is sometimes called as
EX-NOR and X-NOR gate. This gate can have two or more than two input values
and only one output value.
Logic Design
Truth Table
Boolean algebra
The logical symbol 0 and 1 are used for representing the digital input or output.
The symbols "1" and "0" can also be used for a permanently open and closed
digital circuit. The digital circuit can be made up of several logic gates. To
perform the logical operation with minimum logic gates, a set of rules were
invented, known as the Laws of Boolean Algebra. These rules are used to
reduce the number of logic gates for performing logic operations.
The Boolean algebra is mainly used for simplifying and analyzing the complex
Boolean expression. It is also known as Binary algebra because we only use
binary numbers in this. George Boole developed the binary algebra in 1854.
1. Only two values (1 for high and 0 for low) are possible for the variable
used in Boolean algebra.
2. The over bar (-) is used for representing the complement variable. So, the
complement of variable C is represented as.
3. The plus (+) operator is used to represent the ORing of the variables.
4. The dot (.) operator is used to represent the ANDing of the variables.
Annulment Law
When the variable is AND with 0, it will give the result 0, and when the variable
is OR with 1, it will give the result 1, i.e.,
B.0 = 0
B+1 = 1
Identity Law
When the variable is AND with 1 and OR with 0, the variable remains the same,
i.e.,
B.1 = B
B+0 = B
Idempotent Law
When the variable is AND and OR with itself, the variable remains same or
unchanged, i.e.,
B.B = B
B+B = B
Complement Law
When the variable is AND and OR with its complement, it will give the result 0
and 1 respectively.
B.B' = 0
B+B' = 1
This law states that, when the variable comes with two negations, the symbol
gets removed and the original variable is obtained.
((A)')' = A
Commutative Law
This law states that no matter in which order we use the variables. It means that
the order of variables doesn't matter in this law.
A.B = B.A
A+B = B+A
Associative Law
This law states that the operation can be performed in any order when the
variables priority is of same as '*' and '/'.
(A.B).C = A. (B.C)
(A+B)+C = A+ (B+C)
Distributive Law
This law allows us to open up of brackets. Simply, we can open the brackets in
the Boolean expressions.
Absorption Law
B+ (B.A) = B
B. (B+A) = B
De Morgan Law
The operation of an OR and AND logic circuit will remain same if we invert all the
inputs, change operators from AND to OR and OR to AND, and invert the output.
(A.B)' = A'+B'
(A+B)' = A'.B'
Boolean Functions
The binary variables and logic operations are used in Boolean algebra. The
algebraic expression is known as Boolean Expression, is used to describe
the Boolean Function. The Boolean expression consists of the constant value 1
and 0, logical operation symbols, and binary variables.
Example 1: F=xy'z+p
Example 2:
Apart from the algebraic expression, the Boolean function can also be described
in terms of the truth table. We can represent a function using multiple algebraic
expressions. They are their logically equivalents. But for every function, we have
only one unique truth table.
The output will be high when A=1 or BC'=1 or D=1 or all are set to 1. The truth
table of the above example is given below. The 2n is the number of rows in the
truth table. The n defines the number of input variables. So the possible input
combinations are 23=8.
There are two methods which are used for simplifying Boolean function. These
functions are as follows:
Karnaugh-map or K-map
Apart from the K-map, we can also use the NAND gate for simplifying the
Boolean functions. Let's see an example:
In simplification of the Boolean expression, the laws and rules of the Boolean
algebra play an important role. Before understanding these laws and rules of
Boolean algebra, understand the Boolean operations addition and multiplication
concept.
Boolean Addition
Boolean Multiplication
This law states that no matter in which order we use the variables. It means that
the order of variables doesn't matter. In Boolean algebra, the OR and the
addition operations are similar. In the below diagram, the OR gate display that
the order of the input variables does not matter at all.
A+B = B+A
A.B = B.A
Associative Law
This law states that the operation can be performed in any order when the
variables priority is same. As '*' and '/' have same priority. In the below
diagram, the associative law is applied to the 2-input OR gate.
A + (B + C) = (A + B) + C
For three variables, the associative law of multiplication is written as:
A (BC) = (AB)C
According to this law, no matter in what order the variables are grouped when
ANDing more than two variables. In the below diagram, the associative law is
applied to 2-input AND gate.
Distributive Law:
A (B + C) = AB + AC
Rules of Boolean algebra
There are the following rules of Boolean algebra, which are mostly used in
manipulating and simplifying Boolean expressions. These rules plays an
important role in simplifying boolean expressions.
1. A+0=A 7. A.A=A
2. A+1=1 8. A.A'=0
3. A.0=0 9. A''=A
Rule 1: A + 0 = A
Rule 3: (A.0) = 0
Rule 4: (A.1) = A
Rule 6: (A + A') = 1
ADVERTISEMENT
Rule 7: (A.A) = A
Rule 8: (A.A') = 0
Rule 9: A = (A')'
This rule states that if we perform the double complement of the variable, the
result will be the same as the original variable. So, when we perform the
complement of variable A, then the result will be A'. Further if we again perform
the complement of A', we will get A, that is the original variable.
We can prove this rule by using the rule 2, rule 4, and the distributive law as:
A + AB = A (1 + B) Factoring (distributive law)
A + AB = A.1 Rule 2: (1 + B)= 1
A + AB = A Rule 4: A .1 = A
Rule 11: A + AB = A + B
Rule 12: (A + B) (A + C) = A + BC
There are two ways in which we can put the Boolean function. These ways are
the minterm canonical form and maxterm canonical form.
Literal
Minterm
Example
The complement variables ~A and ~B can also be written as A' and B'
respectively. Thus, we can write the minterm as:
1. A.B'
2. A'.B
Example
Let's assume that we have three Boolean variables A, B, and C having values
A=1
B=0
C=0
Now, we will take the complement of the variables B and C because these values
are 0 and will take A without complement. So, the minterm will be:
Minterm=A.B'C'
Let's take another example in which we have two variables B and C having the
value
B = 0
C=1
Minterm=B'C
We know that, when Boolean variables are in the form of minterm, the variables
will appear in the product. There are the following steps for getting the
shorthand notation for minterm.
o In the first step, we will write the term consisting of all the variables
o Next, we will write 0 in place of all the complement variables such as ~A
or A'.
o We will write 1 in place of all the non-complement variables such as A or
b.
o Now, we will find the decimal number of the binary formed from the above
steps.
o In the end, we will write the decimal number as a subscript of
letter m(minterm). Let's take some example to understand the theory of
shorthand notation
The sum of all literals, either with complement or without complement, is known
as maxterm.
Example:
1. A+B
2. A+~B
3. ~A+B
We know that the complement variables ~A and ~B can be written as A' and B'
respectively. So, the above maxterm can be written as
1. A+B'
2. A'+B
Using the given variable values, we can write the maxterm as:
Example
Let's assume that we have three Boolean variables A, B., and C having values
A=1
B=0
C=0
Now, we will take the complement of the variables B and C because these values
are 0 and will take A without complement. So, the maxterm will be:
Maxterm=A+B'+C'
Let's take another example in which we have two variables B and C having the
value
B=0
C=1
Maxterm=B'+C
We know that, when Boolean variables are in the form of maxterm, the variables
will appear in sum. The steps for the maxterm are same as minterm:
o In the first step, we will write the term consisting of all the variables
o Next, we will write 0 in place of all the complement variables such as ~A
or A'.
o We will write 1 in place of all the non-complement variables such as A or
b.
o Now, we will find the decimal number of the binary formed from the above
steps.
o In the end, we will write the decimal number as a subscript of letter Here,
M denotes maxterm.
Inputs Output
X Y F
0 0 0
0 1 1
1 0 1
1 1 1
In our previous section, we learned about how we can form the minterm from
the variable's value. Now, a column will be added for the minterm in the above
table. The complement of the variables is taken whose value is 0, and the
variables whose value is 1 will remain the same.
X Y F M
0 0 0 X'Y'
0 1 1 X'Y
1 0 1 XY'
1 1 1 XY
Now, we will add all the minterms for which the output is true to find the desired
canonical SOP (Sum of Product) expression.
F=X' Y+XY'+XY
The process of converting SOP form to shorthand notation is the same as the
process of finding shorthand notation for minterms. There are the following
steps to find the shorthand notation of the given SOP expression.
Example: F = X'Y+XY'+XY
F = X'Y+XY'+XY
2. Now, we find the shorthand notations of the minterms X'Y, XY', and XY.
X'Y = (01)2 = m1
XY' = (10)2 = m2
XY = (11)2 = m3
3. In the end, we replace all the minterms with their shorthand notations:
F=m1+m2+m3
Let us assume that we have a boolean function F, which defined on two variables
X and Y. The minterms for the function F are expressed as shorthand notation is
as follows:
F=∑(1,2,3)
Now, from this expression, we will find the SOP expression. The Boolean function
F has two input variables X and y and the output of F=1 for m1, m2, and m3,
i.e., 1st, 2nd, and 3rd combinations. So,
F=∑(1,2,3)
F= m1 + m2 + m3
F= 01 + 10 + 11
Now, we replace zeros with either X' or Y' and ones with either X or Y. Simply,
the complement variable is used when the variable value is 1 otherwise the non-
complement variable is used.
F = ∑(1,2,3)
F=01+10+11
F= A'B + AB' + AB
Inputs Output
X Y F
0 0 0
0 1 1
1 0 1
1 1 0
In our minterm and maxterm section, we learned about how we can form the
maxterm from the variable's value. A column will be added for the maxterm in
the above table. The complement of the variables is taken whose value is 0, and
the variables whose value is 1 will remain the same.
X Y F M
0 0 0 X'+Y'
0 1 1 X'+Y
1 0 1 X+Y'
1 1 1 X+Y
Now, we will multiply all the minterms for which the output is false to find the
desired canonical POS (Product of sum) expression.
F=(X'+Y').(X+Y)
The process of converting POS form to shorthand notation is the same as the
process of finding shorthand notation for maxterms. There are the following
steps used to find the shorthand notation of the given POS expression.
F = (X'+Y').(X+Y)
2. Now, we will find the shorthand notations of the maxterms X'+Y' and X+Y.
X'+Y' = (00)2 = M0
X+Y = (11)2 = M3
3. In the end, we will replace all the minterms with their shorthand notations:
F=M0.M3
Example:
Let us assume that we have a boolean function F, defined on two variables X and
Y. The maxterms for the function F are expressed as shorthand notation is as
follows:
F=∏ (1,2,3)
Now, from this expression, we find the POS expression. The Boolean function F
has two input variables X and Y and the output of F=0 for M1, M2, and M3, i.e.,
1st, 2nd, and 3rd combinations. So,
F=∏ (1,2,3)
F= M1.M2.M3
F= 01.10.11
Next, we replace zeros with either X or Y and ones with either X' or Y'. Simply, if
the value of the variable is 1, then we take the complement of that variable, and
if the value of the variable is 0, then we take the variable "as is".
F = ∑ (1,2,3)
F=01.10.11
F=(A+B').( A'+B).( A'+B')
Conversion between Canonical Forms
There are the following steps using which we can easily convert the canonical
forms of the equations:
For getting the SOP form from the POS form, we have to change the symbol ∏
to ∑. After that, we write the numeric indexes of missing variables of the given
Boolean function.
There are the following steps to convert the POS function F = Π x, y, z (2, 3, 5)
= x y' z' + x y' z + x y z' into SOP form:
110 = x * y* z'
111 = x * y * z
So the SOP form is:
For getting the POS form of the given SOP form expression, we will change the
symbol ∏ to ∑. After that, we will write the numeric indexes of the variables
which are missing in the boolean function.
There are the following steps used to convert the SOP function F = ∑ x, y, z (0,
2, 3, 5, 7) = x' y' z' + z y' z' + x y' z + xyz' + xyz into POS:
001 = (x + y + z)
For getting the standard SOP form of the given non-standard SOP form, we will
add all the variables in each product term which do not have all the variables. By
using the Boolean algebraic law, (x + x' = 0) and by following the below steps
we can easily convert the normal SOP function into standard SOP form.
Sol:
F=AB+AC+BC
= A B (C + C') + A (B + B') C + (A + A') B C
= A B C + A B C' + A B C + A B' C + A B C + A' B C
= A B C + A B C' + A B' C + A' B C
For getting the standard POS form of the given non-standard POS form, we will
add all the variables in each product term that do not have all the variables. By
using the Boolean algebraic law (x * x' = 0) and by following the below steps,
we can easily convert the normal POS function into a standard POS form.
By these three steps, we can convert the POS function into a standard POS
function.
Example:
1. Term (p' + q + r)
As we can see that the variable s or s' is missing in this term. So we add s*s' =
1 in this term.
Similarly, we add p*p' = 1 in this term for getting the term containing all the
variables.
(q' + r + s' + p*p') = (p + q' + r + s') * (p' + q' + r + s')
Now, there is no need to add anything because all the variables are contained in
this term.
Just like the truth table, a K-map contains all the possible values of input
variables and their corresponding output values. However, in K-map, the values
are stored in cells of the array. In each cell, a binary value of each input variable
is stored.
2 Variable K-map
There is a total of 4 variables in a 2-variable K-map. There are two variables in
the 2-variable K-map. The following figure shows the structure of the 2-variable
K-map:
o In the above figure, there is only one possibility of grouping four adjacent
minterms.
o The possible combinations of grouping 2 adjacent minterms are {(m 0,
m1), (m2, m3), (m0, m2) and (m1, m3)}.
3-variable K-map
5-variable K-map
With the help of the 32- cell K-map, the boolean expression with 5 variables can
be simplified. For constructing a 5-variable K-map, we use two 4-variable K-
maps. The cell adjacencies within each of the 4- variable maps for the 5-variable
map are similar to the 4- variable map.
A K-map for five variables (PQRST) can be constructed using two 4-variable
maps. Each map contains 16 cells with all combinations of variables Q, R, S, and
T. One map is for P = 0, and the other is for P = 1).
As we know that K-map takes both SOP and POS forms. So, there are two
possible solutions for K-map, i.e., minterm and maxterm solution. Let's start and
learn about how we can find the minterm and maxterm solution of K-map.
There are the following steps to find the minterm solution or K-map:
Step 1:
Step 2:
Next, we create the K-map by entering 1 to each product-term into the K-map
cell and fill the remaining cells with zeros.
Step 3:
ADVERTISEMENT
We group the number of ones in the decreasing order. First, we have to try to
make the group of eight, then for four, after that two and lastly for 1.
In horizontally or vertically manner, the groups of ones are formed in shape of
rectangle and square. We cannot perform the diagonal grouping in K-map.
The elements in one group can also be used in different groups only when the
size of the group is increased.
The elements located at the edges of the table are considered to be adjacent.
So, we can group these elements.
We can consider the 'don't care condition' only when they aid in increasing the
group-size. Otherwise, 'don't care' elements are discarded.
Step 4:
In the next step, we find the boolean expression for each group. By looking at
the common variables in cell-labeling, we define the groups in terms of input
variables. In the below example, there is a total of two groups, i.e., group 1 and
group 2, with two and one number of 'ones'.
In the first group, the ones are present in the row for which the value of A is 0.
Thus, they contain the complement of variable A. Remaining two 'ones' are
present in adjacent columns. In these columns, only B term in common is the
product term corresponding to the group as A'B. Just like group 1, in group 2,
the one's are present in a row for which the value of A is 1. So, the
corresponding variables of this column are B'C'. The overall product term of this
group is AB'C'.
Step 5:
ADVERTISEMENT
Lastly, we find the boolean expression for the Output. To find the simplified
boolean expression in the SOP form, we combine the product-terms of all
individual groups. So the simplified expression of the above k-map is as follows:
A'+AB'C'
ADVERTISEMENT
To find the simplified maxterm solution using K-map is the same as to find for
the minterm solution. There are some minor changes in the maxterm solution,
which are as follows:
1. We will populate the K-map by entering the value of 0 to each sum-term
into the K-map cell and fill the remaining cells with one's.
2. We will make the groups of 'zeros' not for 'ones'.
3. Now, we will define the boolean expressions for each group as sum-terms.
4. At last, to find the simplified boolean expression in the POS form, we will
combine the sum-terms of all individual groups.
Example 1: Y= (A'+B')+(A'+B)+(A+B)
Example 3: F(A,B,C,D)=π(3,5,7,8,10,11,12,13)
De-Morgan's Theorem
0 0 0 1 0 1
0 1 0 1 1 0
1 0 0 1 1 0
1 1 1 0 1 0
The rules of De-Morgan's theorem are produced from the Boolean expressions
for OR, AND, and NOT using two input variables x and y. The first theorem of
Demorgan's says that if we perform the AND operation of two input variables
and then perform the NOT operation of the result, the result will be the same as
the OR operation of the complement of that variable. The second theorem of
DeMorgan says that if we perform the OR operation of two input variables and
then perform the NOT operation of the result, the result will be the same as the
AND operation of the complement of that variable.
According to the first theorem, the complement result of the AND operation is
equal to the OR operation of the complement of that variable. Thus, it is
equivalent to the NAND function and is a negative-OR function proving that
(A.B)' = A'+B' and we can show this using the following table.
0 0 0 1 1 1 1
0 1 0 1 1 0 1
1 0 0 1 0 1 1
1 1 1 0 0 0 0
De-Morgan's Second Theorem
0 0 0 1 1 1 1
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 0
Let's take some examples in which we take some expressions and apply
DeMorgan's theorems.
Example 1: (A.B.C)'
(A.B.C)'=A'+B'+C'
Example 2: (A+B+C)'
(A+B+C)'=A'.B'.C
Example 3: ((A+BC')'+D(E+F')')'
For applying the DeMorgan's theorem on this expression, we have to follow the
following expressions:
1) In complete expression, first, we find those terms on which we can apply the
DeMorgan's theorem and treat each term as a single variable.
So,
Now, this expression has no term in which we can apply any rule or theorem.
So, this is the final expression.
The "Don't care" condition says that we can use the blank cells of a K-map to
make a group of the variables. To make a group of cells, we can use the "don't
care" cells as either 0 or 1, and if required, we can also ignore that cell. We
mainly use the "don't care" cell to make a large group of cells.
The cross (×) symbol is used to represent the "don't care" cell in K-map. This
cross symbol represents an invalid combination. The "don't care" in excess-3
code are 0000, 0001, 0010, 1101, 1110, and 1111 because they are invalid
combinations. Apart from this, the 4-bit BCD to Excess-3 code, the "don't care"
are 1010, 1011, 1100, 1101, 1110, and 1111.
We can change the standard SOP function into a POS expression by making the
"don't care" terms the same as they are. The missing minterms of the POS form
are written as maxterms of the POS form. In the same way, we can change the
standard POS function into an SOP expression by making the "don't care" terms
the same as they are. The missing maxterms of the SOP form are written as
minterm of the SOP form.
Solution:
Solution:
F = A'(B' + C')
Example-3:
Minimize the following function in SOP minimal form using K-Maps: F(A,
B, C, D) = m(1, 2, 6, 7, 8, 13, 14, 15) + d(3, 5, 12)
Explanation:
Don't Care conditions has the following significance with respect to the digital
circuit design:
Simplification:
These conditions denote the set of inputs that never occurs for given digital
circuits. Therefore, to simplify the boolean output expressions, the 'don't care'
are used.
The switching of the state is reduced when we group the terms long with "don't
care". This reduces the required memory space resulting in lower power
consumption.
For reducing the number of gates that are used to implement the given
expression, simplification places an important role. So, the 'don't care' makes
the logic design more economical.
Prevention of Hazards:
In the digital system, the 'don't care' place an important role in hazards
prevention.
These also play an important role in code conversion. For example- In the design
of a 4-bit BCD-to-XS-3 code converter, the input combinations 1010, 1011,
1100, 1101, 1110, and 1111 are don't cares.