Professional Documents
Culture Documents
Boolean Algebra and Logic Gates
Boolean Algebra and Logic Gates
1.Closure A set S is closed with respect to a binary operator if, for every pair
of elements of S, the binary operator specifies a rule for obtaining a unique
element of S.
Example:-
The set of natural numbers N = {1, 2, 3, 4,...} is closed with respect to
the binary operator plus (+) by the rules of arithmetic addition, since for any
a, b ∈ N we obtain a unique c ∈ N by the operation a + b = c.
2. Associative law
• A binary operator * on a set S is
said to be associative whenever:
2.1 Basic (x* y)*z = x*(y*z) for all x, y, z ∈ S
4. Identity element
A set S is said to have
an identity element with respect to a binary
operation * on S if there exists an element e ∈ S with
the property: e* x = x* e = x for every x ∈ S
Example:
The element 0 is an identity element with
respect to operation + on the set of integers I = {...
,−3, −2, −1, 0, 1, 2, 3, ... } since: x + 0 = 0 + x = x for
any x ∈ I The set of natural numbers N has no
identity element since 0 is excluded from the set.
5. Inverse
• A set S having the identity element e with
respect to a binary operator * is said to
have an inverse whenever, for every x ∈ S,
there exists an element y ∈ S such that: x*
2.1 Basic y = e Example: In the set of integer I with e
= 0, the inverse of an element a is (-a) since
Definitions a + (-a) = 0.
6. Distributive law
• If * and • are two binary operators on a set
S, * is said to be distributive over •
whenever: x*(y • z) = (x*y) • (x*z)
Boolean algebra is an algebraic structure
defined on a set of elements B together with
two binary operators + and • provided the
2.2 Axiomatic following (Huntington) postulates are
satisfied:
Definition of 1. (a) Closure with respect to the operator +.
Boolean (b) Closure with respect to the operator.
Algebra 2. (a) An identity element with respect to +,
designated by 0: x + 0 = 0 + x = x.
(b) An identity element with respect to •,
designated by 1: x 1 = 1 • x = x.
3. (a) Commutative with respect to +: x + y = y +
x.
(b) Commutative with respect to : x y = y • x.
4. (a) • is distributive over + : x • (y + z) = (x • y)
2.2 Axiomatic + (x • z).
Definition of (b) + is distributive over: x + (y • z) = (x + y) •
(x + z).
Boolean 5. For every element x ∈ B, there exists an
Algebra element x′ ∈ B (called the complement of x)
such that: (a) x + x′= 1 and (b) x • x′ = 0.
6. There exists at least two elements x, y ∈ B
such that x != y.
A two-valued Boolean algebra is defined on a set of two
elements, B = {0, 1}, with rules for the two binary operators +
2.2.2 Two-Valued and • as shown in the following operator tables (the rule for
Boolean Algebra the complement operator is for verification of postulate 5):
These rules are exactly the same as the AND, OR,
and NOT operations, respectively, defined in Table
1-6. We must now show that the Huntington
postulates are valid for the set B = {0, 1} and the
2.2.2 Two- two binary operators defined above.
1. Closure is obvious from the tables since the
Valued result of each operation is either 1 or 0 and 1,
Boolean 0 ∈ B.
2. From the tables we see that: (a) 0 + 0 = 0, 0 +
Algebra 1=1+0=1
(b) 1 • 1 = 1 ,1 • 0 = 0 • 1 = 0 which establishes
the two identity elements 0 for + and 1 for • as
defined by postulate 2.
3. The commutative laws are obvious from the
symmetry of the binary operator tables.
2.3.2 Basic
Theorems
THEOREM 6(b): x(x + y) = x by duality.
The first De Morgan’s theorem (x + y)′ = x′ y′
The operator precedence
for evaluating Boolean
2.3.3 expressions is
Operator • Parentheses
Precedence • NOT
• AND
• OR.
EXAMPLE 2-1: Using basic Boolean theorem prove:
(a) (x + y)(x + z) = x + yz
Soln: (x + y) (x + z)
2.3.3 =x⋅x+x⋅z+y⋅x+y⋅z since
x.x = x
Operator = x + xz + yx + yz
Precedence = x (1 + z) + yx + yz
since (1 + z) = 1
(Example) = x + yx + yz
= x (1 + y) + yz
since (1 + y) = 1
= x + yz (Proved)
2.3.4 Venn
Diagram
A helpful illustration that may
be used to visualize the
relationships among the
variables of a Boolean
expression is the Venn diagram.
Distributive law
x(y + z) = xy + xz
(Venn Diagram)
2.4 Boolean
Functions
2.4 Boolean Functions (continued)
2.4 Boolean Functions (continued)
2.4 Boolean Functions (continued)
2.4 Boolean
Functions
(continued)
2.4.1 Algebraic
Manipulation
Example: Simplify the following
Boolean functions to a minimum
number of literals.
1. x + x′ y
= (x + x′)(x + y)
= 1 • (x + y)
=x+y
Example: Simplify the following Boolean functions to
2.4.1 a minimum number of literals.
2. x (x′ + y)
Algebraic = xx′ + xy
Manipulation = 0 + xy
= xy
2.4.1 Example: Simplify the following Boolean functions to
a minimum number of literals.
Algebraic 3. x′ y′ z + x′ yz + xy′
= x′ z(y′ + y) + xy′
Manipulation = x′ z + xy′
Example: Simplify the following Boolean functions to
a minimum number of literals.
2.4.1 4. xy + x′ z + yz
2.7 Digital
Logic Gates
2.7.1 Extension to Multiple Inputs
The difficulty is that the NAND and NOR operators are not
2.7.1 associative, i.e., (x ↓ y) ↓z ≠ x ↓ (y ↓ z), as shown in Fig. 2-6
and below:
Extension to (x ↓ y) ↓z = [(x + y)′ + z]′ = (x + y)z′ = xz′ + yz′
I 2 L Integrated-injection logic
2.8.1 Positive and Negative Logic
2.8.1 Positive and Negative Logic
Thank You