Chapter 2 Logic Gates
Chapter 2 Logic Gates
University of Gondar
Institute of Technology
Department of Electrical Engineering
Digital Logic Design:
Chapter 2: Logic Gates
By:
Habtamu Maru
Outline
1 Introduction
5 Multivibrators
Logic Gates
A logic gate is a simple switching circuit that determines whether
an input pulse can pass through to the output in digital circuits.
The building blocks of a digital circuit are logic gates, which exe-
cute numerous logical operations that are required by any digital
circuit. These can take two or more inputs but only produce one
output.
At any given moment, every terminal is in one of the two binary
conditions LOW (0) or HIGH (1), represented by different voltage
levels.
The numbers 0 and 1 represent the two possible states of a logic
circuit. The two states can also be referred to as ’ON and OFF’ or
’HIGH and LOW’ or ’TRUE and FALSE’.
Habtamu M. Digital Logic Design February 27, 2024 3 / 41
Digital Logic Design
Introduction
Truth table
A truth table is a means for describing how a logic circuit’s output
depends on the logic levels present at the circuit’s inputs.
The number of input combinations will equal 2N for an N-input
truth table.
Also note that the list of all possible input combinations follows
the binary counting sequence, and so it is an easy matter to write
down all of the combinations without missing any.
Types of Logic Gates
Truth table
gate waveforms
OR Gate
An OR gate can have two or more inputs with one output and
perform logical addition.
Let A and B represents two independent logic variables. When A
and B are combined using the OR operation the result Y can be
expressed as Y = A+B.
Habtamu M. Digital Logic Design February 27, 2024 7 / 41
Digital Logic Design
Types of Logic Gates
In this expression the + sign does not stand for ordinary addition;
it stands for the OR operation.
The OR gate operates so that its output is HIGH (logic 1) if either
input A or B or both are at a logic 1 level. The OR gate output will
be LOW (logic 0) only if all its inputs are at LOW (logic 0).
Truth table
AND Gate
The AND gate composed of two or more inputs and a single output.
The AND gate output is equal to the AND product of the logic inputs; that
is, X= AB or X=A.B, this is the AND operation.
The . sign is usually omitted so that the expression simply becomes X=AB
In other words, the AND gate is a circuit that operates so that its output is
HIGH only when all its inputs are HIGH. For all other cases, the AND gate
output is LOW.
Truth table
NAND gate
The term NAND is a contraction of NOT-AND and implies an AND function
with a complemented (inverted) output.
The symbol of NAND gate is the same as the AND gate symbol except for
the small circle on its output.
This small circle denotes the inversion operation. Thus, the NAND oper-
ates like an AND gate followed by an INVERTER and the output expression
for the NAND gate is X=AB.
The NAND gate is a popular logic element because it can be used as uni-
versal gate: that is NAND gate can be used in combination to perform the
AND, OR, and NOT operations.
Truth table
The AND output goes HIGH only when all inputs are HIGH, while
the NAND output goes LOW only when all inputs are HIGH.
NOR gate
The term NOR is a contraction of NOT-OR and implies an OR func-
tion with an inverted (complemented) output.
It is the same as the OR gate symbol except that it has a small
circle on the output.
The small circle represents the inversion operation. Thus, the NOR
gate operates like an OR gate followed by an INVERTER.
The Boolean output expression for the NOR gate with two inputs,
X=A + B
NOR gate operation is equivalent to negative operation of AND.
gate.
Truth table
An OR gate output goes HIGH when any input is HIGH; the NOR
gate output goes LOW when any input is HIGH.
Truth table
The XNOR produces a HIGH output whenever the two inputs are
at the same level.
The output expression is X=AB+A B which indicates along with
the truth table that x will be 1 for two cases: A=B=1 (the AB term)
and A=B=0 (the A B term).
Truth table
HOME WORK
There are three doors in a room with a light switch next to each
one. you can turn ON the light from any door when you enter and
you can turn OFF the light from any door when you leave.
I Write the truth table for the function
I Draw the logic circuit for the function
I check if it possible to realize the function with a single logic gate
Multivibrators
Multivibrators is the electronic circuit used to implement a vari-
ety of simple two-state systems such as oscillator, Timer and Flip
flops.
It is characterized by two amplifiers devices (Transistor, electronic
tubes or other devices). It has two state LOW (0) and HIGH (1).
Cross-coupled by resistor and capacitor
There are three types of Multivibrator circuit:
Astable Multivibrator
Monostable Multivibrator
Bistable Multivibrator
Astable Multivibrator:
The output will not remain stable in any of the two states.
If we see the output, the output of the Multivibrator continuously
changes between the two state.
Due to this, it does not require an input (clock pulses or other)
Monostable Multivibrator:
Monostable has only one stable state and is triggered externally.
Monostable Multivibrators or “one-shot” pulse generators are used
to generate a single output pulse, either “HIGH” or “LOW”, when a
suitable external trigger signal or start pulse T is applied.
But whenever some external trigger signal is applied then output
momentarily goes in to the unstable state and after some time it
comes back in to the stable state.
So, the time required to come back in to the stable state depends
upon the passive components like R and C.
Bistable Multivibrator:
Both state are stable , and the output of the multivibrator can be
in any of the two stable state.
This type of multivibrator circuits passes from one state to the
other ”only” when a suitable external trigger pulses T is applied
and to go through a full ”SET-RESET” cycle two triggering pulses
are required.
This type of circuit is also known as a Bistable latch, Toggle latch
or simply T-latch, flip-flop.
such a circuit is important as the fundamental building block of a
register or memory devices.
Advantages of IC’s
I small size, Less weight and volume
I Low cost
I Improved performance, High reliability and ruggedness
I Low power consumption
I Less affected to parameter variation
I Easy troubleshooting and replacement
I Increased operating speed
Disadvantages of IC’s
I As IC is small in size its unable to dissipate large amount of power.
Increase in current may produces enough heat which may destroy
the devices.
I At present coils, inductors and transformers can not produced in IC
form.
Habtamu M. Digital Logic Design February 27, 2024 28 / 41
Digital Logic Design
Digital Integrated circuit
Power dissipation
I It is the amount of power that the digital circuit dissipates. The power
dissipated is determined by the average current (value at LOW and
HIGH gate output), that is drawn from the supply voltage.
Noise Immunity and Noise margin
I Noise is an unwanted signal that is superimposed on the normal
operating signal. It may be due to various factors like operating en-
vironment, radiations, stray electrical and magnetic fields.
I LOW and HIGH voltage levels represented by 0 and 1. Due to the in-
terference of the noises, the voltage levels may increase or decrease.
This may lead to the wrong operation of the device.
I Noise immunity is the ability of the logic device to tolerate the noise
without causing spurious change to the output voltage.
I Noise margin allows the logic device to function properly within the
specified limits.
Habtamu M. Digital Logic Design February 27, 2024 37 / 41
Digital Logic Design
Digital Integrated circuit
Digital Logic Families
Figure of merit
I For an efficient operation of any device, whether it may be digital or
analog, the power dissipation and the speed are notable character-
istics.
I Achieving a higher speed with less power dissipation is a highly chal-
lenging task.
I In the digital logic circuit, a trade-off exists between these two char-
acteristics. That is, for higher speed, the power dissipation will be
more.
I The figure of merit or Speed Power Product is a common means of
measuring the performance of circuits in the digital logic family.
CMOS IC’s has the lowest speed power product and requires very
small power and are available in a wide range of standard logic
functions.
It is the most popular logic family and has led to the VLSI chips .
They are commonly used in low-power applications such as portable
devices, battery-powered equipment, and automotive electron-
ics.
However, CMOS gates have a higher input capacitance and have a
higher fan-out, which means that they are slower than TTL gates
and are less prone to noise.
!! !
O U
K Y
A N
T H
Habtamu M. Digital Logic Design February 27, 2024 41 / 41