UNIT-1_ Boolean Logic
UNIT-1_ Boolean Logic
of ELC2310
(Logic Circuits)
Binary Logic
• Consists of Binary/Boolean variables and logical
operations, that assume logical meaning
• (OFF & On), (False & True), (Low & High), (No & Yes)
(LOGIC LEVELS)
5V 5V
2V 3.5 V
0.8 V 1.5 V
• OR Operation; x=A+B
• NOT Operation; x = A′
TRUTH TABLE is a table of all possible combinations
of variables, showing relation between the values
that variables may take and the result of operation
BASIC LOGICAL OPERATIONS:
AND OPERATION WITH AND GATES
• AND Operation; x=A.B or x = AB
3 Input AND Gate
Timing Diagram for AND Operation
REALIZATION OF 2 - INPUT A
AND GATE USING DIODES
Assuming B x
Logic 0 = 0 V
Logic 1 = 5 V
5V
OR OPERATION WITH OR GATES
• OR Operation; x=A+B
3 INPUT OR GATES
TIMING DIAGRAM FOR 2-INPUT
OR OPERATION
TIMING DIAGRAM FOR 3-INPUT
OR OPERATION
REALIZATION OF 2 INPUT
OR GATE USING DIODES A
Assuming
Logic 0 = 0 V B x
Logic 1 = 5 V
NOT OPERATION WITH NOT GATE
• NOT Operation; x = A′
REALIZATION OF A NOT GATE USING
TRANSISTOR
NAND & NOR GATES (UNIVERSAL GATES)
• NAND & NOR gates are used extensively as
standard logic gates, & r more popular than AND &
OR gates
• NAND & NOR gates actually combine the basic
AND, OR, and NOT operations
• NAND & NOR gates are easily constructed with
transistor circuits and digital circuits can be easily
implemented with them
NAND Operation x = (AB)′
Inverter
N-Channel Enhancement type MOSFET
TIMING DIAGRAM FOR NAND
OPERATION
x = (AB)′
UNIVERSALITY OF NAND GATES AND
NOR GATES
2- I/P NOR GATE
of Boolean algebra.
that is, x + 0 = 0 + x = x.
that is, x . 1 = 1 . x = x
that is, x + y = y + x.
(b) Structure is commutative with respect to .
that is, x . y = y . x
4. (a) The operator . is distributive over +
that is, x . (y + z) = (x . y) + (x . z)
(b) The operator + is distributive over .
that is, x + (y . z) = (x + y) . (x + z)
5. For every element x ϵ B, there exists an element x′ϵ
B (and called complement of x)
such that (a) x + x′ = 1 and (b) x . x′ = 0
6. There exist at least two elements x, y ϵ B
such that x ≠ y
(17) (x . y)′ = x′ + y′
Gate implementation of F1
F1 = x + y′z
GATE IMPLEMENTATION OF F2
F2 = xy′ + x′z
ALGEBRAIC MANIPULATION
Simplify the following Boolean functions to a
minimum number of literals.
1. x(x′ + y) = xx′ + xy = 0 + xy = xy
2. x + x′y = (x + x′)(x + y)
= 1(x + y) = x + y
3. (x + y)(x + y′) = x + xy + xy′ + yy′
= x(1 + y + y′)
=x
4. xy + x′z + yz
= xy + x′z + yz (x + x′)
= xy + x′z + xyz + x′yz
= xy(1 + z) + x′z(1 + y)
= xy + x′z
5. (x + y)(x′ + z)(y + z) = (x + y)(x′ + z)
by duality from function 4
2.3 Find the complement of functions F1 = x′yz′ + x′y′z
and F2 = x(y′z′ + yz) (Using DeMorgan’s theorems)
F1′ = (x′yz′ + x′y′z)′ = (x′yz′)′(x′y′z)′
= (x + y′ + z)(x + y + z′)
F2′ = [x(y′z′ + yz)]′ = x′ + (y′z′ + yz)′
= x′ + (y′z′)′(yz)′
= x′ + (y + z)(y′ + z′)
= x′ + yz′ + y′z
CANONICAL & STANDARD FORMS
Minterms: A binary variable may appear either in
normal form (x) or complement form (x′). For 3
binary variables x, y & z, combined with an AND
operation, there will be 23 = 8 possible combinations,
(x′y′z′, x′y′z, x′yz′, x′yz, xy′z′, xy′z, xyz′, & xyz),
These 8 AND terms are called minterms, or
standard products. Similarly n variables can be
combined to form 2n minterms.
Maxterms: For 3 variables x, y & z, combined with
an OR operation, there will be 8 possible combinations
f1 = M0 . M2 . M3 . M5 . M6
Similarly, it is possible to read the expression for f2
from the table:
f2 = (x + y + z)(x + y + z′)(x + y′ + z)(x′ + y + z)
F = A + B′C
F = m 1 + m4 + m5 + m6 + m7
F(A, B, C) = Σ (1, 4, 5, 6, 7)
(Brief notation)
Product of Maxterms
Each of the 22n functions of n binary variables can
be also expressed as a product of maxterms.
F(x, y, z) = Π(0, 2, 4, 5)
truth table. These forms are very seldom the ones with
Standard Forms
IMPLIMENTATION
Nonstandard Forms
F3 = AB + C(D + E) = AB + CD + CE
OTHER LOGIC OPERATIONS
When binary operators AND and OR are placed
between two variables, x and y, they form two
Boolean fns, x.y and x + y. There are 22n functions for
n binary variables. Thus, for 2 variables, n = 2, and
the number of possible Boolean functions is 16
Boolean Expressions for 16 Fns of 2 Variables
SIMPLIFYING LOGIC CIRCUITS
SUM-OF-PRODUCTS FORM (SOP FORM)
• ABC + A′BC′
• AB + A′BC′+ C′D′ + D
• A′B + CD′ + EF + GK + HL′
• (ABC)′ or (RST)′ is not (SOP) FORM
= AC(1) + AB′
z = A (C + B′)
Simplify the expression z = AB′C′ + AB′C + ABC
Simplify z = A′C(A′BD)′ + A′BC′D′ + AB′C
z = A′C(A + B′ + D′) + A′BC′D′ + AB′C (Step 1)
x = BD′(A′ + A + 1)
x = BD′
Simplify the circuit of Figure
z = (A′ + B)(A + B′)
z = A′A + A′B′ + BA + BB′
Since A′A = BB′ = 0
z = A′B′ + BA
Simplification process
produced equivalent,
but not simpler, circuit
Simplify x = AB′C + A′BD + C′D′
Solution
You can try, but you will not be able to simplify this
expression any further
DESIGNING COMBINATIONAL LOGIC CKTS
If desired O/P level of a logic circuit is given for all
possible I/P conditions, results can be displayed
in a truth table. Boolean expression for required
circuit can then be derived from truth table
Same approach can be used for other I/P conditions
x = A′B + AB′
K map Format
F (A,B,) = Σ (0,3)
X (A, B, C) = Σ (0, 1, 2, 6)
(c) K maps & truth tables for 4 variables
F (A,B,C) = Σ (2,6)
X (A,B,C) = Σ (0, 4)
X = AD′ X = B′D′
Looping a quad of adjacent 1s eliminates 2
variables, appearing in both complemented &
uncomplementd form
LOOPING AN OCTET (GROUP OF 8)
of adjacent 1s eliminates 3 variables that appear in
both complemented & uncomplemented form
LOOPING AN OCTET (GROUP OF 8)
of adjacent 1s eliminates 3 variables that appear in
both complemented & uncomplemented form
COMPLETE SIMPLIFICATION PROCESS
Looping of pairs, quads, and octets on a K map can
F = yz + w′x′ F = yz + w′z
Example 4.15 Tocci
Design a logic circuit that controls an elevator door in
a three-story building. The circuit in Figure has four
inputs. M is a logic signal that indicates when the
elevator is moving (M = 1) or stopped (M = 0). F1, F2,
and F3 are floor indicator signals that are normally
LOW, and they go HIGH only when the elevator is
positioned at the level of that particular floor. For
example, when the elevator is lined up level with the
second floor, F2 = 1 and F1 = F3 = 0. The circuit
output is the OPEN signal, which is normally LOW
and will go HIGH when the elevator door is to be
opened.
Elevator is stopped (M = 0)
Elevator is moving (M = 1)
Example 4.15
F (x, y, z) = Σ (2, 3, 4, 5)
F = x′y + xy′
Ex 3.2 Mano: Simplify F (x, y, z) = Σ (3, 4, 6,7)
yz + xz
F = z′ + xy′
F (x, y, z) = (0, 2, 4, 5, 6) = z′ + xy′
Ex 3.4 Mano: For F = A′C + A′B + AB′C + BC
(a) Express this function as a sum of minterms.
F = y′ + w′z′ + xz′
Ex 3.6 Mano: Simplify the Boolean function
F = A′B′C′ + B′CD′ + A′BCD′ + AB′C′
= BD + B′D′ + B′C + AD
= BD + B′D′ + B′C + AB′
Hence, identification of the prime implicants in the map
helps in determining the alternatives that are available for
obtaining a simplified expression.
Ex 3.7: Simplify Fn into (a) SOP (b) POS form:
F (A, B, C, D) = Σ (0, 1, 2, 5, 8, 9, 10)
Combining squares with 1’s gives simplified fn in SOP
form:
(a) F = B′D + B′C′ + A′C′D
If squares marked with 0’s are combined, as shown the
simplified complemented fn:
F′ = AB + CD + BD′
By DeMorgan’s theorem (by taking the dual and
complementing each literal, simplified fn in POS form
(b) F = (A′ + B′) (C′ + D′) (B′ + D)
Gate implementations of the function of
Example 3.7 in (a) SOP & (b) POS form
NAND & NOR Implementation
NAND Implementation
Implement the Function with NAND gates:
F (x, y, z) = (1, 2, 3, 4, 5, 7)
NOR Implementation
NOR Implementation