Logic Gates
First of all, the symbols for logic gates.
AND gate
The AND gateis an electronic circuit that gives a high output (1) only if all itsinputs are high. A dot (.) is used to show the AND operation i.e.A.B. Bear in mind that this dot is sometimes omitted i.e. AB
So, thetruth table for this will be:
OR gate
The OR gateis an electronic circuit that gives a high output (1) if one or more ofits inputs are high. A plus (+) is used to show the OR operation.
So, itstruth table will be:
NOT gate
The NOT gateis an electronic circuit that produces an inverted version of the input at itsoutput. It is also known as an inverter. If the inputvariable is A, the inverted output is known as NOT A. This is also shownas A', or A with a bar over the top, as shown at the outputs.
So, thetruth table for NOT gate will be:
NAND gate
This is aNOT-AND gate which is equal to an AND gate followed by a NOT gate. Theoutputs of all NAND gates are high if any of the inputs are low. Thesymbol is an AND gate with a small circle on the output. The small circlerepresents inversion.
So its truthtable will be:
NOR gate
This is aNOT-OR gate which is equal to an OR gate followed by a NOT gate. The outputs ofall NOR gates are low if any of the inputs are high. The symbol is anOR gate with a small circle on the output. The small circle representsinversion.
Its truthtable will be: