Logic Gates
Last updated
Last updated
Electronic devices can only recognise the presence or absence of a current. Computers contain billions of switches that can either be OFF or ON (0 or 1). These switches can be combined in different ways to create simple circuits called logic gates.
Electronic Logic Gates take one of more inputs in order to produce a single output. The output can become an input to another gate, and so on, in order to create a complex circuit. There are a number of logic gates designed to product various outputs based on their inputs.
If the input is 0, it outputs 1.
If the input is 1, it outputs 0.
0
1
1
0
If both inputs are 1 then the output is 1
Else, the output is 0
0
0
0
0
1
0
1
0
0
1
1
1
If either input is 1, the output is 1
Else, the output is 0
0
0
0
0
1
1
1
0
1
1
1
1
If one, but not both, of the inputs is 1, the output is 1
Else, the output is 0
0
0
0
0
1
1
1
0
1
1
1
0
This is a join-up of AND and NOT gate
It inverts the output of the AND gate
0
0
1
0
1
1
1
0
1
1
1
0
It Inverts the output of OR gate
The output is 1 only if both inputs are 0
0
0
1
0
1
0
1
0
0
1
1
0
The NAND gate is useful as it combines the functions of two gates in a single gate. NAND gate is knows as the universal gate as different combinations of NAND gate can act like AND, NOT and OR gates. In fact, any circuit can be built using just NAND gates.
Using just NAND gates to build a circuit can minimise the production costs. Also, using as few gates as possible can speed up the processing.