Unit-2 (Number System)
Unit-2 (Number System)
Add result of step 1 with ‘X’ Add result of step 1 with ‘X’
If there is extra bit, remove that extra bit and add on its remaining bit. If there is extra bit, remove that extra bit.
0 0 0
0 1 0
1 0 0
1 1 1
b. OR Operator: OR operator is represented by “+” So, A OR B is represented by (A+B) . The result of the OR operation is exactly
same as simple arithmetic addition. That means result will be low (0) if and only both the inputs are low. Note: A OR B can also
represented bu AvB or AuB. Truth table of AND operation is given below
A B Y = A+B
0 0 0
0 1 1
1 0 1
1 1 1
c. NOT Operator: NOT operator is represented by “-” or “ ’ ” So, NOT operation of an operands A is represented as A’ . NOT
operation performs negation. That means it will give high output (1) for low input (0) and vice-versa. Truth table of NOT operation
is given below
A A'
0 1
1 0
Logic Gate
A logic Gate is an electronic circuit that operates on one or more inputs to produce an output. Logic Gate are used for binary
operations which are very fundamental components for modern digital computer. Logic gates are embedded unit an Integrated
Circuit (IC). Each gate has its specific function and graphical symbol. In digital computer there are three basic logic gates. Click
here for gate symbol and Venn diagram.
a. AND gate: AND Gate is an electronic Circuit which produce high output (1) only when both the inputs are high. The output is
same as the result of basic arithmetic multiplication. This gate may have more than two inputs and produce a single output.
Graphically AND gate is represented as
AND gate is denoted by “ . ” So, output is expressed algebraically as, Y = A
Truth table for AND gate is
A B Y = A.B
0 0 0
0 1 0
1 0 0
1 1 1
b. OR Gate: OR Gate is an electronic circuit which produce low output (0), when all the inputs are low (0) and produce high (1)
output for every possible combination of 0 and 1. The output is same as basic binary addition. The gate may have two or more than
two inputs and produce single result.
Graphically OR gate is represented as
Algebraically output of OR Gate is represented as: Y = A+B
Truth table of OR Gate is
A B Y = A+B
0 0 0
0 1 1
1 0 1
1 1 1
c. NOT Gate: NOT Gate is another fundamental gate whose result is complement of its input. It is also called inverter. It produces
low-0 logic for high-1 input and vice-versa. This Gate has single input and single output. Graphically NOT gate is represented as:
Algebraically output of NOT Gate is represented as: Y = A’ for input A
Truth table of NOT gate is:
A A'
0 1
1 0
d. NAND Gate: NAND gate is a derived gate, derived from NOT and AND gate. This gate reciprocal the output obtain from the
AND gate. That means it will produce low-0 output when both the inputs are high-1 and produce high-1 output when any one of the
input is low-0. These gate also may have two or more than two and a single output.
Graphically NAND gate is represented as:
Algebraically output of NAND Gate is represented as: Y = (A.B)’
Truth table of NAND Gate is:
A B A.B y=(A.B)'
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
e. NOR gate: NOR gate is a derived gate derived from the combination of OR gate and NOT gate. This gate reciprocal the output
obtain from the OR gate. That means NOR gate will produce high-1 logic when both the inputs are low-0 and produce low output-
0 in all possible combination of 0 and 1. These gate also may have two or more than two input at a single output.
Graphically NOR gate is represented as
Algebraically output of NOR gate is represented as: Y: (A+B)’
Truth Table of NOR gate is
A B A+B Y = (A+B)'
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
f. Exclusive OR (X-OR): It is the type of digital electronic circuit will generates low-0 output when both the inputs are either low-
0 or high-1. It will give high-1 output only when one of the given input is high. These gate also may have two or more the two input.
Graphically X-OR gate is represented as
Algebraically output of X-OR gate is represented as: Y: A’.B + A.B’
Truth Table of X-OR gate is
A B A' B' A'.B A.B' A'.B+A.B'
0 0 1 1 0 0 0
0 1 1 0 1 0 1
1 0 0 1 0 1 1
1 1 0 0 0 0 0
g. Exclusive NOR (X-NOR): It is the type of digital electronic circuit will generates high-1 output when both the inputs are either
low-0 or high-1. It will give low-0 output only when one of the given input is high-1. These gate also may have two or more the two
input.
Graphically X-NOR gate is represented as
Algebraically output of X-NOR gate is represented as: Y: A.B + A’.B’
Truth Table of X-NOR gate is
A B A' B' A.B A'.B' A.B+A'.B'
0 0 1 1 0 1 1
0 1 1 0 0 0 0
1 0 0 1 0 0 0
1 1 0 0 1 0 1
De-Morgan's Theorem
First Theorem: The De-Morgan's first theorem states that, “The complement of a sum equals to the product of its complement.”
It is represented as: (A+B)' = A'.B''
Graphical symbol
Proof:
A B (A+B) (A+B)' A' B' A'.B'
0 0 0 1 1 1 1
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 0
Second Theorem: The De-Morgan's second theorem states that, “The complement of a product equals to the sum of its complement.”
It is represented as: (A.B)' = A'+B''
Graphical symbol
Proof:
A B (A.B) (A.B)' A' B' A'+B'
0 0 0 1 1 1 1
0 1 0 1 1 0 1
1 0 0 1 0 1 1
1 1 1 0 0 0 0