xxxxxxxxxx
An and gate is a simple gate which sends an output of 1 when all of the inputs
are 1. It has two or more inputs and only one output.
Inputs and Outputs:
A | B | C
1 | 0 | 0
0 | 1 | 0
1 | 1 | 1
A(Input 1)
B(Input 2)
C(Output)
xxxxxxxxxx
You can see this gate as multiplication, as we can see:
1 x 1 = 1
1 x 0 = 0
0 x 0 = 0
xxxxxxxxxx
AND GATE:
|A|B|Y|
|0|0|0|
|0|1|0|
|1|0|0|
|1|1|1|
// A: first Input
// B: Second Input
// Y: Output
xxxxxxxxxx
An or game is a simple gate which sends an output of 1 if either of its inputs
are 1. It has two or more inputs and only one output.
Inputs and Outputs:
A | B | C
0 | 0 | 0
1 | 0 | 1
0 | 1 | 1
1 | 1 | 1
A(Input 1)
B(Input 2)
C(Output)