Logic-Gates Spring - 2024
Logic-Gates Spring - 2024
F ( A,B) = A . B A B F
F ( A,B) =A AND B 0 0 0
0 1 0
1 0 0
1 1 1
OR Logic Gate
F ( A,B) = A + B A B F
0 0 0
F ( A,B) =A OR B 0 1 1
1 0 1
1 1 1
F ( A) = 𝐴̅ A F
0 1
F ( A) = NOT A 1 0
volt
A
5
1 0
0 1
time
T1 T2 T3
volt
F
5
S/A Lamp /F
1
1 0 Off On
time On Off
T1 T2
F
B
Boolean Expression
Truth table
F ( A,B) = 𝐴 + 𝐵 A B F
F ( A,B) =A NOR B 0 0 1
0 1 0
1 0 0
1 1 0
NAND gate
F ( A,B) = 𝐴 . 𝐵 A B F
F ( A,B) =A NAND B 0 0 1
0 1 1
1 0 1
1 1 0
NOR and NAND gates have the property that they individually can be used to
hardware-implement a logic circuit corresponding to any given Boolean
expression . That is, it is possible to use either only NAND gates or only NOR
gates to implement any Boolean expression. This is so because a combination of
NAND gates or a combination of NOR gates can be used to perform functions of
any of the basic logic gates. It is for this reason that NAND and NOR gates are
universal gates.
XOR Properties :
A ⊕ A = 0 , A⊕ A =1 , A ⊕ 0 = A , A ⊕1 = A
A ⊕A ⊕.........n = A if n is odd A ⊕A ⊕.........n = A if n is even .
if A ⊕ B =C then , A⊕ C =B , B ⊕ C =A and A ⊕B⊕C =0
Boolean Expression
A B F
F(A,B) = 𝐴̅ 𝐵 + AB 0 0 1
F (A,B) = A EX-NOR B 0 1 0
F (A,B) = A XNOR B 1 0 0
1 1 1
F (A ,B) = A ⊕ B
1. Can be implemented three inputs XNOR gate using two input XNOR?
2. Can be implemented four inputs XNOR gate using two input XNOR?
a. 0 .0 =0 e. 0 .1=1 .0=0
b. 1 +1= 1 f. 1 +0=0 +1= 1
c. 1 .1 =1 g. if x=0 then 𝑥̅ =1
d. 0 + 0=0 h. if x=1 then 𝑥̅ =0
From the axioms are derived some rules for dealing with
single variable
a. X .0 =0
b. X +1 =1
c. X .1 =x Substitute the values
d. X +0 =X X=0 and X =1 into the
e. X .X =X Expression and verify
f. X +X=X Using the basic axioms
g. X.𝑋=0
h. X + 𝑋 =1
i. 𝑋 =X
a. x . y = y .x Commutative
b. x+ y = y +x
c. x .( y .z ) = (x .y) .z Associative
d. x+(y +z) = (x + y) +z
g. x + x y = x
Absorption
h. x (x + y) = x
i. x y + x𝑦 = x Combining
j. ( x + y ) ( x + 𝑦 ) = x
k. (𝑥. 𝑦) = 𝑥̅ + 𝑦
DeMorgan
l. (𝑥 + 𝑦) = 𝑥̅ . 𝑦 Theorem
m. x + 𝑥̅ y = x + y
n. x (𝑥̅ + y ) =x y