TD2 2
TD2 2
Ex1. Demonstrate the validity of the following identities by means of truth tables:
(a) DeMorgan’s theorem for three variables:
(𝑥 + 𝑦 + 𝑧)’ = 𝑥’𝑦’𝑧’ and (𝑥𝑦𝑧)’ = (𝑥’ + 𝑦’ + 𝑧’)
(b) The distributive law: 𝑥 + 𝑦𝑧 = (𝑥 + 𝑦)(𝑥 + 𝑧)
(c) The distributive law: 𝑥(𝑦 + 𝑧) = 𝑥𝑦 + 𝑥𝑧
(d) The associative law: 𝑥 + (𝑦 + 𝑧) = (𝑥 + 𝑦) + 𝑧
(e) The associative law and 𝑥(𝑦𝑧) = (𝑥𝑦)𝑧
Ex2. Simplify the following Boolean expressions to a minimum number of literals:
(a) 𝑥𝑦 + 𝑥𝑦’ (b) (𝑥 + 𝑦)(𝑥 + 𝑦’)
(c) 𝑥𝑦𝑧 + 𝑥’𝑦 + 𝑥𝑦𝑧’ (d) (𝐴 + 𝐵)’(𝐴 + 𝐵)’
(e) 𝑥𝑦 + 𝑥(𝑤𝑧 + 𝑤𝑧 ) (f) (𝐵𝐶 + 𝐴 𝐷)(𝐴𝐵 + 𝐶𝐷 )
Draw logic diagrams of the circuits that implement the original and simplified
expressions. (b) and (f)
Ex3. Reduce the following Boolean expressions to the indicated number of literals:
Draw logic diagrams of the circuits that implement the original and simplified
expressions. (a) and (b)
Ex4. Find the complement of 𝐹 = 𝑤𝑥 + 𝑦𝑧; then show that 𝐹𝐹′ = 0 and 𝐹 + 𝐹′ = 1.
Ex5. We can perform logical operations on strings of bits by considering each pair of corresponding
bits separately (called bitwise operation). Given two eight‐bit strings A = 10110001 and B = 10101100,
evaluate the eight‐bit result after the following logical operations:
A B C T1 T2
0 0 0 1 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 0 1
1 0 1 0 1
1 1 0 0 1
1 1 1 0 1