Assignment 02 Solution
Assignment 02 Solution
Assignment 02
Exercise 01
Simplify the following Boolean expression using only Boolean algebra and axioms
a) 𝐹 = 𝑋𝑍 + 𝑌(𝑋̅𝑍 + 𝑌̅ )
̅̅̅̅ + 𝐶)
d) 𝐹 = 𝐵(𝐴𝐵 + 𝐴𝐵̅ )(𝐴𝐶
Y = B(AB + AB’)((AC)’ + C)
Y = (ABB + AB’B)(A’ + C’ + C)
Because XX = X , X’X = 0 , and X + X’ = 1
The National Higher School of Artificial Intelligence 2023/2024
Digital Systems First Year
Y = (AB + 0)(A’ + 1)
Because X + 0 = X, X + 1 = 1
Y = AB(1)
Y= AB
e) (𝐴 + 𝐵̅ 𝐵) + ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑜𝑢𝑡 = ̅̅̅̅̅̅̅̅̅̅̅̅ (𝐵 + 𝐴̅)(𝐴 + 𝐵𝐶)
f) 𝑜𝑢𝑡 = ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
(𝐶 + 𝐴𝐵𝐶̅ + B ̅ D) + ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
̅C (𝐶 + ̅̅̅̅̅̅̅̅
𝐵 + 𝐷)
The National Higher School of Artificial Intelligence 2023/2024
Digital Systems First Year
Exercise 02
Express the following functions in a sum of minterms (SOP) and a product of maxterms (POS):
a) 𝐹 = (XY + Z)(Y + XZ)
b) 𝐹 = 𝐷(𝐴̅ + 𝐵) + 𝐵̅ 𝐷
The National Higher School of Artificial Intelligence 2023/2024
Digital Systems First Year
Exercise 03
Simplify the following Boolean SOP expression using the Karnaugh map technique.
a) F(W,X,Y,Z) = ∑ m(0,2,4,5,7,8,10,13,14,15)
Karnaugh Map
00 01 11 10
00 1 1
01 1 1 1
11 1 1 1
10 1 1
Which yields the expression:
There may be other expressions, but those ones should all reduce to the one above or be equivalent.
Check these carefully.
b) F(X,Y,Z) = Π M(0,1,2,3,4,6)
Karnaugh Map
00 01 11 10
0 0 0 0 0
1 0 1 1 0
Simplify the following Boolean SOP expression, with don’t care conditions, using the Karnaugh map
technique. Express your answer in POS form.
00 01 11 10
00 0 1 dc 1
01 0 1 0 dc
11 1 dc dc 1
10 1 1 0 dc
= (w’+z)(yz+y’z’)
= w’yz + w’y’z’+ yzz + y’z’z
= w’yz + w’y’z’+ yz
= (w’+1)yz + w’y’z’
= yz + w’y’z’
Fpos = Demorgan((Fsop)’)
Fpos = Demorgan(yz + w’y’z’)= (y’+z’)(w+y+z)
00 01 11 10
00 0 1 dc 1
01 0 1 0 dc
11 1 dc dc 1
10 1 1 0 dc
Fpos = (y’+z’)(w+y+z)
NOTE: Remember the D values can be chosen arbitrarily. In this example, there is no benefit
gained by setting any D to 0. To form the POS expression, all D values are considered as 1’s
and only the 0-cells are encircled. The resulting POS form is:
F = ( W + X’ + Z ) ( X + Y’ + Z’ ) ( W’ + X’ + Y + Z’ )
The National Higher School of Artificial Intelligence 2023/2024
Digital Systems First Year
Exercise 04
a) Assuming the following Truth Table for a three input variable function F(A,B,C), determine the full
Minterm expression for F.
A B C F
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Answer: F(A,B,C) = A’B’C’ + A’BC + AB’C’ + ABC’
b) Using a Karnaugh map, simplify the expression for F(A,B,C) defined in the above Part.
Exercise 05
The circuit shown below can be simplified. Write a Boolean expression that represents the function of
the simplified circuit using the minimum number of AND, OR and NOT gate.
A’
A A’ + AB
A’ + AB + (A’ + AB)’ B
C
AB
B (A’ + AB)’. B
C = A’ + AB + (A’ + AB)’ B
= A’ + AB + ( A (A’+B’) ) B
= A’ + AB + AA’B + AB’B
= A’ + AB
= A’ + B
The National Higher School of Artificial Intelligence 2023/2024
Digital Systems First Year
Exercise 6
Draw the circuit diagram for the Boolean expression below. Use NAND gates only. (ie. you may not
use inverter gates).
𝐹 = 𝑋𝑌̅ + 𝑋̅𝑌
Draw the circuit diagram for the following Boolean expression using only NOR gates
𝐹 = 𝑋𝑌 + 𝑋̅𝑍 + 𝑌𝑍̅
Exercise 7
Design a combinational circuit with three inputs, x, y and z, and the three outputs, A, B, and C. when
the binary input is 0, 1, 2, or 3, the binary output is one greater than the input. When the binary input is
4, 5, 6, or 7, the binary output is one less than the input.
a) Derive the truth table that defines the required relationship between inputs and outputs.
The National Higher School of Artificial Intelligence 2023/2024
Digital Systems First Year
X Y Z A B C
0 0 0 0 0 1
0 0 1 0 1 0
0 1 0 0 1 1
0 1 1 1 0 0
1 0 0 0 1 1
1 0 1 1 0 0
1 1 0 1 0 1
1 1 1 1 1 0
b) Obtain the simplified Boolean functions for each output as a function of the input variables.
B=x+y+z