Now we're ready to demonstrate the operation of the AND, OR, and NOT gates. Click on one of the following three buttons to start.
For AND and OR gates, there are four possible input combinations, (0,0) , (0,1), (1,0) and (1,1). For NOT gates there are only two possiblilities (0) and (1). Click on the following buttons to test the gate with various combinations. The value of each wire will appear in the diagram when you click on a button.
As you can see from the tests you have run, the output of an AND gate is zero whenever one of its inputs is zero, and the output of an OR Gate is one whenever one of its inputs is equal to one. This rule is true no matter how many inputs an AND or an OR gate has. Now, run through the tests one more time, modify the diagram a bit, and then click here to go to the next lesson.