Unit-2 DLC
Unit-2 DLC
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 1
Boolean Algebra and Logic
Circuits
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 4
Introduction to Boolean Algebra
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 8
Equivalent and Complement of
Boolean Expressions
• Two given Boolean expressions are said to be
equivalent if one of them equals ‘1’ only when the
other equals ‘1’ and also one equals ‘0’ only when
the other equals ‘0’.
• They are said to be the complement of each other
if one expression equals ‘1’ only when the other
equals ‘0’, and vice versa.
• The complement of a given Boolean expression is
obtained by complementing each literal, changing
all ‘.’ to ‘+’ and all ‘+’ to ‘.’, all 0s to 1s and all 1s
to 0s.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 9
Examples
Example-1 :Given Boolean expression
AB+AB Corresponding complement is (A+B) . (A+B)
Example2: Given Boolean expression
A+B . A+B Corresponding complement AB+AB
When OR ed with its complement the Boolean
expression yields a ‘1’, and when AND ed, with its
complement it yields a ‘0’.
The ‘.’ sign is usually omitted in writing Boolean
expressions and is implied merely by writing the
literals in just a position. For instance, A.B would
normally be written as AB.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 10
Dual of a Boolean Expression
• The dual of a Boolean expression is obtained
by replacing all ‘.’ operations with ‘+’
operations, all ‘+’ operations with ‘.’
operations, all 0s with 1s and all 1s with 0s
and leaving all literals unchanged.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 11
Example
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 12
Example
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 13
Postulates of Boolean Algebra
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 14
Theorems of Boolean Algebra
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 15
Theorem 2
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 16
Theorem 3
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 17
Theorem-4
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 18
Problem
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 19
Theorem-5 and 6
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 20
Circuit representation
October 15, 2024 Department of CSE, GIT Course Code and Course Title: C 21
SEN1051 : DIGITAL LOGIC CIRCUITS
Theorem-7:Distributive Laws
October 15, 2024 Department of CSE, GIT Course Code and Course Title: C 22
SEN1051 : DIGITAL LOGIC CIRCUITS
Distributive Laws representation
October 15, 2024 Department of CSE, GIT Course Code and Course Title: C 23
SEN1051 : DIGITAL LOGIC CIRCUITS
Theorem 8
October 15, 2024 Department of CSE, GIT Course Code and Course Title: C 24
SEN1051 : DIGITAL LOGIC CIRCUITS
Theorem 9 and 10
October 15, 2024 Department of CSE, GIT Course Code and Course Title: C 25
SEN1051 : DIGITAL LOGIC CIRCUITS
Theorem 11
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 26
Theorem 12
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 27
Problem
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 28
Theorem 13 (DeMorgan’s Theorem)
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 29
Theorem 13 (DeMorgan’s Theorem)
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 30
Theorem 14
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 31
Theorem 15
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 32
Simplification of Boolean Expressions using
Boolean algebra
Rules of Boolean Algebra
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 33
Problem-1
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 34
Problem - 2
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 35
Problem -3
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 36
Problem - 4
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 37
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 38
Problem - 5
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 39
Problem -6
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 40
REPRESENTATION OF BOOLEAN FUNCTIONS
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 41
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 42
Minterm and Maxterm Realization
Minterm
• Consider two binary variables A and B
combined with an AND operation. Since each
variable may appear in either form (normal or
complemented), there are four combinations,
that are possible—AB, A′B, AB′, A′B′.
• Each of these four AND terms represent one of
the four distinct combinations and is called a
minterm, or a standard product or fundamental
product.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 43
3- variable minterm and maxterm
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 44
• The binary numbers from 0 to 7 are listed
under three varibles. Each minterm is
obtained from an AND term of the three
variables, with each variable being primed
(complemented form) if the corresponding bit
of the binary number is a 0 and unprimed
(normal form) if a 1.
• The symbol is mj, where j denotes the
decimal equivalent of the binary number of
the minterm disignated.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 45
minterm and Maxterm
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 46
Example
• Let we have a TV that is connected with three
switches. TV becomes ‘ON’ only when atleast
two of the three switches are ‘ON’ (or high)
and in all other conditions TV is ‘OFF’(or low).
• Let the three switches are represented by
three variable A, B and C. The output of TV is
represented by F. Since there are three
switches (three variables), there are 8 distinct
combinations possible that is shown in Truth
Table.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 47
Truth table
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 48
• The TV becomes ‘ON’ at four combinations. These
are 011, 101, 110 and 111. We can say that F is
determined by expressing the combinations A′BC, AB
′C, ABC′ and ABC. Since each of these minterms
result in F = 1,
• we should have
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 50
• As mentioned, any TRUTH-TABLE INPUT/OUTPUT
specifications can be expressed in a SOP expression.
• To facilitate this a shorthand symbology has been
developed to specify such expressions.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 51
This is done by giving each row (MINTERM) in the
TRUTH-TABLE a decimal number that is equivalent to
the binary code of that row, and specifying the
expression thus:
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 52
Forms for expressing SOP function
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 53
Maxterms
• Now, continuing with the same example, consider the
complement of Boolean function that can be read from
Truth-table by forming a minterm for each combination
that produces 0 in the function and by 0Ring.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 54
This demonstrates a second important property of
the Boolean algebra that ‘Any Boolean function can
be expressed as product-of-maxterms or as product
of sums.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 55
• The procedure for obtaining the product of maxterms
directly from Truth-table is as follows:
• Form a maxterm for each combination of the variables
that produces a 0 in the function, and then form the
AND of all those functions. Output will be equal to F
because in case of maxterms 0 is unprimed.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 56
• Boolean functions expressed as sum of
minterms (sum of product terms) SOP or
product of maxterms, (Product of sum terms)
POS are said to be in CANONICAL form or
STANDARD form.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 57
Standard Forms
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 58
Conversion Between Canonical Forms
Replace Σ with Π (or vice versa) and replace those j’s
that appeared in the original form with those that do not.
Example:f1(a,b,c)= a’b’c+ a’bc’ + ab’c’+ abc’
= m1+ m2+ m4+ m6
= Σ(1,2,4,6)
= Π(0,3,5,7)
= (a+b+c)•(a+b’+c’)•(a’+b+c’)•(a’+b’+c’)
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 59
Problem on standard SOP form
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 60
Problem on standard POS form
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 61
Conversion between Standard Forms
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 62
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 63
Logic gates
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 65
AND gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 66
Application of an AND Gate
• An AND gate can be used in a simple seat
belt alarm system in a car to detect when
the ignition switch is ON, and the seat belt is
unbuckled. If the ignition switch is ON, a 1 is
produced on input A of the AND gate shown
in fig
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 67
• If the seat belt is not properly buckled, 1 is
produced on input B of the AND gate. Also when
the ignition switch is turned ON, a timer is
started that produces a 1 on input C for 30
seconds.
• If all the three conditions exist, i.e. if the ignition
switch is ON, and the seat belt is unbuckled and
the time is running, the output of the AND gate
is 1. This will activate the audible alarm to
remind the driver (say to buckle the seat belt).
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 68
OR gate
• Like AND gate, the OR gate, is another basic logic
gate from which all logic functions are
constructed. It is composed of two or more inputs
and a single output.
• The OR gate is sometimes called the "any or all
gate." Figure illustrates the basic idea of the OR
gate using simple switches.
• Looking at the circuit in Fig, you can see that the
output lamp will light when either or both of the
input switches are closed but not when both are
open.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 69
Boolean Expression is
Y= A+B+C
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 70
Pulsed Operation of an OR Gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 71
Application of an OR Gate
Air Conditioning room alarming system
• The circuit shown in Fig consists of three sensors which can be placed on the doors and windows
within a room (say with one door and two windows). The sensors are magnetic switches that
produces a 1 output when open and a 0 output when closed .
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 72
OR Gate operation example
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 73
NOT gate
A NOT gate is a one-input, one-output logic circuit whose output is
always the complement of the input. That is, a LOW input produces a
HIGH output, and vice versa.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 74
Application of an Inverter
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 75
NAND gate
• The term NAND is a contraction of NOT-AND.
It implies an AND function with a
complemented (or inverted) output. The
standard logic symbol for a 2-input NAND
gate is as shown in Fig.a
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 76
Notice that this symbol is the same as AND gate symbol
except for a small circle (or a bubble) on its output. This
small circle denotes the invertion operation. Thus the
NAND gate operates like an AND gate followed by
INVERTER as shown in Fig b.
Boolean expression fro NAND is
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 77
Application of a NAND Gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 78
NOR Gate
• The term NOR is a contraction of NOT-OR. It
implies an OR function with a complemented
(or inverted) output. The standard logic symbol
for a 2-input NOR gate is as shown in Fig (a).
• Notice that this symbol is the same as OR gate
symbol except for a small circle (or a bubble)
on its output. This small circle denotes the
inversion operation. Thus the NOR gate
operates like an OR gate followed by INVERTER
as shown in Fig (b).
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 79
NOR gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 80
Application of a NOR Gate
• Fig. shows a NOR-gate circuit required to indicate the
status of the landing gear prior to landing in an aircraft,
as a part of its functional monitoring system.
• In this circuit, when a landing gear is extended, its
sensor produces a LOW(0) voltage. When a landing
gear is retracted, its sensor produces a HIGH (1)
voltage.
• A green LED display turns ON if all the three gears are
properly extended when the “gear down” switch is
activated in preparation for landing. A red LED display
turns ON if any of the gears fail to extend properly prior
to landing.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 81
NOR gate Example
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 82
• The exclusive –OR (abbreviated as XOR) gate has only
two-inputs. Unlike the other logic gates we have
discussed earlier, the exclusive-OR gate has never more
than two inputs. Fig. shows the logic symbol of an
exclusive –OR gate.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 83
Operation of Ex-OR gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 84
Application of an Exclusive–OR
Gate
Fig shows an exclusive –OR gate being used to detect
the failure in either one of the identical circuits
operating in parallel. As long as both the circuits
are operating properly, the outputs of both the
circuits are always the same. Therefore the output
of the exclusive –OR gate is LOW (0).
However, if one of the circuits fails, the outputs of
the two circuits will be at opposite levels, for some
time. Therefore the exclusive –OR gate will
produce a HIGH(1) output indicating failure is one
of the circuits.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 85
Application of an Exclusive–OR
Gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 86
The Exclusive –NOR Gate
• The exclusive –NOR (abbreviated as XNOR)
gate has also only two inputs like exclusive –
OR gate. Fig (a) shows the logic symbol of an
exclusive –NOR(XNOR) gate. The bubble on
the output of the XNOR gate symbol
indicates that its output is opposite to the
output of the XOR gate.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 87
Operation of Ex-NOR gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 88
Application of an Exclusive-NOR
Gate
The exclusive –NOR gate can also be used to
detect failure in either one of the identical
circuits operating in parallel (i.e., the same
application as discussed for exclusive –OR gate)
as shown in Fig
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 89
Determination of Boolean
Expression for a Logic Circuit
Write the Boolean expression for output X for the logic circuit
shown in Fig.
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 90
Video Box Position
As seen from circuit shown in Fig, we find that the Boolean expression for the output,
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 91
Determination of a Truth Table for a Logic
Circuit
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 92
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 93
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 94
The NAND Gate a Universal Logic Gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 95
The NOR Gate as a Universal Gate
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 96
Let us first of all, implement this circuit using the basic logic gates, i.e. using AND, OR and
INVERTER gates
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 97
• Now we can replace each logic gate by its NAND gate
equivalent. Notice that the INVERTER is replaced by
a single NAND gate each AND gate is replaced by two
NAND gates while an OR gate is replaced by three
NAND gates. The resulting circuit is as shown in Fig
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 98
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 99
Removing the two INVERTERs, on the same line
we can simplify the circuit shown
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 100
Implement following Boolean Expression
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 101
• Now we can replace each logic gate by its NOR gate
equivalent Notice that INVERTER is replaced by
single NOR. While AND is replace by three NOR and
OR gate is replace by two NOR gate. The resulting
circuit is shown in Fig
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 102
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 103
Removing the two INVERTER on the same
line we can simplify the circuit. The
resulting circuit is
shown in
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 104
Effect of Inverter
Effect of inverting outputs of gate Effect of inverting inputs of gates
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 105
Alternative logic symbols
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 107
Redraw the logic circuit by using only five 2-input NAND gates. The circuit
should perform the logic A - B + A - B = Y .
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 108
THANK YOU
October 15, 2024 Department of CSE, GIT Course Code and Course Title: CSEN1051 : DIGITAL LOGIC CIRCUITS 109