module 1
module 1
The two values the variables assume may be called by different names (true and false, yes and no, etc.).
It is convenient to think in terms of bits and assign the values 1(usually indicates logical state true/yes)
and 0 (usually indicates logical state false/no) for performing binary operations.
AND
This operation is represented by a dot or by the absence of an operator.
For example, x . y = z or xy = z is read “x AND y is equal to z.”
The logical operation AND is interpreted to mean that z = 1 if and only if x = 1 and y = 1;
otherwise, z = 0.
x, y, and z are binary variables and can be equal either to 1 or 0, and nothing else.
The result of the operation (x . y) is z.
OR
This operation is represented by a plus sign.
For example, x + y = z is read “x OR y is equal to z,” meaning that z = 1 if x = 1 or if y = 1 or if both x
= 1 and y = 1.
If both x = 0 and y = 0, then z = 0
NOT
This operation is represented by a prime (sometimes by an overbar).
For example, x’ = z (or x = z) is read “not x is equal to z,”
Meaning is that z is not of x.
In other words, z is the result obtained after performing NOT operation on x.
i.e., if x = 1, then z = 0, but if x = 0, then z = 1.
The NOT operation is also referred to as the complement operation, since it changes a 1 to 0 and a
0 to 1, i.e., the result of complementing 1 is 0, and vice versa.
X Y Z = X.Y
0 0 0
0 1 0
1 0 0
1 1 1
EXPRESSION FORMAT:
In expression format the relationship between the different combinations and their result after a
particular logic operation is performed will be represented in the form of expression called as
Boolean logic expression.
For AND expression is Z = X.Y
For OR expression is Z = X + Y
For NOT expression is Z = X’
In this the combination values have to be substituted in the expression and then get the result for
each possible combination.
Electrical signals such as voltages or currents exist as analog signals having values over a given
continuous range, say, 0 to 3 V, but in a digital system these voltages are interpreted to be either of
two recognizable values, 0 or 1.
Voltage‐operated logic circuits respond to two separate voltage levels that represent a binary
variable equal to logic 1 or logic 0.
For example, a particular digital system may define logic 0 as a signal equal to 0 V and logic 1 as a
signal equal to 3 V.
In practice, each voltage level has an acceptable range, as shown in Fig. 1.3. The input terminals of
digital circuits accept binary signals within the allowable range and respond at the output terminals
with binary signals that fall within the specified range.
The intermediate region between the allowed regions is crossed only during a state transition.
Any desired information for computing or control can be operated on by passing binary signals
through various combinations of logic gates, with each signal representing a particular binary
variable.
LOGIC GATES:
Logic gates are electronic circuits that operate on one or more input signals to produce an output
signal.
The graphic symbols used to designate the three types of gates are shown in Fig. 1.4.
The gates are blocks of hardware that produce the equivalent of logic‐1 or logic‐0 output signals if
input logic requirements are satisfied.
The input signals x and y in the AND & OR gates may exist in one of four possible states: 00, 01, 10
and 11. These input signals are shown in Fig. 1.5 together with the corresponding output signal for
each gate.
The timing diagrams illustrate the idealized response of each gate to the 4-input signal combinations.
The horizontal axis of the timing diagram represents the time, and the vertical axis shows the voltage
level of the signal as it changes between the two possible voltage levels.
In reality, the transitions between logic values occur quickly, but not instantaneously.
The AND gate responds with a logic 1 output signal when both input signals are logic 1.
The OR gate responds with a logic 1 output signal if any input signal is logic 1.
The NOT gate is commonly referred to as an inverter. The reason for this name is apparent from the
signal response in the timing diagram, which shows that the output signal inverts the logic sense of
the input signal.
An AND gate with 3-inputs and an OR gate with 4-inputs are shown in Fig. 1.6.
The 3‐input AND gate responds with logic 1 output if all 3-inputs are logic 1. The output produces
logic 0 if any one of the inputs is logic 0.
The cost of the circuits that implement it is an important factor addressed by designers today—whether
they are computer engineers, electrical/electronic engineers, or computer scientists.
Finding simpler and cheaper, but equivalent, realizations of a circuit can reap huge payoffs in reducing
the overall cost of the design.
All the mathematical methods that are applied in simplifying circuits rely primarily on Boolean algebra.
Boolean algebra, like any other deductive mathematical system, may be defined with:
A set of elements and a set of operators with a finite count, and
A number of unproved axioms or postulates, basic mathematical rules, formulas, theorems etc.
SET:
A set of elements is any collection of objects, usually having a common property. I.e., If S is a set, and
x and y are certain objects, then the notation x ∈ S means that x is a member of the set S and y ∉ S
means that y is not an element of S.
OPERATOR DEFINITION W.R.T SET: A binary operator defined on a set S of elements is a rule that
assigns, to each pair of elements from/belonging to S, which yields a unique element as a result from
S.
POSTULATES/AXIOMS/PROPERTIES OF ALGEBRA:
The postulates of a mathematical system form the unproved basic assumptions from which it is
possible to deduce the rules, theorems, laws and properties of the system, which can be used in
simplification process.
The most common postulates used to formulate various algebraic structures are as follows:
For example, the set of natural numbers N = {1, 2, 3, 4 ….} is closed with respect to the binary
operator + by the rules of arithmetic addition, since, for any a, b ∈ N, there is a unique c ∈ N such
that a + b = c.
The set of natural numbers is not closed with respect to the binary operator - by the rules of
arithmetic subtraction, because 2 - 3 = -1 and 2, 3 ∈ N, but (-1) ∉ N.
Example: The element 0 is an identity element with respect to the binary operator + on the set of
integers I = {… -3, -2, -1, 0, 1, 2, 3, …}, since
(x + 0) = (0 + x) = x for any x ∈ I
Example: In the set of integers, I, and the operator +, with e = 0, the inverse of an element a is (-a),
since
a + (-a) = 0
A 2‐valued Boolean algebra is a mathematical model/technique having a set of two elements, 1 and 0,
two binary operators (. and +) with rules equivalent to the “AND” and “OR” operations, and a
complement operator equivalent to the NOT operator and various postulates, formulas, theorems, rules
etc. for evaluating the elements of the 2-valued set.
The rules for 2-binary operators (. and +) in two‐valued Boolean algebra consisting a set of two
elements, B = {0, 1}, is as shown in the following operator tables:
CLOSURE PROPERTY: It is clear that structure is closed with respect to the 2 operators, since the
result of each operation is either 1 or 0 and 1, 0 ∈ B.
COMMUTATIVE PROPERTY:
From the tables, we see that
(a) (x + 0)= (0 + x ) = x (0 + 1) = (1 + 0) = 1 and (1 . 0) = (0 . 1) = 0 which proves the commutative
nature of it.
DISTRIBUTIVE PROPERTY:
From the tables below, we see that the distributive property of ‘.’ over ‘+’
x . (y + z) = (x . y) + (x . z)
HUNTINGTON’S PROPERTY-6:
Postulate 6 is satisfied because the 2‐valued Boolean algebra has two elements, 1 and 0,
with 1 ≠ 0.
Theorem-3
(x’)’ = x -
(INVOLUTION)
Theorem-4
(ASSOCIATIVE x + (y + z) = (x + y) + z x . (y . z) = (x . y) . z
)
Theorem-5
(x + y)’ = x‘. y’ (x . y)’ = x’ + y’
(DEMORGAN)
Theorem-6
x + (x . y) = x x . (x + y) = x
(ABSORPTION)
LIST OF THEORMS OF 2-VALUED BOOLEAN ALGEBRA
THEOREM-1b: x . x = x
THEOREM-2a: x +1 = 1
THEOREM-6a: x + (x . y) = x
∈ ∉
B.
S.
V.