Gates

These diagrams describe the behavior of not, and, or, and xor gates on all possible inputs. The inputs to the gates are on the top, and the output is on the bottom. Notice that all the gates take two inputs except not, which takes only one.