LOGIC GATES CLASS 12 Project
LOGIC GATES CLASS 12 Project
XII-A
BIOLOGY
1|P age
BONAFIDE CERTIFICATE
DATE:
2
ACKNOWLEDGEMENT
I am also thankful to all our teachers and non-teaching staff for their help
during my course of study.
3
INDEX
4
INTRODUCTION
5
PRINCIPLE
Any Boolean algebraic operation can be linked to input and output,
embodying the principles of Boolean algebra.
We have three main Logic gates from which other Logic Gates can be
made. They are:
AND Gate
NOT Gate
OR Gate
LOGICAL STATEMENTS:
YES NO
TRUE FALSE
1 0
CLOSE OPEN
CONDUCTING NON-CONDUCTING
HIGH LOW
RIGHT WRONG
POSITIVE NEGATIVE
6
BASIC GATES
OR GATE: It is a device that combines A and B to give Y as the
result. The OR gate has two or more inputs and one output. In
Boolean algebra, addition symbol (+), is referred as the OR.
The Boolean expression: A+B=Y
This indicates that Y equals to A or B.
7
NOT GATE: It is a device that inverts the inputs. The NOT has
one input and has one output. In Boolean algebra, the bar symbol is
referred to as the NOT.
The Boolean expression: Y = A-
This indicates that Y is not equal to A. Here, the overline (A‾)
represents the complement or negation of A. In other words, if A is
true (1), then A ‾ is false (0), and vice versa. The NOT gate simply
inverts the input signal.
8
THE AND GATE
CONCLUSIONS DRAWN:
1. If switches A and B remain open (A=0, B=0), the bulb does not
illuminate, resulting in Y=0
2. If switches A and B remain open (A=0, B=0), the bulb does not
illuminate, resulting in Y=0
3. If switch A is open and B is closed (A=0, B=1), the bulb does
not shine, resulting in Y=0
9
4. However, when both switches A and B are closed (A=1, B=1),
the bulb illuminates, resulting in Y=1.
TRUTH TABLE:
10
THE OR GATE
AIM: To design and simulate the OR gate circuit
APPARATUS: Two ideal P-N junction diode
THEORY AND CONSTRUCTION:
An electronic circuit implementing an OR gate can be constructed
using two diodes, D1 and D2. In this setup, the negative terminal of
the battery is connected to the ground, representing the 0 level, while
the positive terminal corresponds to level 1. The output Y is the
voltage at point C about the ground.
CONCLUSIONS DRAWN:
(i) When switches A and B are in the open position (A=0,
B=0), the bulb remains unlit, resulting in Y=0.
(ii) (ii) If switch A is closed while B is open (A=1, B=0), the
bulb illuminates, leading to Y=1.
(iii) In the scenario where switch A is open and B is closed
11
(A=0, B=1), the bulbs emit light, resulting in Y=1.
(iv) If both switches A and B are closed (A=1, B=1), the bulb
lights up, and the output is Y=1
TRUTH TABLE:
INPUT A INPUT B OUTPUT
0 0 0
0 1 1
1 0 1
1 1 1
In an OR gate, the output is 1 (high) if at least one of the inputs is 1.
The only case where the output is 0 (low) is when both inputs are 0.
12
THE NOT GATE
AIM: To design and simulate the NOT gate.
APPARATUS: An Ideal n-p-n transistor
THEORY AND WORKING: Using diodes alone does not allow
the implementation of a NOT gate. Instead, a NOT gate can be
constructed by employing an electronic circuit with an n-p-n
transistor. In this setup, the input A is linked to the transistor's base
through a resistance Rb, while the emitter is connected to the ground.
The collector is then attached to a 5V battery. The output Y
corresponds to the voltage at point C concerning the ground.
CONCLUSIONS DRAWN:
1. When the switch A is in the open position (A=0), the bulb
illuminates, resulting in Y=1.
2. Conversely, when the switch A is in the closed position
(A=1), the bulb does not illuminate, leading to Y=0.
13
TRUTH TABLE:
0 1
1 0
14
THE NOR GATE
AIM: To design and Simulate the NOR gate
APPARATUS: Two ideal p-n junction diodes and a n-p-n
transistor.
Boolean Expression:
15
CONCLUSIONS DRAWN:
(i) When both switches A and B are open (A=0, B=0), the bulb
glows, resulting in Y=1.
(ii) If switch A is closed and switch B is open (A=1, B=0), the
bulb glows, leading to Y=0.
(iii) When switch A is open and switch B is closed (A=0, B=1),
the bulb does not glow, resulting in Y=0.
(iv) If both switches A and B are closed (A=1, B=1), the bulb
doesn’t glow, Y=0
TRUTH TABLE:
16
THE NAND GATE
AIM: To design and simulate the NAND gate.
APPARATUS: Two ideal P-n Junction diodes, A resistor R and an
Ideal n-p-n transistor
THEORY AND CONSTRUCTION:
Connecting the output Y of an AND gate to the input of a NOT gate
results in the creation of a NAND gate. The resulting output Y
corresponds to the voltage at point C relative to the ground.
Boolean Expression:
17
CONCLUSIONS DRAWN:
(i) When both switches A and B are closed (A=0, B=0), the
bulb glows, resulting in Y=1.
(ii) If switch A is open and switch B is closed (A=0, B=1), the
bulb glows, leading to Y=1.
(iii) When switch A is closed and switch B is open (A=1,
B=0), the bulb glows, resulting in Y=1.
(iv) If both switches A and B are closed (A=1, B=1), then the
bulb does not glow, resulting in Y=0.
TRUTH TABLE:
18
THE X-OR GATE
AIM: To design and simulate the X-OR gate circuit
APPARATUS: Two AND gates, One OR gate and Two NOT gates
THEORY AND CONSTRUCTION:
The EX-OR operation examines the exclusivity in the values of two
signals, A and B. If A and B are not identical, the output Y is set to 1;
conversely, if both are identical, the output Y is set to 0. This
operation is commonly known as the exclusive OR gate, denoted as
EX-OR.
Boolean expression:
19
CONCLUSIONS DRAWN:
1. If both switches A and B are in the open position (A=0, B=0),
the bulb does not glow, resulting in Y=0.
2. If switch A is in the open position and switch B is closed (A=0,
B=1), the bulb glows, resulting in Y=1.
3. If switch A is closed and switch B is in the open position (A=1,
B=0), the bulb will glow, resulting in Y=1.
4. If both switches A and B are closed (A=1, B=1), the bulb will
not glow, resulting in Y=0.
TRUTH TABLE:
In an XOR gate, the output (Y) is true (1) when the inputs A and B
are different. If both inputs are the same, the output is false (0). This
behaviour makes XOR gates useful in various applications, such as
binary addition and error detection.
20
THE X-NOR GATE
AIM: To design and simulate the X-NOR gate circuit.
APPARATUS: Two AND gates, One OR gate and 3 NOT gates.
THEORY AND CONSTRUCTION:
The EX-NOR operation examines exclusivity in the values of two
signals, A and B. If A and B are not identical, the output Y is set to 0;
conversely, if both are identical, the output Y is set to 1. This
operation is also known as the exclusive NOR gate, designated as EX-
NOR.
Boolean Expression:
21
CONCLUSION DRAWN:
1. If both switches A and B are open (A=0, B=0), the bulb glows,
resulting in Y=1
2. If switch A is open and switch B is closed (A=0, B=1), the bulb
does not glow, resulting in Y=0
3. If switch A is closed and switch B is open (A=1, B=0), the bulb
does not glow, resulting in Y=0
4. If both switches A and B are closed (A=1, B=1), the bulb glows,
resulting in Y=1.
TRUTH TABLE:
22
CONCLUSION
In the contemporary electronic landscape, logic gates play a pivotal
role in the design and construction of numerous integrated circuits
(ICs) or microchips.
NAND gates and NOR gates hold the distinction of being labelled as
universal gates due to their capability to construct all three
fundamental gates.
23
BIBLIOGRAPHY
1. https://chat.openai.com
2. https://www.techtarget.com/whatis/definition/logic-gate-
AND-OR-XOR-NOT-NAND-NOR-and-XNOR
3. https://en.wikipedia.org/wiki/Logic_gate
4. Google Search Engine
5. Bing AI
6. https://www.geeksforgeeks.org/logic-gates/
7. NCERT CLASS XII Physics Part II: Chapter 14-
Semiconductors.
24