Chapter 3 Logic Gates
Chapter 3 Logic Gates
Chapter 3 Logic Gates
KIM Tinal
Digital Design
1
Overview
What is Gate? The BUF Gate The NOT Gate The OR Gate Truth Table The AND Gate The NOR Gate The NAND Gate The XOR Gate The XNOR Gate IEEE/ANSI Symbols for Logic Gates Implementation Technology
Gate
A
Y Y = A
A 0 1
Y 1 0
Boolean Expression
The OR Gate
A Y B
A B
Y=A+B
A 0 0 1 1
B 0 1 0 1
Y 0 1 1 1
Boolean Expression
A B C
Truth Table
Number of input combinations The input combinations or binary words will start at the top of the truth table with binary o and then count up to a maximum value that always one less than the maximum number n mber of combination
n 2 n=2x
n= number of input combinations 2 is included because we are dealing with a base-2 base 2 number system x= number of inputs
Truth Table
n n A B Y 0 1 2 3 0 0 1 1 0 1 0 1 0 1 1 1 n A B C Y 0 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 0 0 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 A 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 B 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 C 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 D 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Y 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
n=22=4 cmax=4-1=3
6 1 1 7 1 1
cmax=8-1=7
n=23=8
A B
Boolean Expression Y=A.B
A 0 0 1 1
B 0 1 0 1
Y 0 0 0 1
A 0 0 1 1
A B
Boolean Expression Y = (A + B)
A 0 0 1 1
B 0 1 0 1
Y 1 0 0 0
A 0 0 1 1
B 0 1 0 1
Y = (A + B) Y = (0 + 0) = 0 = 1 Y = (0 + 1) = 1= 0 Y = (1 + 0) = 1 = 0 Y = (1 + 1) = 1= 0 1
10
A B
Y = (A . B)
Boolean Expression
A 0 0 1 1
B 0 1 0 1 Y Y Y Y = = = =
Y = (A . B) B) (0 (0 ( (1 (1 . . . . 0) 1) 0) ) 1) = = = = 0 0 0 1 = = = = 1 1 1 0
A 0 0 1 1
B 0 1 0 1
Y 1 1 1 0
11
A B
Boolean Expression Y=A B
Y = AB + AB (0.0) (0.1) (1.0) (1 0) (1.1) = = = = (1.0) (1.1) (0.0) (0 0) (0.1) + + + + (0.1) (0.0) (1.1) (1 1) (1.0) = = = = 0 1 0 0 + + + + 0 0 1 0 = = = = 0 1 1 0
12
A B
A 0 0 1 1 B 0 1 0 1 Y Y Y Y = = = = Y = (A (0 (0 (1 (1 0) 1) 0) 1) B) B) = = = = 0 1 1 0 = = = = 1 0 0 1 A 0 0 1 1 B 0 1 0 1 Y 1 0 0 1 Y = (A
Y
Boolean Expression B)
A 0 0 1 1
Y = AB + AB (0.0) (0.1) (1.0) (1.1) = = = = (1.1) (1.0) (0.1) (0.0) + + + + (0.0) (0.1) (1.0) (1.1) = = = = 1 0 0 0 + + + + 0 0 0 1 = = = = 1 0 0 1
13
A A B A B A B A B A B A B
Y Y Y Y Y Y Y
14
Implementation Technology
7400
7402
7404
7408
7432
15
Thank You
16