Binary Logic and Logic Gates
Binary Logic and Logic Gates
A’ – Complement of A
A+B – A OR B
A.B – A AND B
AꚚB – A XOR B
A#B – Arbitrary logic operator (A.B)’
Binary logic operations
a + a’ = 1 a+b=b+a a . (b + c) = a. b + a . c
a . a’ = 0 a.b=b.a
a+1=1
a.0=0
a.1=a
Associative laws De Morgan’s laws
a+0=a
a + (b . c) = (a + b) . (a + c) (a + b)’ = a’ . b’
(a . b)’ = a’ + b’
Symbols of logic gates
Addition of two bits Truth tables
1+1=2 1 + 1 = 10 20 × 0 + 21 × 1 = 2 1 1 1 0
1+0=1 1 + 0 = 01 20 × 1 + 21 × 0 = 1 1 0 0 1
0+1=1 0 + 1 = 01 20 × 1 + 21 × 0 = 1 0 1 0 1
0+0=0 0 + 0 = 00 20 × 0 + 21 × 0 = 0 0 0 0 0
Sum Carry
Truth tables
A B A.B AꚚB
1 1 1 0
1 0 0 1
0 1 0 1
0 0 0 0
An half adder can add two bits
Addition of three bits Truth tables
Sum Carry A B C Sum Carry
Decimal Binary
1 1 1 1 1
1 + 1 + 1 = 3 = 11 0
2 ×1+2 ×1=3 1
1 1 0 0 1
1 + 1 + 0 = 2 = 10 20 × 0 + 21 × 1 = 2
1 + 0 + 1 = 2 = 10 20 × 0 + 21 × 1 = 2 1 0 1 0 1
1 + 0 + 0 = 1 = 01 20 × 1 + 21 × 0 = 1 1 0 0 1 0
0 + 1 + 1 = 2 = 10 20 × 0 + 21 × 1 = 2 0 1 1 0 1
0 + 1 + 0 = 1 = 01 20 × 1 + 21 × 0 = 1 0 1 0 1 0
0 + 0 + 1 = 1 = 01 20 × 1 + 21 × 0 = 1
0 0 1 1 0
0 + 0 + 0 = 0 = 00 20 × 0 + 21 × 0 = 0
0 0 0 0 0
Addition of three bits(contd.)
Simplification of carry
Simplification of sum
Now
(B.C’ + B’.C) = B Ꚛ C And
Make circuit which would send one output signal S = 1 when coolant is supposed to be applied, otherwise
0
Solution to the Numerical Problem
Truth tables
A B C Output
Output (S) = A.B.C + A.B.C’+ A.B’.C
1 1 1 1
1 1 0 1 = A.B.C + + A.B’.C + A.B.C’ + A.B.C
1 0 1 1
= A.C. (B+B’) + A.B. (C+C’)
1 0 0 0
0 1 1 0 = A.C + A.B
0 1 0 0
= A. (B + C)
0 0 1 0
0 0 0 0