PHAL Visoth E20200158
PHAL Visoth E20200158
ID: e20200158
Group: I3-GEE-C1
Prob 1. Derive the Boolean equation for the circuit below. The switches are inputs (K1, K2,
and K3). The lamp L is the output. (K1 is close when K1 =1; K1 is opened when K1 =0 ) (L =
1 when light is ON, L = 0 when light is OFF)
Solution 1
Required Boolean equation for the circuit is 𝐿 = 𝐾1 (𝐾2 + 𝐾3 )
Truth Table:
𝐾1 𝐾2 𝐾3 L
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
K-map
Logic function is,
𝑳 = 𝑲𝟏 𝑲 𝟐 + 𝑲𝟏 𝑲𝟑
Thus 𝑳 = 𝑲𝟏 (𝑲𝟐 + 𝑲𝟑 )
For the lamp to glow, K1 must be closed and either or both of K2 and K3 to be closed.
Prob 3. A majority gate produces a TRUE output if and only if more than half of its inputs
are TRUE.
• Complete a truth table for the 5-inputs majority gate.
Solution 3
We can see that there are five inputs. Thus, 25 = 32
Truth Table
A B C D E Y
0 0 0 0 0 0
0 0 0 0 1 0
0 0 0 1 0 0
0 0 0 1 1 1
0 0 1 0 0 0
0 0 1 0 1 1
0 0 1 1 0 1
0 0 1 1 1 1
0 1 0 0 0 0
0 1 0 0 1 1
0 1 0 1 0 1
0 1 0 1 1 1
0 1 1 0 0 1
0 1 1 0 1 1
0 1 1 1 0 1
0 1 1 1 1 1
1 0 0 0 0 0
1 0 0 0 1 1
1 0 0 1 0 1
1 0 0 1 1 1
1 0 1 0 0 1
1 0 1 0 1 1
1 0 1 1 0 1
1 0 1 1 1 1
1 1 0 0 0 1
1 1 0 0 1 1
1 1 0 1 0 1
1 1 0 1 1 1
1 1 1 0 0 1
1 1 1 0 1 1
1 1 1 1 0 1
1 1 1 1 1 1
Solution 4
𝑃=𝑚 ̅ 2 (𝑚1 ⊕ 𝑚0 ) + 𝑚
̅ 3𝑚 ̅̅̅̅̅̅̅̅̅̅̅̅
̅ 3 𝑚2 (𝑚 1 ⊕ 𝑚0 ) + 𝑚3 𝑚
̅̅̅̅̅̅̅̅̅̅̅̅
̅ 2 (𝑚 1 ⊕ 𝑚0 ) + 𝑚3 𝑚2 (𝑚1 ⊕ 𝑚0 )
𝑃=𝑚
̅ 3 {𝑚 ̅̅̅̅̅̅̅̅̅̅̅̅
̅ 2 (𝑚1 ⊕ 𝑚0 ) + 𝑚2 (𝑚 1 ⊕ 𝑚0 )} + 𝑚3 {𝑚
̅̅̅̅̅̅̅̅̅̅̅̅
̅ 2 (𝑚 1 ⊕ 𝑚0 ) + 𝑚2 (𝑚1 ⊕ 𝑚0 )}
𝑃=𝑚 ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
̅ 3 (𝑚2 ⊕ 𝑚1 ⊕ 𝑚0 ) + 𝑚3 (𝑚 2 ⊕ 𝑚1 ⊕ 𝑚0 )
Thus, 𝑃 = 𝑚3 ⊕ 𝑚2 ⊕ 𝑚1 ⊕ 𝑚0