Documente Academic
Documente Profesional
Documente Cultură
PRACTICAL: 01
To arrive these decisions, the most common logic gates used are OR, AND, NOT,
NAND and NOR gates.
The Exclusive – OR (EX-OR) gate is another logic gate that can be constructed
using basic gates such as AND, OR and NOT.
Logic Gates have two or more inputs and one output, except for NOT gate which
have one input and one output.
The Logic Gates are the basic building blocks of the hardware which is a available
in the form of various IC families.
Each gate has a distinct logic symbol and its operation can be described by the
means of an algebraic function.
This relation between input and output variable of each gate can be presented in
a tabular form called a TRUTH TABLE.
1|Page
SOHIL VOHRA (LECTURER - SHRI K.J. POLYTECHNIC COLLEGE, BHARUCH (C.E. DEPTT))
DIGITAL ELECTRONICS (331102)
Here is shown the graphic symbol and the truth table of OR gate.
If A & B are the input variables of OR gate, then the output will be :
o Y=A+B
Similarly, for more than two variables, the OR function can be expressed as :
o Y = A + B + C + D + ......
The OR gate using Diodes can be as shown. Here A & B are the inputs to the
gate, Y is input and resistance R is
the Load Resistance.
2|Page
SOHIL VOHRA (LECTURER - SHRI K.J. POLYTECHNIC COLLEGE, BHARUCH (C.E. DEPTT))
DIGITAL ELECTRONICS (331102)
Here is shown the graphic symbol and the truth table of AND gate.
If A & B are the input variables of AND gate, then the output will be :
o Y=A ·B
Here two switches A & B are connected in series. If both A & B are closed, then
the output is HIGH, else in any other combination, output will be LOW.
For an AND gate, when there are more inputs, all the inputs should be HIGH to
get a HIGH output. For this reason, AND gate is also called ALL Gate.
The NOT gate performs the basic logic function called inversion or complement.
The purpose of this gate is to convert one logic level into the opposite logic level.
3|Page
SOHIL VOHRA (LECTURER - SHRI K.J. POLYTECHNIC COLLEGE, BHARUCH (C.E. DEPTT))
DIGITAL ELECTRONICS (331102)
The NAND gate is equivalent to an OR gate with the bubble at its inputs which are
as shown.
4|Page
SOHIL VOHRA (LECTURER - SHRI K.J. POLYTECHNIC COLLEGE, BHARUCH (C.E. DEPTT))
DIGITAL ELECTRONICS (331102)
The Logic symbol and the truth table of NOR gate is as shown here.
The NOR gate is equivalent to an AND gate with the bubble at its inputs which are
as shown.
5|Page
SOHIL VOHRA (LECTURER - SHRI K.J. POLYTECHNIC COLLEGE, BHARUCH (C.E. DEPTT))
DIGITAL ELECTRONICS (331102)
The truth table of Ex-OR gate shows that the output is HIGH when any one, but
not all, of the input is at 1.
The logic symbol and truth table of Ex-NOR are as shown. From the truth table, it
is clear that the Ex-NOR output is tje complement of Ex-OR gate.
The most important property of Ex-NOR gate is that it can be used for bit
comparison.
6|Page
SOHIL VOHRA (LECTURER - SHRI K.J. POLYTECHNIC COLLEGE, BHARUCH (C.E. DEPTT))
DIGITAL ELECTRONICS (331102)
The output of Ex-NOR gate is 1 if both the inputs are similar i.e. both are 0 or 1,
otherwise its output is 0.
Hence the two – input Ex-NOR gate is immensely useful for bit comparison and
parity checking.
10.0 EXERCISE
10.1 What is the only condition under which an OR gate output will be ‘0’?
Ans :
10.2 Under what conditions, will the output of an Ex-OR gate will be 1?
Ans :
10.3 Under what conditions, will the output of an Ex-NOR gate will be 0?
Ans :
10.4 Under what conditions, will the output of an NAND gate will be 0?
Ans :
10.5 Under what conditions, will the output of an NOR gate will be 0?
Ans :
7|Page
SOHIL VOHRA (LECTURER - SHRI K.J. POLYTECHNIC COLLEGE, BHARUCH (C.E. DEPTT))
DIGITAL ELECTRONICS (331102)
11.0 ASSIGNMENTS
11.1 Write the truth table and logic symbol of three-input OR gate.
11.2 Define the NAND and NOR gates through their truth tables.
11.3 Explain the function of OR and AND gates using the diodes.
11.4 Draw the Logic diagram of Ex-OR and Ex-NOR gate and discuss their
operation with their truth tables.
11.5 What is Logic Gate? Also explain the Positive and Negative Logic
Designation.
11.6 Explain the function of an Inverter.
8|Page
SOHIL VOHRA (LECTURER - SHRI K.J. POLYTECHNIC COLLEGE, BHARUCH (C.E. DEPTT))