Logic Gates PDF
Logic Gates PDF
A Logic Gate is a digital circuit with one or more inputs but only one
output. Logic Gates are the basic building block from which most of the
digital systems are build up. The numbers ‘0’ and ‘1’ represents the two
possible states of a logic circuit. The two states can also be referred as ON
and OFF or HIGH and LOW or TRUE and FALSE.
The basic Logic Gates are OR, AND and NOT gates. All the input
combinations and their corresponding outputs are listed in a table is called
‘Truth Table’.
OR GATE
An OR gate has two or more inputs and one output. If anyone of the
inputs is ‘1’ (or HIGH), the output is ‘1’ (or HIGH). It can be also stated that
if all the inputs are ‘0’ (or LOW), the output is ‘0’ (or LOW). The above
statement holds good for any number of inputs. The general logical
expression (called Boolean equation) for an OR gate is given by
A + B + C + D … + N = Y (It should be read as A OR B OR C OR …)
Its Symbol (2-input) and Truth Table are given below:
A B C Y = A+B+C
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
A B C Y = A.B.C
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
NOT GATE
A NOT gate has only one input and one output. It is also called as
Inverter. If the input is ‘0’ (or LOW), the output is ‘1’ (or HIGH) and if the
input is ‘1’ (or HIGH), the output is ‘0’ (or LOW). It can be also stated that,
the output of a NOT gate is the Complement of the input.The logical
expression (called Boolean equation) for a NOT gate is given by
̅=Y
𝑨
Its Symbol and Truth Table are given below.
NAND GATE
A NAND gate is constructed by connecting a NOT gate to the output of
an AND gate. This is the compliment of the AND gate. A NAND gate has two
or more inputs and one output. If anyone of the inputs is ‘1’ (or HIGH), the
output is ‘0’ (or LOW). It can be also stated that if all the inputs are ‘0’ (or
LOW), the output is ‘1’ (or HIGH). The above statement holds good for any
number of inputs. The general logical expression (called Boolean equation)
for an NAND gate is given by
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑨. 𝑩. 𝑪 … . 𝑵 = Y or ̅̅̅̅̅̅̅̅̅̅̅̅
𝑨𝑩𝑪 … 𝑵 = Y
A B C Y = ̅̅̅̅̅̅
𝑨𝑩𝑪
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
NOR GATE
A NOR gate is constructed by connecting a NOT gate to the output of
an OR gate. This is the complement of the OR gate. A NOR gate has two or
more inputs and one output. If anyone of the inputs is ‘0’ (or LOW), the
output is ‘1’ (or HIGH). It can be also stated that if all the inputs are ‘1’ (or
HIGH), the output is ‘0’ (or LOW). The above statement holds good for any
number of inputs. The general logical expression (called Boolean equation)
for a NOR gate is given by
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑨 + 𝑩 + 𝑪…+ 𝑵 = Y
A B C Y = ̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑨+𝑩+𝑪
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
An XOR gate has two or more inputs and one output. The output of
an XOR gate is ‘1’ (or HIGH), when there are odd number of ‘1’ (or HIGH)
inputs. The above statement holds good for any number of inputs. The
general logical expression (called Boolean equation) for an XOR gate is given
by
A B C… N = Y. For a two input XOR gate, A B=Y
A B C Y=A B C
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1