Later we will build devices with more inputs and outputs so it can do more complex things for us. If the input to our device is 0 volts then the output will be 5 volts. If the input is 5 volts then the output will be 0 volts. This will be our first logic gate, the not gate. It is also called an inverter.
Logic gates are devices that are built to do truth tables.
Computer chips like the Pentium are made of logic gates. AND Now lets look at a device with two inputs and one output. First, we will look at a device that does an AND operation. This operation is shown in the truth table given below. The table gives a list of all possible combinations of inputs and the resulting output for each combination.