The working of a computer depends on the electrical flow where 0 represents a low voltage current and 1 represents a high voltage current. The purpose of designing of electronic circuits is to control these negative and positive pulses into a meaningful logic. Electronic or logic gates are the building block of a digital circuit. There are three basic electronic gates by which a digital system can be constructed. These gates are:
The OR gate is an electronic gate that gives a high output when one or more inputs are high. The symbol used to represent an OR operation is "+."
The AND gate is an electronic gate the gives a high output when all of the inputs are high. The symbol used to represent an AND operation is "."
The NOT gate is an electronic gate that inverts the given input. It is also known as 'Inverter'. For example, if the input to a NOT gate is B then the output is known as "NOT B."
There are other gates that can be built using the basic electronic gates. These gates are explained below:
NAND gate is the combination of AND gate and NOT gate. The input is received from the AND gate and after the output is produced, it inverts the output by using it as an input in NOT gate.
NOR gate is the combination of OR gate and NOT gate. The input is received from the OR gate then the output is inverted by the not gate and the final output is the output of NOR gate.
XOR gate is also known as "Exclusive OR" gate. XOR gates are unique in the sense that they produce a high output when they receive both high and low inputs. If the inputs are all low or high then the output is low.