Booleanlogic (Newsyllabus)
Booleanlogic (Newsyllabus)
Booleanlogic (Newsyllabus)
Input Output
A X
0 1
1 0
Input Output
A B X
0 0 0
0 1 0
1 0 0
1 1 1
Input Output
A B X
0 0 0
0 1 1
1 0 1
1 1 1
Input Output
A B X
0 0 1
0 1 1
1 0 1
1 1 0
Input Output
A B X
0 0 1
0 1 0
1 0 0
1 1 0
Page 1 of 4
Input Output
A B X
0 0 0
0 1 1
1 0 1
1 1 0
Input Output
A B X
0 0 1
0 1 0
1 0 0
1 1 1
Basic logic gates: NOT gate, AND gate and OR gates are known as basic logic gates. All the other gates
have been derived from the basic three gates.
Derived logic gates: NAND, NOR, XOR, XNOR gates are known as derived logic gates as each of these
gates are derived from combining one or more basic gates.
Universal gates: NAND and NOR gates are known as universal gates as just by using each of these gates
any other gates can be made.
Order of operation for the 3 basic gates: Logic gates follow the precedence (order of operations) as
given below for the basic gates:
1. NOT gate
2. AND gate
3. OR gate
However, if parentheses (brackets) are given then the parentheses part will be performed first.
Binary 1 (one) can also be mentioned/represented/denoted by TRUE, ON or HIGH and binary 0 (zero) as
FALSE, OFF or LOW. They all mean same.
Page 2 of 4
Functions of the logic gates:
AND gate using NAND gate: You can create an AND gate by using two NAND gates. The first NAND
gate does what NAND gates do: returns LOW if both inputs are HIGH and returns HIGH if both inputs
are anything else. Then the second NAND gate is configured as a NOT gate to invert the output from the
first NAND gate.
One of the basic rules of NOT gates is that if you invert a signal twice, you end up with the same signal. If
the original input is HIGH, and you invert it, the signal becomes LOW. Invert the input again, and it
returns to HIGH. With this rule in mind, you should be able to see how the two NAND gates work
together to create an AND gate.
OR gate using NAND gate: You need three NAND gates to create an OR gate. First, you use a pair of
NAND gates configured as NOT gates to invert the two inputs. Then the third NAND gate produces a
LOW output if both of the original inputs are LOW. If one of the original inputs is HIGH, or if both of the
original inputs are HIGH, the output of the third gate is HIGH.
Similarly you can create NOT, OR and AND gates using NOR gates only. Remember for building OR
gate using NOR gate you will need two NOR gates only and for building AND gate using NOR gate you
will need three NOR gates.
Page 4 of 4