Logic Gates and Boolean Algebra
Logic Gates and Boolean Algebra
Indicates inversion
LOGIC GATES AND inverter truth table
BOOLEAN ALGEBRA Input Output
Low (0) High (1)
MANTIK DEVRELERİ
High (1) Low (0)
Yard.Doç.Dr. Mutlu BOZTEPE
Indicates inversion
Inverter operation
The AND gate
A B Output
Low (0) Low (0) Low (0)
Low (0) High (1) High (1)
Boolean Equation X = A+B
High (1) Low (0) High (1)
High (1) High (1) High (1)
A B Output
Low (0) Low (0) High (1)
Low (0) High (1) High (1)
High (1) Low (0) High (1) Boolean Equation X = AB
A B Output
Low (0) Low (0) High (1)
Low (0) High (1) Low (0)
High (1) Low (0) Low (0) Boolean Equation X = A+B
A B Output A B Output
Low (0) Low (0) Low (0) Boolean Equation Low (0) Low (0) High (1)
Low (0) High (1) High (1) Boolean Equation
X = AB+BA = A B Low (0) High (1) Low (0)
High (1) Low (0) High (1) X=A B+BA=A B
High (1) Low (0) Low (0)
High (1) High (1) Low (0) High (1) High (1) High (1)
Boolean Algebra
● 1847’de “Mantığın Matematiksel
BOOLEAN ALGEBRA Çözümlemesi” ve 1854’de “Düşünce Yasaları
Üzerine Bir İnceleme” adlı eserleriyle mantığı
matematikle bağdaştırmayı denemiş
mantıksal yargıya varmayı taklit eden gerçek
bir cebir sunmuştur. George Boole
(1815-1864)
● Bu cebirde bir değişken ya doğru ya da
yanlıştır. (True/False)
● Bu cebir günümüzde dijital sistemlerin yani
gelişmiş bilgisayarların ve yazılımlarının
temelini oluşturmaktadır.
Boolean Algebra Laws and Rules Boolean Algebra Laws and Rules
● Toplamanın Değişme Özelliği (Commutative ● Çarpmanın Değişme Özelliği (Commutative
Law of Addition) Law of Multiplication)
A+B = B+A AB = BA
X= X=
Y Y
X= X=
Y Y
X= X=
Y Y
A A
X=1
X
X X=A
A•0=0 A•1 =A
In math if 0 is multiplied with anything you ANDing anything with 1 will yield the anything
get 0. If you AND anything with 0 you get 0
A X=0 A
X=A
X X
ORing with itself will give the same result Either A or A must be 1 so A + A =1
A A
A A=A A
X=1
X X
A•A = A A•A =0
ANDing with itself will give the same result In digital Logic 1 =0 and 0 =1, so AA=0 since
one of the inputs must be 0.
A
A
A A=A
A
X=0
X
X
A
A
B
X
X X=A
A + AB = A + B (A + B)(A + C) = A + BC
If A is 1 the output is 1 If A is 0 the output is B
A B
B C
X
X=Y X
Y
Y
A•B=A+B
This should show That both circuits have the same output
A+B=A•B
De MORGAN
Look at A +B +C + D = A • B • C • D
Example 1
X= AB+(C+D) X = (AB)(CD)
X= AB + C+ D X = ABCD
Example 4
Example 3
X = (AB+B’)BC
using distributive law
X = ABBC +B’BC
X = ABC + B’BC
X = ABC + 0•C
X = ABCD +A’ X = ABC + O
X = A’ + BCD X = ABC
Örnek -1 Örnek -2
(A + B)(CD) = A + B + CD
= A + B + CD
X and Y are
the same
X = A + B C + CD + B
= A + B C CD + B
= A + B C (CD + B)
= A B C (C +D +B)
= A B C C + A B C D +A B B C
=ABCD
The
Now to check our work
circuits are
the same