Digital Logic Design
Digital Logic Design
Lecture 2
Logic Gates
Y X
X Y
0 1
1 0
Y X1 X2
X1 X2 Y
0 0 0
Output is logical 0 only
0 1 1
when all inputs are logical 0
1 0 1
1 1 1
Y X1. X2
X1 X2 Y
0 0 0
Output is logical 1 only
0 1 0
when all inputs are logical 1
1 0 0
1 1 1
Y 1 2
X1 X2 Y
0 0 1
Output is logical 1 only
0 1 0
when all inputs are logical 0
1 0 0
1 1 0
Y 1. 2
X1 X2 Y
0 0 1
Output is logical 0 only
0 1 1
when all inputs are logical 1
1 0 1
1 1 0
Y X1 2
X1 X2 Y
0 0 0 Output is logical 1 only
0 1 1 when the two inputs are at
1 0 1 opposite logic level
1 1 0
The opening and closing of the valve is controlled by the two sensors. The
valve is always open except when the tank is full(both sensors sense water).
What logic function (gate) should we use to realize this functionality?
ftp://10.5.42.42