Professional Documents
Culture Documents
A B X
0 0 1
0 1 1
1 0 1
1 1 0
Non Basic Gates
NOR Gate : ( OR gate with Output inverted)
Logical Expression: X = (A + B)’
A B X
0 0 1
0 1 0
1 0 0
1 1 0
Non Basic Gates
XOR ( If Inputs are alike the output is 0, If Inputs
are Unlike the output is 1 )
Logical expression :
A B X
0 0 0
0 1 1
1 0 1
1 1 0
Universal gates
Universal gate is the gate which can
implement any of the Boolean function
without need for any other type of gate.
Half adder :
Logical Circuit
that perform
addition
operation on two
bits and produces
a sum (S) and
carry (C) .
Half adder
Logical Expression :
S = A xor B A (+) B
C = A and B AB
A B C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Full adder
Full adder:
Logical Circuit that
perform addition
operation on three
bits ( A , B and carry
Ci) and produces a
sum (S) and carry
(Co)
Full Adder
Logical expression : A B Ci Co S
S = A xor B xor Ci
Co = (A.B) + (Ci .(A xor 0 0 0 0 0
B)) 0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
Adder as Subtractor
Suppose A- B = A + (-B) where (-B) is 2’s
complement of B.
J K Q(t+1)
0 0 Q( no
change)
0 1 0(
reset)
1 0 1(set)
1 1 Q’
(toggle)
T Flip Flop
• The T flip-flop is a
single input
version of the JK
flip-flop
T Flip Flop
Q T Q(t
+1)
0 0 0
0 1 1
1 0 1
1 1 0
Boolean algebra
1.Commutative Law
A.B=B.A
A+B=B+A
2. Associate Law
(A . B) . C = A . (B . C)
(A + B) + C = A + (B + C)
3. Distributive Law
(A + B) . C = (A . C) + (B . C)
(A . B) + C = (A + C) . (B + C)
4. Identities
A+0=A
A.1=A
5.
A+1=1
A.0=0
Boolean algebra
6.
– A+A=A
– A.A=A
7.
– A + (/A) = 1
– A . (/A) = 0
8. Inverse
– /(/A) = A
9. De Morgan’s Theorem
– /(A+ B) = (/A) . (/B)
– /(A . B) = (/A) + (/B)
• Usually /(‘) is evaluated first, then *, then +, with this order being
changed by using parentheses