Week 11 & 12_Logic_gates
Week 11 & 12_Logic_gates
❖ Logic gates
▪ Some of the most basic logic gates are AND, OR, NOT.
AND Gate
▪ Complemented OR gate
▪ Generates an output signal of:
A
A
NOT
D= A⋅(B +
B B+C AND
C)
C OR
Finding Boolean Expression of a Logic Circuit(Example 2)
OR
A A+
B
B
C=(A +B )⋅(A⋅B)
A A⋅B AND
⋅B
AND NOT
Constructing a Logic Circuit from a Boolean Expression
(Example 1)
Universal NAND Gate
A⋅A=A+A= A
A
(a) NOT gate implementation.
A ⋅B
A A ⋅B= A
⋅B
and OR Gates by
A⋅A
A =A A ⋅B = A + B = A +
B ⋅B B
B
=B
(c) OR gate implementation.
Method of Implementing a Boolean Expression with
Only NAND Gates
Boolean Expression =
A ⋅ B + C ⋅( A + B
A A⋅B ⋅D )
A ⋅ B + C ⋅( A + B
B
B B⋅D ⋅D )
A +B⋅D
D
A C⋅(A +B⋅D)
C
(a) Step 1: AND/OR implementation
(Continued on next slide)
Implementing a Boolean Expression with Only NAND Gates
(Example) (Continued from previous slide..)
AND
OR
A A⋅B
1
5
B
AND OR
B B⋅D
2 A+B ⋅D
3
A ⋅B + C⋅(A+B⋅D)
D
A
AND
4
C
C⋅(A+B⋅D)
(b) Step 2: Substituting equivalent NAND functions
(Continued on next slide)
Implementing a Boolean Expression with Only NAND Gates
(Example) (Continued from previous slide..)
(
1
B 5 A ⋅B + C⋅(A
2
+B⋅D)
B D
3
A
4
C
A+A=A⋅A=
A
A
A A + A + B=A
B +B
B
(b) OR gate implementation.
A A + A =A
A + B = A ⋅B = A
⋅B
B
B + B =B
(c) AND gate implementation.
Method of Implementing a Boolean Expression
with Only NOR Gates
(
diagram with AND, OR, and NOT gates.
A
Assume normal (A) and complement
both thethat inputs are
)
available
A ⋅B + C⋅( A +B⋅D)
Boolean Expression
=
A A⋅B
B
A ⋅B + C⋅(A
B B⋅D
A +B⋅D +B⋅D)
D
A C⋅(A +B⋅D)
C (a) Step 1: AND/OR implementation.
A ⋅ B +(C⋅ A )
B OR
5 6
AND
+B⋅D
B B⋅D
2
D OR
AN
3 D
A
4
C C⋅ ( A +B⋅D)
A +B⋅D
(b) Step Substituting equivalent NOR functions.
2:
(Continued on next slide)
Implementing a Boolean Expression with Only NOR Gates
(Examples)(Continued from previous slide..)
A 1
B 5 6 A ⋅B + C⋅(A +B⋅D)
B 2
D 3
A 4
Also, (A ⊕B)⊕ C = A ⊕ (B ⊕ C) = A ⊕B
⊕C (Continued on next slide)
Exclusive-OR Function (Truth Table)
(Continued from previous slide..)
Inputs Output
A B C = A ⊕B
0 0 0
0 1 1
1 0 1
1 1 0
Steps in Designing Combinational Circuits