Unit 1
Unit 1
Digital circuit
Summary of the Class: Digital Digital means electronic technology that generates, stores, and
means electronic technology that processes data in terms of two states: positive and non-positive.
generates, stores, and processes Positive is expressed or represented by the number 1 and non-
data in terms of two states: positive positive by the number 0.
and non-positive. Positive is
expressed or represented by the A “digital system‟ is a data technology that uses discrete
number 1 and non-positive by the (discontinuous) values represented by high and low states known as
number 0. bits. By contrast, non-digital (or analog) systems use a continuous
range of values to represent information. Although digital
representations are discrete, the information represented can be
either discrete, such as numbers, letters or icons, or continuous, such
as sounds, images, and other measurements of continuous systems.
Logic Gate
The basic digital electronic circuit that has one or more inputs and
single output is known as Logic gate. Hence, the Logic gates are the
building blocks of any digital system. We can classify these Logic
gates into the following three categories.
i) Basic gates
ii) Universal gates
iii) Special gates
i) Basic Gates
a) AND gate
An AND gate is a digital circuit that has two or more inputs and
produces an output, which is the logical AND of all those inputs. It
is optional to represent the Logical AND with the symbol ‘.’
The following table shows the truth table of 2-input AND gate.
A B Y = A.B
0 0 0
0 1 0
1 0 0
1 1 1
Here A, B are the inputs and Y is the output of two input AND gate.
If both inputs are ‘1’, then only the output, Y is ‘1’. For remaining
combinations of inputs, the output, Y is ‘0’.
b) OR gate
0 0 0
0 1 1
1 0 1
1 1 1
Here A, B are the inputs and Y is the output of two input OR gate. If
both inputs are ‘0’, then only the output, Y is ‘0’. For remaining
combinations of inputs, the output, Y is ‘1’.
c) NOT gate
A NOT gate is a digital circuit that has single input and single
output. The output of NOT gate is the logical inversion of input.
Hence, the NOT gate is also called as inverter.
A Y = A’
0 1
1 0
Here A and Y are the input and output of NOT gate respectively. If
the input, A is ‘0’, then the output, Y is ‘1’. Similarly, if the input, A
is ‘1’, then the output, Y is ‘0’.
NAND & NOR gates are called as universal gates. Because we can
implement any Boolean function, which is in sum of products form
by using NAND gates alone. Similarly, we can implement any
Boolean function, which is in product of sums form by using NOR
gates alone.
a) NAND gate
NAND gate is a digital circuit that has two or more inputs and
produces an output, which is the inversion of logical AND of all
those inputs.
The following table shows the truth table of 2-input NAND gate
Here, Output=Y
Here A, B are the inputs and Y is the output of two input NAND
gate. When both inputs are ‘1’, the output, Y is ‘0’. If at least one of
the input is zero, then the output, Y is ‘1’. This is just opposite to
that of two input AND gate operation.
b) NOR gate
NOR gate is a digital circuit that has two or more inputs and
produces an output, which is the inversion of logical OR of all
those inputs.
The following table shows the truth table of 2-input NOR gate.
Here, Output=Y
Here A, B are the inputs and Y is the output. If both inputs are ‘0’,
then the output, Y is ‘1’. If at least one of the input is ‘1’, then the
output, Y is ‘0’. This is just opposite to that of two input OR gate
operation.
Ex-OR & Ex-NOR gates are called as special gates. Because, these
two gates are special cases of OR & NOR gates.
a) Ex-OR gate
The following table shows the truth table of 2-input Ex-OR gate.
A B Y = A⊕B
0 0 0
0 1 1
1 0 1
1 1 0
Here A, B are the inputs and Y is the output of two input Ex-OR
gate. The truth table of Ex-OR gate is same as that of OR gate for
first three rows. The only modification is in the fourth row. That
means, the output Y
is zero instead of one, when both the inputs are one, since the inputs
having even number of ones.
Therefore, the output of Ex-OR gate is ‘1’, when only one of the
two inputs is ‘1’. And it is zero, when both inputs are same.
Below figure shows the symbol of Ex-OR gate, which is having two
inputs A, B and one output, Y.
b) Ex-NOR gate
The following table shows the truth table of 2-input Ex-NOR gate.
A B Y = A⊙B
0 0 1
0 1 0
1 0 0
1 1 1
Here A, B are the inputs and Y is the output. The truth table of Ex-
NOR gate is same as that of NOR gate for first three rows. The only
modification is in the fourth row. That means, the output is one
instead of zero, when both the inputs are one.
Therefore, the output of Ex-NOR gate is ‘1’, when both inputs are
same. And it is zero, when both the inputs are different.
From the above truth tables of Ex-OR & Ex-NOR logic gates, we
can easily notice that the Ex-NOR operation is just the logical
inversion of Ex-OR operation.
Boolean Algebra
Variable used can have only two values. Binary 1 for HIGH
and Binary 0 for LOW.
Complement of a variable is represented by an overbar (-).
Thus, complement of variable B is represented as . Thus
if B = 0 then = 1 and B = 1 then = 0.
a) Commutative law
b) Associative law
This law states that the order in which the logic operations are
performed is irrelevant as their effect is the same.
c) Distributive law
d) AND law
These laws use the AND operation. Therefore they are called as
AND laws.
e) OR law