Académique Documents
Professionnel Documents
Culture Documents
Logic Gates
The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols:
1 input output input 1 output
11 !"#$%! 2555
1 2
The AND gate is composed of two or more inputs and a single output.
A A X B & X
HIGH (1)
1 0
!
HIGH (1)
LOW (0)
Output X is HIGH only when inputs A and B are HIGH X is LOW when either A or B is LOW, or when both A and B are LOW.
4
X=A
"
A B
OUTPUT B 0 1 0 1 X 0 0 0 1
Use either:
" "
X = A ! B ,or X = AB
A B
The total number of possible combinations of binary inputs to a gate is determined by:
! ! N= 2n
X= ABC
Therefore:
" " "
A B C D
X= ABCD
The OR Gate
!
Like AND gate, an OR gate has two or more inputs and one output.
A B X B A "1 X
INPUTS A 0 B 0 1 0 1
OUTPUT X 0 1 1 1
0 1 1
output X is HIGH when either input A or input B is HIGH, or when both A and B are HIGH. X is LOW only when both A and B are LOW.
7
"
NAND = NOT-AND
X A B
A
X
&
A B C
X= A+B+C
Output X is LOW only when inputs A and B are HIGH X is HIGH when either A or B is LOW, or when both A and B are LOW
A B C D
X= A+B+C+D
"
10
INPUTS A 0 0 1 1
!
OUTPUT B 0 1 0 1 X 1 1 1 0
Output X is HIGH when either input A or input B is LOW or when both A and B are LOW
NAND
Negative-OR
! !
12
NOR = NOT-OR
A B X A B
A
X
INPUTS
"1 X
OUTPUT B 0 1 0 1 X 1 0 0 0
A 0 0 1 1
Output X is LOW when either input A or input B is HIGH, or when both A and B are HIGH X is HIGH only when both A and B are LOW
"
The Boolean expression for the output of a 2-input NOR gate is ! ! ! X = A+B
14
! !
13
NOR
Negative-AND
15
16
INPUTS A B 0 1 0 1 0 0 1 1
!
OUTPUT X 0 1 1 0
Output X is HIGH when input A is LOW and input B is HIGH, or when input A is HIGH and input B is LOW X is LOW when A and B are both HIGH and both LOW
"
The Boolean expression for the output of a 2-input XOR gate is ! ! ! X = A+B
18
! !
17
INPUTS A B 0 1 0 1 0 0 1 1
!
OUTPUT X 1 0 0 1
Output X is LOW when input A is LOW and input B is HIGH, or when input A is HIGH and input B is LOW X is HIGH when A and B are both HIGH and both LOW
"
The Boolean expression for the output of a 2-input XNOR gate is ! ! ! X = A+B
20
! !
19