Professional Documents
Culture Documents
Lecture 2-3
Introduction to basic logic operations and basic digital circuits:
Logic circuit/Digital circuit/switching circuit: A circuit whose input and output Page | 1
signals are two state, either low or high voltages.
The basic logic circuits are OR, AND and NOT gates.
Gate: A logic circuit with one or more input signals but only one output signal
(Logic 1 or Logic 0).
Truth table: A table that shows all inputs and output possibilities for a logic circuit.
The input words are listed in binary progression.
Word: A string of bits that represent a coded instruction or data.
For n inputs, there are 2n input combinations. Truth table contains one row for
each one of the input combinations.
1. The AND operation:
The AND operation is defined as: the output of an AND gate is 1 if and only
if all the inputs are 1.
Mathematically, it is written as: X=A AND B AND C….AND N
= A.B.C…………..N
= ABC……………N
Where A,B,C,….,N are input variables and X is the output variable. The
variables are binary, i.e each variable can assume only one of the two possible
values: 0 or 1.
Truth table: For an AND gate with two inputs A,B and the output X, the
truth table is given below:
Inputs Output
A B X
0 0 0 Page | 2
0 1 0
1 0 0
1 1 1
2. The OR operation:
The OR operation is defined as: the output of an OR gate is 1 if and only if
one or more inputs are 1. Its logical equation is given by:
X= A OR B OR C………… OR N
= A+B+C+………………+N
Truth table:
Input (A) Output (X= Aʹ)
0 1
1 0
The NOT-AND operation is known as the NAND operation. The operation of Page | 4
this circuit can be described in the following way:
Page | 5
The NOT-OR operation is known as the NOR operation. The operation of this
circuit can be described in the following way:
Page | 6
Truth table:
Inputs Output
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
A B = AB AB =