Notes On Logic Gates - Basic Logic Gates
Notes On Logic Gates - Basic Logic Gates
A logic gate is a basic building block of a digital circuit, which is used to implement a Boolean
function. It is an electronic circuit which makes logical decisions based on the combination of digital
signals present on its inputs. It is an electronic circuit having one or more than one inputs and only
one output.
Basic Gates:
Basic gates which implement the basic operation of Boolean Algebra. All Compound gates and any
logic circuit can be implemented using basic gates.
There are three types of basic gates in digital electronics. They are:
1) NOT gate
2) AND gate
3) OR gate
NOT gate:
is used to perform compliment of an input signal applied to it.
takes only one input.
gives a high or logic 1 output if low or logic 0 is applied to the NOT gate and vice-versa.
Note: The switch of NOT gate’s switching circuit is connected with the bulb in parallel
connection. As a result, Bulb will be lighten if switch is OFF but Bulb will not be lighten if
switch is ON.
AND gate:
is used to perform the logical multiplication of inputs applied to it.
can accept two or more than two input values at a time.
gives a high or logic 1 output when all the inputs are high or logic 1. Otherwise, the
output is low or logic 0.
(a) (b)
Figure 4: Logic Symbol of (a) 2-Input AND Gate & (b) 3-Input AND gate
Note: For two-input AND gate, the Boolean expression is given by, F=A.B. Where, A and B are
inputs to the AND gate, while F denotes the output of the AND gate. We can extend this
expression to any number of input variables, such as, for three -input AND gate, the
expression is F=A.B.C.
Truth Table:
(a)
(b)
Table 2: Truth Table of (a) 2-Input AND Gate & (b) 3-Input AND Gate
Switching Circuit:
Note: The switches of AND gate’s switching circuit are connected in series connection. As a
result, if one of the switches is OFF (0) the bulb will not be lighten.
OR gate:
is used to perform the logical sum operation of inputs applied to it.
can accept two or more than two input values at a time.
gives a low or logic 0 output when all the inputs are low or logic 0. Otherwise, the output
is high or logic 1.
(a) (b)
Figure 4: Logic Symbol of (a) 2-Input OR Gate & (b) 3-Input OR gate
Note: For two-input OR gate, the Boolean expression is given by, F=A+B. Where, A and B are
inputs to the OR gate, while F denotes the output of the OR gate. We can extend this
expression to any number of input variables, such as, for three -input OR gate, the expression
is F=A+B+C.
Truth Table:
(a)
(b)
Table 2: Truth Table of (a) 2-Input OR Gate & (b) 3-Input OR Gate
Switching Circuit:
Note: The switches of OR gate’s switching circuit are connected in parallel connection. As a
result, if one of the switches is ON (1) the bulb will be lighten.
Assignment-01
Knowledge Based Questions
1. What is logic gate?
2. What is basic logic gate?
3. What is compound logic gates?
⇒ ‘Comprehension’ refers to the ability to understand the meaning of a topic. It can be the ability to
understand any information, policy, formula, rule, procedure, process etc.
⇒ Perceptual level is the second level of thinking skills. This question is given in ‘b’. Such questions do
not directly ask for textbook-like details. So the student has to explain or describe the content in his
own way.
⇒ Marks of comprehension based question will be 2. Out of which 1 is for knowledge and 1 is for
comprehension.
⇒ In this case, irrelevant words, unnecessary information or redundant accusations cannot be made
in the answer to the question.
Creative Questions
1. Mr. Atiq uses a bed switch to run the fan in his bedroom. He turned off the bed switch as he
was feeling cold. As a result, the fan was shut down. The fan was switched off even though
the fan had a switch on, he thought how it is possible!
a) Explain the reason for the shutdown of fan by drawing the circuit of the stem.
b) What should be changed in circuit of the stem to run the fan even though a switch of the
fan is OFF? Analyze.
2. Two doors must be crossed to enter the room where the important files of a bank are kept.
When you switch one of the two switches on the first door, the door opens but the door is
not opened when two switches turned on or off at once. The door is not opened if there is a
switch off in the second door.
a) Explain the logic gate that indicates the second door of the stem.
a) All inputs are 0 b) Any one inputs is 0 c) All inputs are 1 d) Any one inputs is 1
According to the stem answer the question No 2 and 3:
a) 2 b) 3 c) 4 d) 5
a) 0 b) 10 c) 1 d) 11
i. All inputs are 1 ii. Any one inputs is 1 iii. All inputs are 0
a) All inputs are 0 b) Any one inputs is 0 c) All inputs are 1 d) Any one inputs is 1
i. All inputs are 1 ii. Any one inputs is 0 iii. All inputs are 0
********THE END********
Prepared by___
Mahmuda Rahman
Lecturer, ICT
English Version, Boys Wings,
Mohammadpur Preparatory School and College.