23 Sc Module1 ADE AK
23 Sc Module1 ADE AK
Problems:
1. Mr. X buys a two wheeler. The maximum load on the vehicle permitted is 100 kgs.
Mr. X weighs 70 kgs. His friends Y and Z weigh 50 kgs each. Develop a digital
system to generate an alarm when the vehicle is overloaded.
22 = 4 21 = 2 20 = 1
F
X Y Z
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
2. Design a combinational circuit truth table such that output is generated when
majority of 4 inputs are TRUE
Input variables: A and B represent 2 operators. ‘1’ indicates they are in position
M – represents the materials, ‘1’ indicates material is present in conveyor
S – interlock switch, ‘1’ indicates switch is closed (not open)
Output Variable: Motor_On, ‘1’ indicates motor to be on
Table below shows MinTerm and MaxTerm symbol and expression for a 3-variable.
1. Mr. X buys a two wheeler. The maximum load on the vehicle permitted is 100 kgs.
Mr. X weighs 70 kgs. His friends Y and Z weigh 50 kgs each. Develop a digital
system to generate an alarm when the vehicle is overloaded.
22 = 4 21 = 2 20 = 1
F
X Y Z The switching function for the
0 0 0 0 table is:
0 0 1 0
0 1 0 0 F=
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
2. Design a combinational circuit switching equation such that output is generated
when majority of 4 inputs are TRUE
POS expression:
a. Identify the missing term(variable) in each of the OR term (SUM term)
b. OR missing term and its compliment with the original OR term
Eg. Term: (X+Y), Then canonical form is (X+Y)+ZZ’ = (X+Y+Z)(X+Y+Z’)
c. Expand and identify the terms
Problems:
1. Express the equation f(a,b,c) = ab’ + ac’ + bc in standard canonical form and write it
in decimal form
Solution: Identify the missing literal in each term and AND the term with the OR of variable
and its compliment, i.e. f = ab’(c+c’) + ac’(b+b’) + bc(a+a’), expanding we get,
2. Express the equation f(w,x,y,z) = w’x + yz’ in standard canonical form and write it
in decimal form
Solution: There are two literals missing in each term. Hence consider one at a time and obtain
the canonical form.
Identify the missing literal in each term and AND the term with the OR of variable and
its compliment, i.e. f = w’x (y+y’) + yz’ (w+w’), expanding we get,
f = w’xy + w’xy’ + wyz’ + w’yz’
f = w’xy (z+z’) + w’xy’ (z+z’) + wyz’ (x+x’) + w’yz’ (x+x’)
f = w’xyz + w’xyz’ + w’xy’z + w’xy’z’ + wxyz’ + wx’yz’ + w’xyz’ + w’x’yz’
Identify the similar terms and eliminate one of them, (Hint: A + A = A) canonical SOP
expression will be,
f = w’xyz + w’xyz’ + w’xy’z + w’xy’z’ + wxyz’ + wx’yz’ + w’x’yz’
Identify the corresponding minterm decimal form values, we get
f = Σ 7, 6, 5, 4, 14, 10, 2
Therefore rearranging the terms we get the canonical expression in decimal form is,
f (w, x, y, z) = Σ 2, 4, 5, 6, 7, 10, 14
3. Express the equation f(a,b,c) = (a+b’)(b’+c) in standard canonical form and write it
in decimal form
Solution: Identify the missing literal in each term and OR the term with the AND of variable
and its compliment,
i.e. f = [ (a + b’)+cc’ ] [ (b’ + c)+aa’], expanding we get,
f = (a+ b’ + c) (a +b’ + c’) (a + b’+ c)(a’ + b’ + c)
Identify the similar terms and eliminate one of them, (Hint: A . A = A) canonical POS
expression will be,
f = ( a + b’ + c) ( a + b’ +c’ ) ( a’ + b’ + c )
Identify the corresponding minterm decimal form values, we get
f = π (M2, M3, M6)
Therefore rearranging the terms we get the canonical expression in decimal form is,
f (a, b, c) = π ( M2 , M3, M6 ) or π (2 , 3, 6)
3. Output of a digital circuit is to be ‘1’ when value of input >3. The weightage of
input variables are A=3, B=3, C=2 and D= -1
Input Variables: A,B,C,D and Output variables: F
Requirement: Output, F, should be ‘1’ if combined weightage of inputs >3
Since we have 4 input variables, there will be 24 = 16 combinations possible
4. Write the minterm and maxterm Boolean expression for the truth table below using
variable name and in decimal format
Inputs Outputs
Note:
A B C W X
For minterm expression, consider the outputs
0 0 0 0 1
when in ‘1’ state
0 0 1 1 0
0 1 0 0 1
For maxterm expression, consider the outputs
0 1 1 1 1
when in ‘0’ state
1 0 0 1 0
1 0 1 0 1
1 1 0 0 0
1 1 1 1 1
i. Minterm expression:
w = a’b’c + a’bc + ab’c’ + abc --------- using variable name
w = Σ (m1, m3, m4 , m7) (or) w = Σ (1,3,4,7) --- decimal form
x = a’b’c’ + a’bc’ + a’bc + ab’c + abc ---- using variable name
x = Σ (m0, m2, m3 , m5 ,m7) (or) w = Σ (0,2,3,5,7) --- decimal form
There are several methods for simplification. Use of Boolean algebra is one of the methods.
But the process is lengthy and prone to human errors. A better approach is to use Karnaugh
Map.
K-Map is a matrix of squares. The number of boxes or square depends on the number of input
variables. If there are ‘n’ input variables, then K-Map will have 2n boxes. Each box represents
a minterm or maxterm of Boolean equation. If the given equation is in terms of minterms, then
‘1’ is entered into the square that represents that term. A maxterm is represented by a ‘0’
a) Three variable-Maps
For 3-variable switching equations, there will be 8 minterms. Therefore, K-Map will have
8 (23) squares. Let a,b,c be the three Boolean variables with ‘a’ as MSB, the mapping of
minterms for a 3-variable K-map is shown below:
b) Four variable-Maps
For 4-variable switching equations, there will be 16 minterms. Therefore, K-Map will have
16 (24) squares. Let a, b, c, d, be the four Boolean variables with ‘a’ as MSB, the mapping
of minterms for a 4-variable K-map is shown below:
Valid
Valid Groupings
Groupings
In-Valid In-Valid
Groupings Groupings
Definitions:
Prime Implicant: A set of 2m K-map cells are combined to form prime implicant. A prime
implicant is a product term obtained by combining the maximum possible number of
minterms from adjacent squares in the map. Use bigger groupings (prime implicant)
wherever possible.
Essential Prime Implicant: It is a prime implicant that includes atleast one minterm that
is not covered by any other prime implicant.
Redundant Prime
Implicant
Solution: f = a’c + b
Solution: f = z’
Solution: f = ab’c’ + bc
v. F(w, x, y, z) = Σ(0,1,4,5,9,11,13,15)
Solution: f = w’y’ + wz
II. K-map solution for incompletely specified functions (Don’t care terms)
When the output is not known for all possible combinations of input, then the
function is called incompletely specified functions. The minterms or maxterms that
are not used as part of output function are called don’t care terms.
In K-Map don’t care terms are marked as ‘d’ or ‘x’.
Don’t care terms can be treated as ‘0’ or ‘1’
If don’t care terms help in creating larger group of minterms, then treat it as ‘1’.
The aim is to solve 1’s using don’t care. If don’t care terms do not help to increase
the grouping size of minterms, then treat is as ‘0’
Solution: f = z’
a. Construct the K-Map and mark ‘1’ corresponding to the given minterms
b. Mark ‘0’ in the remaining cells of K-map. This represents the compliment of
the given SOP expression,
c. Solve for 0’s and the result will be compliment of required final answer.
Compiled by A. Kumar, Dept of EEE, BNMIT Page 17
Module 1 23EEE135
d. Use De-Morgan’s theorem to obtain the POS solution.
xi. Obtain POS solution using K-map for the expression given below:
f(a, b, c, d) = Σ (0, 2, 5, 7, 8, 10, 13, 15)
F = ( b’ + d) ( b + d’)
xii. Obtain POS solution using K-map for the expression below:
F(w, x, y, z) = Σ (1, 5,7,11,13) + Σ d(8, 14, 15)
F = z (w + x + y’) ( w’ + x + y)
XI) Code Convertors: There are different numeric codes namely Excess-3 code, Gray code, 7-
sergment code to name a few.
a) BCD to Excess-3 code convertor: Excess-3 code is obtained 3 (0011) to the given BCD
code. Since BCD values are between 0-9, minterms 10-15 are treated as don’t cares while
designing. Consider the truth table showing BCD to Excess-3 code convertor :
DP G F E D C B A
0 00 0 0 1 10
Therefore the truth table for BCD to 7-segment code conversion is given below:
NOTE: Students are advised to frame the equation for A to G. solve using K-
map and build the circuit as part of Assignment 1.