Module1-Chapter 1&2ADE-CO-final
Module1-Chapter 1&2ADE-CO-final
ORGANIZATION
Module 1
Faculty
Dr. Maya B S
Assistant Professor
Department of CS&E BIT
t0 t1 t2 t3 t4 t5 t6
1
Input A 0
1 Transitions
signals B 0
1
F=A•B 0 Basic
Gate
Assumption:
Output G=A+B 1
0 Zero time for
Signals
1 signals to
H=A’ 0 propagate
Through gates
(A+B)(A’B’)=A’B+AB’
2. The distributive law of + over ⋅ (i.e., x + ( y ⋅ z ) = ( x + y ) ⋅ ( x + z ) ) is valid for Boolean algebra, but not for
ordinary algebra.
3. Boolean algebra does not have additive or multiplicative inverses; therefore, there are no subtraction or division
operations.
4. Postulate 5 defines an operator called the complement that is not available in ordinary algebra.
5. Ordinary algebra deals with the real numbers, which constitute an infinite set of elements. Boolean algebra deals
with the as yet undefined set of elements, B, but in the two-valued Boolean algebra defined next (and of interest in our
subsequent use of that algebra), B is defined as a set with only two elements, 0 and 1.
Duality:
❖ The Huntington postulates were listed in pairs and designated by part (a) and part (b).
❖ One part may be obtained from the other if the binary operators and the identity elements are interchanged.
❖ This important property of Boolean algebra is called the duality principle and states that every algebraic
expression deducible from the postulates of Boolean algebra remains valid if the operators and identity
elements are interchanged.
❖ If the dual of an algebraic expression is desired, we simply interchange OR and AND operators and replace 1’s
by 0’s and 0’s by 1’s.
❖ Note that theorem 1(b) is the dual of theorem 1(a) and that each step of the proof in part (b) is the dual of its
counterpart in part (a).
❖ Any dual theorem can be similarly derived from the proof of its corresponding theorem.
Step1: From postulate 5, we have x + x ′ = 1 and x ⋅ x ′ = 0 , which together define the complement of x.
Step2 : The complement of x ′ is x and is also ( x ′ ) ′ . Therefore, since the complement is unique, we have
(x′)′=x.
Step3: The theorems involving two or three variables may be proven algebraically from the postulates and the
theorems that have already been proven.
Home Work :
❖ In truth tables, both sides of the relation are checked to see whether they yield identical results for all
possible combinations of the variables involved.
(1) parentheses,
(2) NOT,
(4) OR.
❖ In other words, expressions inside parentheses must be evaluated before all other operations. The next
operation that holds precedence is the complement, and then follows the AND and, finally, the OR.
❖ The left side of the expression is ( x + y ) ′ . Therefore, the expression inside the parentheses is evaluated
first and the result then complemented.
❖ The right side of the expression is x ′ y ′ , so the complement of x and the complement of y are both
evaluated first and the result is then ANDed.
1. Using the basic theorems and postulates of Boolean algebra, simplify the following Boolean
expression: F = x ′ y ′ z + x y z + x ′ y z + x y ′ z .
❖ A Boolean function described by an algebraic expression consists of binary variables, the constants 0 and 1, and the
logic operation symbols.
❖ For a given value of the binary variables, the function can be equal to either 1 or 0.
EX: consider the Boolean function F 1 = x + y ′ z
❖ The function F 1 is equal to 1 if x is equal to 1 or if both y ′ and z are equal to 1. F 1 is equal to 0 otherwise.
❖ A Boolean function can be represented in a truth table.
❖ The number of rows in the truth table is 2^n , where n is the number of variables in the function.
❖ The binary combinations for the truth table are obtained from the binary numbers by counting from 0 through 2^n − 1.
❖ Below Table shows the truth table for the function F 1 .
❖ There are eight possible binary combinations for assigning bits to the three variables x, y, and z.
❖ The column labeled F 1 contains either 0 or 1 for each of these combinations.
❖ The logic-circuit diagram (also called a schematic) for F 1 is shown in below figure .
X Y Z F1 F2
0 0 0 0 0
0 0 1 1 1
0 1 0 0 0
0 1 1 0 1
1 0 0 1 1
1 0 1 1 1
1 1 0 1 0
1 1 1 1 0
❖ Designers are motivated to reduce the complexity and number of gates because their effort can significantly
reduce the cost of a circuit, fig 2a shows complex circuit and fig 2b shows reduced circuit.
❖ Consider, for example, the following Boolean function and see the truth table F2 function.
❖ F2=x′y′z+x′yz+xy′
F2=x′y′z+x′yz+xy′
F2 =x′z(y′+y)+xy′
F2 =x′z+xy′
❖ The function is reduced to only two terms and can be implemented with gates as shown in Fig. 2.2(b) .
❖ It is obvious that the circuit in (b) is simpler than the one in (a), yet both implement the same function.
❖ Using truth table, it is possible to verify that the two expressions are equivalent.
❖ In general, there are many equivalent representations of a logic function.
❖ Finding the most economic representation of the logic is an important design task.
1. x ( x ′ + y )
2. x + x ′ y
3. (x + y ) ( x + y ′)
4. x y + x ′ z + y z
5. ( x + y ) ( x ′ + z ) ( y + z )
1. x ( x ′ + y ) = x x ′ + x y = 0 + x y = x y.
2. x + x ′ y = ( x + x ′ ) ( x + y ) = 1 ( x + y ) = x +y.
3. ( x + y ) ( x + y ′ ) = x + x y + x y ′ + y y ′ = x ( 1 + y + y ′ ) = x.
4. x y + x ′ z + y z = x y + x ′ z + y z ( x + x ′ ) = x y+ x ′ z + x y z + x ′ y z = x y ( 1 + z ) + x ′ z ( 1 +y )
=x y+x′z.
5. ( x + y ) ( x ′ + z ) ( y + z ) = (y+xz)(x ′ +z )
= x ′y+yz+xz x ′+xz
= x ′ y+yz+xz
= x ′ y+x x ′+ yz+xz
= x ′ (y+x)+z(y+x)
=( x + y ) ( x ′ + z )
Dr. Maya B S, Assistant Professor, CSE, BIT 42
Complement of a Function
❖ The complement of a function F is F ′ and is obtained from an interchange of 0’s for 1’s and 1’s for 0’s in the
value of F.
❖ The complement of a function may be derived algebraically through DeMorgan’s theorems, listed in Table
2.1 for two variables. (Refer Basic Theorem topic ,slide no 24)
❖ The three-variable form of the first DeMorgan’s theorem is derived as follows, from postulates and theorems
(A+B+C+D+…+F)′=A′B′C′D′…F′
(ABCD…F)′=A′+B′+C′+D′+…+F′
❖ The generalized form of DeMorgan’s theorems states that the complement of a function is obtained by
interchanging AND and OR operators and complementing each literal.
Method1: By applying DeMorgan’s theorems as many times as necessary, the complements are obtained as
follows:
a) F 1 ′ = ( x ′ y z ′ + x ′ y ′ z ) ′
=(x′yz′)′(x′y′z)′
= ( x + y′ + z ) ( x + y + z ′ )
b) F 2 ′ = [ x ( y ′ z ′ + y z ) ] ′
=x′+(y′z′+yz)′
=x′+(y′z′)′(yz)′
= x′ + ( y + z ) ( y ′ + z ′ )
= x ′ + y z ′ +y ′ z
❖ A simpler procedure for deriving the complement of a function is to take the dual of the function and
complement each literal.
❖ This method follows from the generalized forms of DeMorgan’s theorems.
❖ Remember that the dual of a function is obtained from the interchange of AND and OR operators and 1’s and
0’s.
Dr. Maya B S, Assistant Professor, CSE, BIT 46
Find the complement of the functions F 1 and F 2 by taking their duals and complementing each literal.
1. F 1 = x ′ y z ′ + x ′ y ′ z .
Answer: Method 2:
Step1:The dual of F 1 is ( x ′ + y + z ′ ) ( x ′ + y ′ + z )
2. F 2 = x ( y ′ z ′ + y z ) .
Answer:
Step1: The dual of F 2 is x + ( y ′ + z ′ ) ( y + z ) .
F=(x′y+xy′)′
X Y F
=(x′y)′(xy′)′
=(x+y′)(x′+y) 0 0 1
=xx′+xy+y′x′+yy′ 0 1 0
=xy+x′y′ 1 0 0
1 1 1
Answer: F′ = (A ′ B C ′ + A ′ B ′ C ) ′
= (A ′ B C ′) ′ . (A ′ B ′ C ) ′
=( A+B ′ +C). (A+B+C ′)
=AA+AB+AC ′+B ′A+ BB ′ +B ′C ′+CA+CB+ CC ′
= A+AB+AC ′+B ′A+ B ′C ′+CA+CB
F′=A+BC+B′C′
❖ Factors to be weighed in considering the construction of other types of logic gates are
(1) the feasibility and economy of producing the gate with physical components,
(2) The possibility of extending the gate to more than two inputs,
(3) the basic properties of the binary operator, such as commutativity and associativity, and
(4) the ability of the gate to implement Boolean functions alone or in conjunction with other gates.
❖ Each gate has one or two binary input variables, designated by x and y, and one binary output variable, designated
by F.
❖ The inverter circuit inverts the logic sense of a binary variable, producing the NOT, or complement, function.
❖ The small circle in the output of the graphic symbol of an inverter (referred to as a bubble) designates the logic
complement.
❖ A buffer produces the transfer function, but does not produce a logic operation, since the binary value of the
output is equal to the binary value of the input.
❖ This circuit is used for power amplification of the signal and is equivalent to two inverters connected in cascade.
Note:1. The symbol ∧ is also used to indicate the exclusive-OR operator, e.g., x ∧ y .
2. We are using operator ( ↓ ) , to represent NOR ( x + y ) ′ = x ↓ y =NOR= Not-OR
3. We are using operator (↑) , to represent NAND ( x y ) ′= x ↑ y = NAND= Not-AND
Dr. Maya B S, Assistant Professor, CSE, BIT 54
Extension to Multiple Inputs
❖ The gates shown in above Fig. except for the inverter and buffer—can be extended to have more than two
inputs.
❖ A gate can be extended to have multiple inputs if the binary operation it represents is commutative and
associative.
❖ The AND and OR operations, defined in Boolean algebra, possess these two properties.
❖ The NAND and NOR functions are commutative, and their gates can be extended to have more than two
inputs, provided that the definition of the operation is modified slightly.
❖ The difficulty is that the NAND and NOR operators are not associative (i.e., ( x ↓ y ) ↓ z ≠ x ↓ ( y ↓ z ) ), as
(x↓y)↓z=[(x+y)′+z]′
=(x+y)z′
=xz′+yz′
x ↓ ( y↓ z ) = [ x + ( y + z ) ′ ] ′
=x′(y+z)
=x′y+x′z
To overcome this difficulty, we define the multiple NOR (or NAND) gate as a complemented OR (or AND) gate.
Thus, by definition, we have a) x ↓ y ↓ z = ( x + y + z ) ′
b) x ↑ y ↑ z = ( x y z ) ′
In writing cascaded NOR and NAND operations, one must use the correct parentheses to signify the proper sequence
of the gates. To demonstrate this principle, consider the circuit of Fig. (c) .
❖The truth table in (c) clearly indicates that the output F is equal to 1 if only one input is equal to 1 or if all three
inputs are equal to 1 (i.e., when the total number of 1’s in the input variables is odd).
❖Since two signal values are assigned to two logic values, there exist two different assignments of signal level to
logic value, as shown in Fig. 2.9 .
❖The higher signal level is designated by H and the lower signal level by L.
❖The truth table of Fig. 2.10(c) assumes a positive logic assignment, with H = 1 and L = 0.
❖This truth table is the same as the one for the AND operation.
❖The graphic symbol for a positive logic AND gate is shown in Fig. 2.10(d) .
❖Now consider the negative logic assignment for the same physical gate with L = 1 and H = 0. The result is the truth
table of Fig. 2.10(e) . table represents the OR operation, even though the entries are reversed.
❖The graphic symbol for the negative-logic OR gate is shown in Fig. 2.10(f) .
❖The small triangles in the inputs and output designate a polarity indicator, the presence of which along a terminal
signifies that negative logic is assumed for the signal.
❖Thus, the same physical gate can operate either as a positive-logic AND gate or as a negative-logic OR gate.
Dr. Maya B S, Assistant Professor, CSE, BIT 60
❖The conversion from positive logic to negative logic and vice versa is essentially an operation that changes 1’s to 0’s
and 0’s to 1’s in both the inputs and the output of a gate.
❖Since this operation produces the dual of a function, the change of all terminals from one polarity to the other results
in taking the dual of the function. The upshot is that all AND operations are converted to OR operations (or
graphic symbols) and vice versa.
0 0 0 1 1 1
0 1 0 1 0 1
1 0 0 0 1 1
1 1 1 0 0 0
Dr. Maya B S, Assistant Professor, CSE, BIT 63
Positive NAND →Negative NOR