Boolean Algebra CHAPTER 15

Size: px
Start display at page:

Download "Boolean Algebra CHAPTER 15"

Transcription

1 CHAPTER 15 Boolean Algebra 15.1 INTRODUCTION Both sets and propositions satisfy similar laws, which are listed in Tables 1-1 and 4-1 (in Chapters 1 and 4, respectively). These laws are used to define an abstract mathematical structure called a Boolean algebra, which is named after the mathematician George Boole ( ) BASIC DEFINITIONS Let B be a nonempty set with two binary operations + and, a unary operation, and two distinct elements 0 and 1. Then B is called a Boolean algebra if the following axioms hold where a, b, c are any elements in B: [B 1 ] Commutative laws: (1a) a + b = b + a (1b) a b = b a [B 2 ] Distributive laws: (2a) a + (b c) = (a + b) (a + c) (2b) a (b + c) = (a b) + (a c) [B 3 ] Identity laws: (3a) a + 0 = a (3b) a 1 = a [B 4 ] Complement laws: (4a) a + a = 1 (4b) a a = 0 We will sometimes designate a Boolean algebra by B,+,,, 0, 1 when we want to emphasize its six parts. We say 0 is the zero element, l, is the unit element, and a is the complement of a. We will usually drop the symbol and use juxtaposition instead. Then (2b) is written a(b + c) = ab + ac which is the familiar algebraic identity of rings and fields. However, (2a) becomes a + bc = (a + b)(a + c), which is certainly not a usual identity in algebra. The operations +,, and are called sum, product, and complement, respectively. We adopt the usual convention that, unless we are guided by parentheses, has precedence over, and has precedence over +. For example, a + b c means a + (b c) and not (a + b) c; a b means a (b ) and not (a b) Of course when a + b c is written a + bc then the meaning is clear. EXAMPLE 15.1 (a) Let B ={0, 1}, the set of bits (binary digits), with the binary operations of + and and the unary operation defined by Fig Then B is a Boolean algebra. (Note simply changes the bit, i.e., 1 = 0 and 0 = 1.) Copyright 2007, 1997, 1976 by The McGraw-Hill Companies, Inc. Click here for terms of use. 368

2 CHAP. 15] BOOLEAN ALGEBRA 369 Fig (b) Let B n = B B B (n factors) where the operations of +,, and are defined componentwise using Fig For notational convenience, we write the elements of B n as n-bit sequences without commas, e.g., x = and y = belong to B n. Hence x + y = , x y = , x = Then B n is a Boolean algebra. Here 0 = is the zero element, and 1 = is the unit element. We note that B n has 2 n elements. (c) Let D 70 ={1, 2, 5, 7, 10, 14, 35, 70}, the divisors of 70. Define +,, and on D 70 by a + b = lcm(a, b), a b = gcd(a, b), a = 70 a Then D 70 is a Boolean algebra with 1 the zero element and 70 the unit element. (d) Let C be a collection of sets closed under the set operations of union, intersection, and complement. Then C is a Boolean algebra with the empty set as the zero element and the universal set U as the unit element. Subalgebras, Isomorphic Boolean Algebras Suppose C is a nonempty subset of a Boolean algebra B. We say C is a subalgebra of B if C itself is a Boolean algebra (with respect to the operations of B). We note that C is a subalgebra of B if and only if C is closed under the three operations of B, i.e., +,, and. For example, {1, 2, 35, 70} is a subalgebra of D 70 in Example 15.1(c). Two Boolean algebras B and B are said to be isomorphic if there is a one-to-one correspondence f: B B which preserves the three operations, i.e., such that, for any elements, a, b in B, f(a+ b) = f(a)+ f(b), f(a b) = f(a) f(b) and f(a ) = f(a) 15.3 DUALITY The dual of any statement in a Boolean algebra B is the statement obtained by interchanging the operations + and, and interchanging their identity elements 0 and 1 in the original statement. For example, the dual of (1 + a) (b + 0) = b is (0 a) + (b 1) = b Observe the symmetry in the axioms of a Boolean algebra B. That is, the dual of the set of axioms of B is the same as the original set of axioms. Accordingly, the important principle of duality holds in B. Namely, Theorem 15.1 (Principle of Duality): The dual of any theorem in a Boolean algebra is also a theorem. In other words, if any statement is a consequence of the axioms of a Boolean algebra, then the dual is also a consequence of those axioms since the dual statement can be proven by using the dual of each step of the proof of the original statement.

3 370 BOOLEAN ALGEBRA [CHAP BASIC THEOREMS Using the axioms [B 1 ] through [B 4 ], we prove (Problem 15.5) the following theorem. Theorem 15.2: Let a, b, c be any elements in a Boolean algebra B. (i) (ii) (iii) (iv) Idempotent laws: (5a) a + a = a (5b) a a = a Boundedness laws: (6a) a + 1 = 1 (6b) a 0 = 0 Absorption laws: (7a) a + (a b) = a (7b) a (a + b) = a Associative laws: (8a) (a + b) + c = a + (b + c) (8b) (a b) c = a (b c) Theorem 15.2 and our axioms still do not contain all the properties of sets listed in Table 1-1. The next two theorems give us the remaining properties. Theorem 15.3: Let a be any element of a Boolean algebra B. (i) (Uniqueness of Complement) If a + x = 1 and a x = 0, then x = a. (ii) (Involution law) (a ) = a. (iii) (9a) 0 = 1. (9b) 1 = 0. Theorem 15.4 (DeMorgan s laws): (10a) (a + b) = a b. (10b) (a b) = a + b. We prove these theorems in Problems 15.6 and BOOLEAN ALGEBRAS AS LATTICES By Theorem 15.2 and axiom [B 1 ], every Boolean algebra B satisfies the associative, commutative, and absorption laws and hence is a lattice where + and are the join and meet operations, respectively. With respect to this lattice, a + 1 = 1 implies a 1 and a 0 = 0 implies 0 a, for any element a B. Thus B is a bounded lattice. Furthermore, axioms [B 2 ] and [B 4 ] show that B is also distributive and complemented. Conversely, every bounded, distributive, and complemented lattice L satisfies the axioms [B 1 ] through [B 4 ]. Accordingly, we have the following Alternate Definition: A Boolean algebra B is a bounded, distributive and complemented lattice. Since a Boolean algebra B is a lattice, it has a natural partial ordering (and so its diagram can be drawn). Recall (Chapter 14) that we define a b when the equivalent conditions a + b = b and a b = a hold. Since we are in a Boolean algebra, we can actually say much more. Theorem 15.5: The following are equivalent in a Boolean algebra: (1) a + b = b, (2) a b = a, (3) a + b = 1, (4) a b = 0 Thus in a Boolean alegbra we can write a b whenever any of the above four conditions is known to be true. EXAMPLE 15.2 (a) Consider a Boolean algebra of sets. Then set A precedes set B if A is a subset of B. Theorem 15.4 states that if A B then the following conditions hold: (1) A B = B (2)A B = A (3)A c B = U (4) A B c =

4 CHAP. 15] BOOLEAN ALGEBRA 371 (b) Consider the Boolean algebra D 70. Then a precedes b if a divides b. In such a case, lcm(a, b) = b and gcd(a, b) = a. For example, let a = 2 and b = 14. Then the following conditions hold: (1) lcm(2, 14) = 14. (3) lcm(2, 14) = lcm(35, 14) = 70. (2) gcd(2, 14) = 2. (4) gcd(2, 14 ) = gcd(2, 5) = REPRESENTATION THEOREM Let B be a finite Boolean algebra. Recall (Section 14.10) that an element a in B is an atom if a immediately succeeds 0, that is if 0 a. Let A be the set of atoms of B and let P (A) be the Boolean algebra of all subsets of the set A of atoms. By Theorem 14.8, each x = 0inB can be expressed uniquely (except for order) as the sum ( join) of atoms, i.e., elements of A. Say, x = a 1 + a 2 + +a r is such a representation. Consider the function f: B P (A) defined by f(x)={a 1,a 2,...,a r } The mapping is well defined since the representation is unique. Theorem 15.6: The above mapping f: B P (A) is an isomorphism. Thus we see the intimate relationship between set theory and abstract Boolean algebras in the sense that every finite Boolean algebra is structurally the same as a Boolean algebra of sets. If a set A has n elements, then its power set P (A) has 2 n elements. Thus the above theorem gives us our next result. Corollary 15.7: A finite Boolean algebra has 2 n elements for some positive integer n. EXAMPLE 15.3 Consider the Boolean algebra D 70 ={1, 2, 5,...,70} whose diagram is given in Fig. 15-2(a). Note that A ={2, 5, 7} is the set of atoms of D 70. The following is the unique representation of each nonatom by atoms: 10 = 2 5, 14 = 2 7, 35 = 5 7, 70 = Figure 15-2(b) gives the diagram of the Boolean algebra of the power set P (A) of the set A of atoms. Observe that the two diagrams are structurally the same. Fig SUM-OF-PRODUCTS FORM FOR SETS This section motivates the concept of the sum-of-products form in Boolean algebra by an example of set theory. Consider the Venn diagram in Fig of three sets A, B, and C. Observe that these sets partition the

5 372 BOOLEAN ALGEBRA [CHAP. 15 Fig rectangle (universal set) into eight numbered sets which can be represented as follows: (1) A B C (3) A B c C (5) A B c C c (7) A c B c C (2) A B C c (4) A c B C (6) A c B C c (8) A c B c C c Each of these eight sets is of the form A B C where: A = A or A c, B = B or B c, C = C or C c Consider any nonempty set expression E involving the sets A, B, and C, say, E =[(A B c ) c (A c C c )] [(B c C) c (A C c )] Then E will represent some area in Fig and hence will uniquely equal the union of one or more of the eight sets. Suppose we now interpret a union as a sum and an intersection as a product. Then the above eight sets are products, and the unique representation of E will be a sum (union) of products. This unique representation of E is the same as the complete sum-of-products expansion in Boolean algebras which we discuss below SUM-OF-PRODUCTS FORM FOR BOOLEAN ALGEBRAS Consider a set of variables (or letters or symbols), say x 1,x 2,...,x n.aboolean expression E in these variables, sometimes written E(x 1,...,x n ), is any variable or any expression built up from the variables using the Boolean operations +,, and. (Naturally, the expression E must be well-formed, that is, where + and are used as binary operations, and is used as a unary operation.) For example, E 1 = (x + y z) + (xyz + x y) and E 2 = ((xy z + y) + x z) are Boolean expressions in x, y, and z. A literal is a variable or complemented variable, such as x, x, y, y, and so on. A fundamental product is a literal or a product of two or more literals in which no two literals involve the same variable. Thus xz, xy z, x, y, x yz are fundamental products, but xyx z and xyzy are not. Note that any product of literals can be reduced to either 0 or a fundamental product, e.g., xyx z = 0 since xx = 0 (complement law), and xyzy = xyz since yy = y (idempotent law). A fundamental product P 1 is said to be contained in (or included in) another fundamental product P 2 if the literals of P 1 are also literals of P 2. For example, x z is contained in x yz, but x z is not contained in xy z since x is not a literal of xy z. Observe that if P 1 is contained in P 2, say P 2 = P 1 Q, then, by the absorption law, Thus, for instance, x z + x yz = x z. P 1 + P 2 = P 1 + P 1 Q = P 1

6 CHAP. 15] BOOLEAN ALGEBRA 373 Definition 15.1: A Boolean expression E is called a sum-of-products expression if E is a fundamental product or the sum of two or more fundamental products none of which is contained in another. Definition 15.2: Let E be any Boolean expression. A sum-of-products form of E is an equivalent Boolean sum-of-products expression. EXAMPLE 15.4 Consider the expressions E 1 = xz + y z + xyz and E 2 = xz + x yz + xy z Although the first expression E 1 is a sum of products, it is not a sum-of-products expression. Specifically, the product xz is contained in the product xyz. However, by the absorption law, E 1 can be expressed as E 1 = xz + y z + xyz = xz + xyz + y z = xz + y z This yields a sum-of-products form for E 1. The second expression E 2 is already a sum-of-products expression. Algorithm for Finding Sum-of-Products Forms Figure 15-4 gives a four-step algorithm which uses the Boolean algebra laws to transform any Boolean expression into an equivalent sum-of-products expression. Fig EXAMPLE 15.5 Suppose Algorithm 15.1 is applied to the following Boolean expression: E = ((xy) z) ((x + z)(y + z )) Step 1. Using DeMorgan s laws and involution, we obtain E = (xy + z )((x + z) + (y + z ) ) = (xy + z )(xz + yz) E now consists only of sums and products of literals. Step 2. Using the distributive laws, we obtain E = xyxz + xyyz + xz z + yzz E now is a sum of products. Step 3. Using the commutative, idempotent, and complement laws, we obtain E = xyz + xyz + xz + 0 Each term in E is a fundamental product or 0.

7 374 BOOLEAN ALGEBRA [CHAP. 15 Step 4. The product xz is contained in xyz ; hence, by the absorption law, xz + (xz y) = xz Thus we may delete xyz from the sum. Also, by the identity law for 0, we may delete 0 from the sum. Accordingly, E = xyz + xz E is now represented by a sum-of-products expression. Complete Sum-of-Products Forms A Boolean expression E = E(x 1,x 2,...,x n ) is said to be a complete sum-of-products expression if E is a sum-of-products expression where each product P involves all the n variables. Such a fundamental product P which involves all the variables is called a minterm, and there is a maximum of 2 n such products for n variables. The following theorem applies. Theorem 15.8: Every nonzero Boolean expression E = E(x 1,x 2,...,x n ) is equivalent to a complete sum-of-products expression and such a representation is unique. The above unique representation of E is called the complete sum-of-products form of E. Algorithm 15-1 in Fig tells us how to transform E into a sum-of-products form. Figure 15-5 contains an algorithm which transforms a sum-of-products form into a complete sum-of-products form. Fig EXAMPLE 15.6 Express E(x,y,z) = x(y z) into its complete sum-of-products form. (a) Apply Algorithm 15.1 to E so E is represented by a sum-of-products expression: (b) Now apply Algorithm 15.2 to obtain: E = x(y z) = x(y + z ) = xy + xz E = xy(z + z ) + xz (y + y ) = xyz + xyz + xyz + xy z = xyz + xyz + xy z Now E is reprsented by its complete sum-of-products form. Warning: The terminology in this section has not been standardized. The sum-of-products form for a Boolean expression E is also called the disjunctive normal form or DNF of E. The complete sum-of-products form for E is also called the full disjunctive normal form, or the disjunctive canonical form, or the minterm canonical form of E.

8 CHAP. 15] BOOLEAN ALGEBRA MINIMAL BOOLEAN EXPRESSIONS, PRIME IMPLICANTS There are many ways of representing the same Boolean expression E. Here we define and investigate a minimal sum-of-products form for E. We must also define and investigate prime implicants of E since the minimal sum-of-products involves such prime implicants. Other minimal forms exist, but their investigation lies beyond the scope of this text. Minimal Sum-of-Products Consider a Boolean sum-of-products expression E. Let E L denote the number of literals in E (counted according to multiplicity), and let E S denote the number of summands in E. For instance, suppose E = xyz + x y t + xy z t + x yzt Then E L = = 14 and E S = 4. Suppose E and F are equivalent Boolean sum-of-products expressions. We say E is simpler than F if: (i) E L <F L and E S F L, or (ii) E L F L and E S <F L We say E is minimal if there is no equivalent sum-of-products expression which is simpler than E. We note that there can be more than one equivalent minimal sum-of-products expressions. Prime Implicants A fundamental product P is called a prime implicant of a Boolean expression E if P + E = E but no other fundamental product contained in P has this property. For instance, suppose One can show (Problem 15.15) that: E = xy + xyz + x yz xz + E = E but x + E = E and z + E = E Thus xz is a prime implicant of E. The following theorem applies. Theorem 15.9: A minimal sum-of-products form for a Boolean expression E is a sum of prime implicants of E. The following subsections give a method for finding the prime implicants of E based on the notion of the consensus of fundamental products. This method can then be used to find a minimal sum-of-products form for E. Section gives a geometric method for finding such prime implicants. Consensus of Fundamental Products Let P 1 and P 2 be fundamental products such that exactly one variable, say x k, appears uncomplemented in one of P 1 and P 2 and complemented in the other. Then the consensus of P 1 and P 2 is the product (without repetitions) of the literals of P 1 and the literals of P 2 after x k and x k are deleted. (We do not define the consensus of P 1 = x and P 2 = x.) The following lemma (proved in Problem 15.19) applies. Lemma 15.10: Suppose Q is the consensus of P 1 and P 2. Then P 1 + P 2 + Q = P 1 + P 2. EXAMPLE 15.7 Find the consensus Q of P 1 and P 2 where: (a) P 1 = xyz s and P 2 = xy t. Delete y and y and then multiply the literals of P 1 and P 2 (without repetition) to obtain Q = xz st.

9 376 BOOLEAN ALGEBRA [CHAP. 15 (b) P 1 = xy and P 2 = y. Deleting y and y yields Q = x. (c) P 1 = x yz and P 2 = x yt. No variable appears uncomplemented in one of the products and complemented in the other. Hence P 1 and P 2 have no consensus. (d) P 1 = x yz and P 2 = xyz. Each of x and z appear complemented in one of the products and uncomplemented in the other. Hence P 1 and P 2 have no consensus. Consensus Method for Finding Prime Implicants Figure 15-6 contains an algorithm, called the consensus method, which is used to find the prime implicants of a Boolean expression E. The following theorem gives the basic property of this algorithm. Theorem 15.11: The consensus method will eventually stop, and then E will be the sum of its prime implicants. Fig EXAMPLE 15.8 Let E = xyz + x z + xyz + x y z + x yz. Then: E = xyz + x z + xyz + x y z (x yz includes x z ) = xyz + x y + xyz + x y z + xy (consensus of xyz and xyz ) = x z + x y z + xy (xyz and xyz include xy) = x z + x y z + xy + x y (consensus of x z and x y z) = x z + xy + x y (x y z includes x y ) = x z + xy + x y + yz (consensus of x z and xy) Now neither step in the consensus method will change E. Thus E is the sum of its prime implicants, which appear in the last line, that is, x z, xy, x y, and yz. Finding a Minimal Sum-of-Products Form The consensus method (Algorithm 15.3) is used to express a Boolean expression E as a sum of all its prime implicants. Figure 15-7 contains an algorithm which uses such a sum to find a minimal sum-of-products form for E.

10 CHAP. 15] BOOLEAN ALGEBRA 377 Fig EXAMPLE 15.9 We apply Algorithm 15.4 to the following expression E which (by Example 15.8) is now expressed as the sum of all its prime implicants: E = x z + xy + x y + yz Step 1. Express each prime implicant of E as a complete sum-of-products to obtain: x z = x z (y + y ) = x yz + x y z xy = xy(z + z ) = xyz + xyz x y = x y (z + z ) = x y z + x y z yz = yz (x + x ) = xyz + x yz Step 2. The summands of x z are x yz and x y z which appear among the other summands. Thus delete x z to obtain E = xy + x y + yz The summands of no other prime implicant appear among the summands of the remaining prime implicants, and hence this is a minimal sum-of-products form for E. In other words, none of the remaining prime implicants is superfluous, that is, none can be deleted without changing E LOGIC GATES AND CIRCUITS Logic circuits (also called logic networks) are structures which are built up from certain elementary circuits called logic gates. Each logic circuit may be viewed as a machine L which contains one or more input devices and exactly one output device. Each input device in L sends a signal, specifically, a bit (binary digit), 0 or 1 to the circuit L, and L processes the set of bits to yield an output bit. Accordingly, an n-bit sequence may be assigned to each input device, and L processes the input sequences one bit at a time to produce an n-bit output sequence. First we define the logic gates, and then we investigate the logic circuits. Logic Gates There are three basic logic gates which are described below. We adopt the convention that the lines entering the gate symbol from the left are input lines and the single line on the right is the output line. (a) OR Gate: Figure 15-8(a) shows an OR gate with inputs A and B and output Y = A + B where addition is defined by the truth table in Fig. 15-8(b). Thus the output Y = 0 only when inputs A = 0 and B = 0. Such an OR gate may, have more than two inputs. Figure 15-8(c) shows an OR gate with four inputs, A, B, C, D, and output Y = A + B + C + D. The output Y = 0 if and only if all the inputs are 0.

11 378 BOOLEAN ALGEBRA [CHAP. 15 Fig Suppose, for instance, the input data for the OR gate in Fig (c) are the following 8-bit sequences: A = , B = , C = , The OR gate only yields 0 when all input bits are 0. This occurs only in the 2nd, 5th, and 7th positions (reading from left to right). Thus the output is the sequence Y = (b) AND Gate: Figure 15-9(a) shows an AND gate with inputs A and B and output Y = A B (or simply Y = AB) where multiplication is defined by the truth table in Fig. 15-9(b). Thus the output Y = 1 when inputs A = 1 and B = 1; otherwise Y = 0. Such anand gate may have more than two inputs. Figure 15-9(c) shows an AND gate with four inputs, A, B, C, D, and output Y = A B C D. The output Y = 1ifand only if all the inputs are 1. Suppose, for instance, the input data for the AND gate in Fig. 15-9(c) are the following 8-bit sequences: A = , B = , C = , D = The AND gate only yields 1 when all input bits are 1. This occurs only in the 2nd, 3rd, and 7th positions. Thus the output is the sequence Y = Fig (c) NOT Gate: Figure 15-10(a) shows a NOT gate, also called an inverter, with input A and output Y = A where inversion, denoted by the prime, is defined by the truth table in Fig (b). The value of the output Y = A is the opposite of the input A; that is, A = 1 when A = 0 and A = 0 when A = 1. We emphasize that a NOT gate can have only one input, whereas the OR andand gates may have two or more inputs. Fig

12 CHAP. 15] BOOLEAN ALGEBRA 379 Suppose, for instance, a NOT gate is asked to process the following three sequences: A 1 = , A 2 = , A 3 = The NOT gate changes 0 to 1 and 1 to 0. Thus A 1 = , A 2 = , A 3 = are the three corresponding outputs. Logic Circuits A logic circuit L is a well-formed structure whose elementary components are the above OR, AND, and NOT gates. Figure is an example of a logic circuit with inputs A, B, C and output Y. A dot indicates a place where the input line splits so that its bit signal is sent in more than one direction. (Frequently, for notational convenience, we may omit the word from the interior of the gate symbol.) Working from left to right, we express Y in terms of the inputs A, B, C as follows. The output of the AND gate is A B, which is then negated to yield (A B). The output of the lower OR gate is A + C, which is then negated to yield (A + C). The output of the OR gate on the right, with inputs (A B) and (A + C), gives us our desired representation, that is, Y = (A B) + (A + C) Fig Logic Circuits as a Boolean Algebra Observe that the truth tables for the OR, AND, and NOT gates are respectively identical to the truth tables for the propositions p q (disjunction, p or q ), p q (conjunction, p and q ), and p (negation, not p ), which appear in Section 4.3. The only difference is that 1 and 0 are used instead of T and F. Thus the logic circuits satisfy the same laws as do propositions and hence they form a Boolean algebra. We state this result formally. Theorem 15.12: Logic circuits form a Boolean Algebra. Accordingly, all terms used with Boolean algebras, such as, complements, literals, fundamental products, minterms, sum-of-products, and complete sum-of-products, may also be used with our logic circuits. AND-OR Circuits The logic circuit L which corresponds to a Boolean sum-of-products expression is called an AND-OR circuit. Such a circuit L has several inputs, where: (1) Some of the inputs or their complements are fed into each AND gate. (2) The outputs of all the AND gates are fed into a single OR gate. (3) The output of the OR gate is the output for the circuit L. The following illustrates this type of a logic circuit.

13 380 BOOLEAN ALGEBRA [CHAP. 15 EXAMPLE Figure is a typical AND-OR circuit with three inputs, A, B, C and output Y. We can easily express Y as a Boolean expression in the inputs A, B, C as follows. First we find the output of each AND gate: (a) The inputs of the first AND gate are A, B, C; hence A B C is the output. (b) The inputs of the second AND gate are A, B, C; hence A B C is the output. (c) The inputs of the third AND gate are A and B; hence A B is the output. Then the sum of the outputs of the AND gates is the output of the OR gate, which is the output Y of the circuit. Thus: Y = A B C + A B C + A B Fig NAND and NOR Gates There are two additional gates which are equivalent to combinations of the above basic gates. (a) A NAND gate, pictured in Fig (a), is equivalent to an AND gate followed by a NOT gate. (b) A NOR gate, pictured in Fig (b), is equivalent to an OR gate followed by a NOT gate. The truth tables for these gates (using two inputs A and B) appear in Fig (c). The NAND and NOR gates can actually have two or more inputs just like the corresponding AND and OR gates. Furthermore, the output of a NAND gate is 0 if and only if all the inputs are 1, and the output of a NOR gate is 1 if and only if all the inputs are 0. Fig Observe that the only difference between the AND and NAND gates between the OR and NOR gates is that the NAND and NOR gates are each followed by a circle. Some texts also use such a small circle to indicate a complement before a gate. For example, the Boolean expressions corresponding to two logic circuits in Fig are as follows: (a) Y = (A B), (b) Y = (A + B + C)

14 CHAP. 15] BOOLEAN ALGEBRA 381 Fig TRUTH TABLES, BOOLEAN FUNCTIONS Consider a logic circuit L with n = 3 input devices A, B, C and output Y, say Y = A B C + A B C + A B Each assignment of a set of three bits to the inputs A, B, C yields an output bit for Y. All together there are 2 n = 2 3 = 8 possible ways to assign bits to the inputs as follows: 000, 001, 010, 011, 100, 101, 110, 111 The assumption is that the sequence of first bits is assigned to A, the sequence of second bits to B, and the sequence of third bits to C. Thus the above set of inputs may be rewritten in the form A = , B = , C = We emphasize that these three 2 n = 8-bit sequences contain the eight possible combinations of the input bits. The truth table T = T (L) of the above circuit L consists of the output sequence Y that corresponds to the input sequences A, B, C. This truth table T may be expressed using fractional or relational notation, that is, T may be written in the form T(A,B,C)= Y or T (L) =[A, B, C; Y ] This form for the truth table for L is essentially the same as the truth table for a proposition discussed in Section 4.4. The only difference is that here the values for A, B, C, and Y are written horizontally, whereas in Section 4.4 they are written vertically. Consider a logic circuit L with n input devices.there are many ways to form n input sequences A 1,A 2,...,A n so that they contain the 2 n different possible combinations of the input bits. (Note that each sequence must contain 2 n bits.) One assignment scheme is as follows: A 1 : Assign 2 n 1 bits which are 0 s followed by 2 n 1 bits which are 1 s. A 2 : Repeatedly assign 2 n 2 bits which are 0 s followed by 2 n 2 bits which are 1 s. A 3 : Repeatedly assign 2 n 3 bits which are 0 s followed by 2 n 3 bits which are 1 s. And so on. The sequences obtained in this way will be called special sequences. Replacing 0 by 1 and 1 by 0 in the special sequences yields the complements of the special sequences. Remark: Assuming the input are the special sequences, we frequently do not need to distinguish between the truth table and the output Y itself. T (L) =[A 1,A 2,...,A n ;Y ]

15 382 BOOLEAN ALGEBRA [CHAP. 15 EXAMPLE (a) Suppose a logic circuit L has n = 4 input devices A, B, C, D. The 2 n = 2 4 = 16-bit special sequences for A, B, C, D follow: That is: A = , C = B = , D = (1) A begins with eight 0 s followed by eight 1 s. (Here 2 n 1 = 2 3 = 8.) (2) B begins with four 0 s followed by four 1 s, and so on. (Here 2 n 2 = 2 2 = 4.) (3) C begins with two 0 s followed by two 1 s, and so on. (Here 2 n 3 = 2 1 = 2.) (4) D begins with one 0 followed by one 1, and so on. (Here 2 n 4 = 2 0 = 1.) (b) Suppose a logic circuit L has n = 3 input devices A, B, C. The 2 n = 2 3 = 8-bit special sequences for A, B, C and their complements A, B, C are as follows: A = , B = , C = A = , B = , C = Figure contains a three-step algorithm for finding the truth table for a logic circuit L where the output Y is given by a Boolean sum-of-products expression in the inputs. Fig EXAMPLE Algorithm 15.5 is used to find the truth table T = T (L) of the logic circuit L in Fig or, equivalently, of the above Boolean sum-of-products expression Y = A B C + A B C + A B (1) The special sequences and their complements appear in Example 15.14(b). (2) The products are as follows: A B C = , A B C = , A B = (3) The sum is Y = Accordingly, T( , , ) = or simply T (L) = where we assume the input consists of the special sequences.

3. Abstract Boolean Algebras

3. Abstract Boolean Algebras 3. ABSTRACT BOOLEAN ALGEBRAS 123 3. Abstract Boolean Algebras 3.1. Abstract Boolean Algebra. Definition 3.1.1. An abstract Boolean algebra is defined as a set B containing two distinct elements 0 and 1,

More information

Combinational Logic Design Principles

Combinational Logic Design Principles Combinational Logic Design Principles Switching algebra Doru Todinca Department of Computers Politehnica University of Timisoara Outline Introduction Switching algebra Axioms of switching algebra Theorems

More information

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman CS 121 Digital Logic Design Chapter 2 Teacher Assistant Hanin Abdulrahman 1 2 Outline 2.2 Basic Definitions 2.3 Axiomatic Definition of Boolean Algebra. 2.4 Basic Theorems and Properties 2.5 Boolean Functions

More information

Chapter 2: Switching Algebra and Logic Circuits

Chapter 2: Switching Algebra and Logic Circuits Chapter 2: Switching Algebra and Logic Circuits Formal Foundation of Digital Design In 1854 George Boole published An investigation into the Laws of Thoughts Algebraic system with two values 0 and 1 Used

More information

CHAPTER 12 Boolean Algebra

CHAPTER 12 Boolean Algebra 318 Chapter 12 Boolean Algebra CHAPTER 12 Boolean Algebra SECTION 12.1 Boolean Functions 2. a) Since x 1 = x, the only solution is x = 0. b) Since 0 + 0 = 0 and 1 + 1 = 1, the only solution is x = 0. c)

More information

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

Binary Logic and Gates. Our objective is to learn how to design digital circuits. Binary Logic and Gates Introduction Our objective is to learn how to design digital circuits. These circuits use binary systems. Signals in such binary systems may represent only one of 2 possible values

More information

Digital Circuit And Logic Design I. Lecture 3

Digital Circuit And Logic Design I. Lecture 3 Digital Circuit And Logic Design I Lecture 3 Outline Combinational Logic Design Principles (). Introduction 2. Switching algebra 3. Combinational-circuit analysis 4. Combinational-circuit synthesis Panupong

More information

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA 3 Boolean Algebra 3.1 BOOLEAN ALGEBRA In 1854, George Boole introduced the following formalism which eventually became Boolean Algebra. Definition. An algebraic system consisting of a set B of elements

More information

The least element is 0000, the greatest element is 1111.

The least element is 0000, the greatest element is 1111. Note: this worksheet has been modified to emphasize the Boolean algebra content. Some problems have been deleted.; this, for instance, is why the first problem is #5 rather than #1. 5. Let A be the set

More information

Logic Design. Chapter 2: Introduction to Logic Circuits

Logic Design. Chapter 2: Introduction to Logic Circuits Logic Design Chapter 2: Introduction to Logic Circuits Introduction Logic circuits perform operation on digital signal Digital signal: signal values are restricted to a few discrete values Binary logic

More information

Binary Logic and Gates

Binary Logic and Gates 1 COE 202- Digital Logic Binary Logic and Gates Dr. Abdulaziz Y. Barnawi COE Department KFUPM 2 Outline Introduction Boolean Algebra Elements of Boolean Algebra (Binary Logic) Logic Operations & Logic

More information

Logic Synthesis and Verification

Logic Synthesis and Verification Logic Synthesis and Verification Boolean Algebra Jie-Hong Roland Jiang 江介宏 Department of Electrical Engineering National Taiwan University Fall 2014 1 2 Boolean Algebra Reading F. M. Brown. Boolean Reasoning:

More information

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part 1 Gate Circuits and Boolean Equations Chapter 2 - Part 1 2 Chapter 2 - Part 1 3 Chapter 2 - Part 1 4 Chapter 2 - Part

More information

Chapter 2. Boolean Algebra and Logic Gates

Chapter 2. Boolean Algebra and Logic Gates Chapter 2 Boolean Algebra and Logic Gates Basic Definitions A binary operator defined on a set S of elements is a rule that assigns, to each pair of elements from S, a unique element from S. The most common

More information

CHAPTER 2 BOOLEAN ALGEBRA

CHAPTER 2 BOOLEAN ALGEBRA CHAPTER 2 BOOLEAN ALGEBRA This chapter in the book includes: Objectives Study Guide 2.1 Introduction 2.2 Basic Operations 2.3 Boolean Expressions and Truth Tables 2.4 Basic Theorems 2.5 Commutative, Associative,

More information

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra BOOLEAN ALGEBRA Introduction 1854: Logical algebra was published by George Boole known today as Boolean Algebra It s a convenient way and systematic way of expressing and analyzing the operation of logic

More information

Chapter 2: Boolean Algebra and Logic Gates

Chapter 2: Boolean Algebra and Logic Gates Chapter 2: Boolean Algebra and Logic Gates Mathematical methods that simplify binary logics or circuits rely primarily on Boolean algebra. Boolean algebra: a set of elements, a set of operators, and a

More information

BOOLEAN ALGEBRA 1. DEFINITION

BOOLEAN ALGEBRA 1. DEFINITION 9 BOOLEAN ALGEBRA 1. DEFINITION A Boolean algebra is an algebraic structure which consists of a non empty set B, equipped with two binary operations (denoted by and or + and or * and o), one unary operation

More information

Boolean Algebra & Logic Gates. By : Ali Mustafa

Boolean Algebra & Logic Gates. By : Ali Mustafa Boolean Algebra & Logic Gates By : Ali Mustafa Digital Logic Gates There are three fundamental logical operations, from which all other functions, no matter how complex, can be derived. These Basic functions

More information

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2 Boolean Algebra and Logic Gates Chapter 2 Boolean Algebra and Logic Gates The most common postulates used to formulate various algebraic structures are: 1. Closure. N={1,2,3,4 }, for any a,b N we obtain a unique c N by the operation

More information

EC-121 Digital Logic Design

EC-121 Digital Logic Design EC-121 Digital Logic Design Lecture 2 [Updated on 02-04-18] Boolean Algebra and Logic Gates Dr Hashim Ali Spring 2018 Department of Computer Science and Engineering HITEC University Taxila!1 Overview What

More information

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) September 5, 2002 John Wawrzynek Fall 2002 EECS150 Lec4-bool1 Page 1, 9/5 9am Outline Review of

More information

Number System conversions

Number System conversions Number System conversions Number Systems The system used to count discrete units is called number system. There are four systems of arithmetic which are often used in digital electronics. Decimal Number

More information

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) January 30, 2003 John Wawrzynek Outline Review of three representations for combinational logic:

More information

Chap 2. Combinational Logic Circuits

Chap 2. Combinational Logic Circuits Overview 2 Chap 2. Combinational Logic Circuits Spring 24 Part Gate Circuits and Boolean Equations Binary Logic and Gates Boolean Algebra Standard Forms Part 2 Circuit Optimization Two-Level Optimization

More information

Combinational Logic Fundamentals

Combinational Logic Fundamentals Topic 3: Combinational Logic Fundamentals In this note we will study combinational logic, which is the part of digital logic that uses Boolean algebra. All the concepts presented in combinational logic

More information

Boolean Algebra and Logic Gates

Boolean Algebra and Logic Gates Boolean Algebra and Logic Gates ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall, 2017 ldvan@cs.nctu.edu.tw http://www.cs.nctu.edu.tw/~ldvan/ Outlines Basic

More information

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA 1 Learning Objectives Understand the basic operations and laws of Boolean algebra. Relate these operations and laws to circuits composed of AND gates, OR gates, INVERTERS

More information

MC9211 Computer Organization

MC9211 Computer Organization MC92 Computer Organization Unit : Digital Fundamentals Lesson2 : Boolean Algebra and Simplification (KSB) (MCA) (29-2/ODD) (29 - / A&B) Coverage Lesson2 Introduces the basic postulates of Boolean Algebra

More information

Unit 2 Boolean Algebra

Unit 2 Boolean Algebra Unit 2 Boolean Algebra 2.1 Introduction We will use variables like x or y to represent inputs and outputs (I/O) of a switching circuit. Since most switching circuits are 2 state devices (having only 2

More information

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part 1 Gate Circuits and Boolean Equations Charles Kime & Thomas Kaminski 2008 Pearson Education, Inc. (Hyperlinks are active

More information

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive March 30, 2010 John Wawrzynek Spring 2010 EECS150 - Lec19-cl1 Page 1 Boolean Algebra I (Representations of Combinational

More information

CHAPTER III BOOLEAN ALGEBRA

CHAPTER III BOOLEAN ALGEBRA CHAPTER III- CHAPTER III CHAPTER III R.M. Dansereau; v.. CHAPTER III-2 BOOLEAN VALUES INTRODUCTION BOOLEAN VALUES Boolean algebra is a form of algebra that deals with single digit binary values and variables.

More information

Sets and Motivation for Boolean algebra

Sets and Motivation for Boolean algebra SET THEORY Basic concepts Notations Subset Algebra of sets The power set Ordered pairs and Cartesian product Relations on sets Types of relations and their properties Relational matrix and the graph of

More information

ENG2410 Digital Design Combinational Logic Circuits

ENG2410 Digital Design Combinational Logic Circuits ENG240 Digital Design Combinational Logic Circuits Fall 207 S. Areibi School of Engineering University of Guelph Binary variables Binary Logic Can be 0 or (T or F, low or high) Variables named with single

More information

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering Boolean Algebra Boolean Algebra A Boolean algebra is defined with: A set of

More information

CHAPTER III BOOLEAN ALGEBRA

CHAPTER III BOOLEAN ALGEBRA CHAPTER III- CHAPTER III CHAPTER III R.M. Dansereau; v.. CHAPTER III-2 BOOLEAN VALUES INTRODUCTION BOOLEAN VALUES Boolean algebra is a form of algebra that deals with single digit binary values and variables.

More information

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2 Boolean Algebra and Logic Gates Chapter 2 Boolean Algebra and Logic Gates Huntington Postulates 1. (a) Closure w.r.t. +. (b) Closure w.r.t.. 2. (a) Identity element 0 w.r.t. +. x + 0 = 0 + x = x. (b) Identity element 1 w.r.t.. x 1 =

More information

CHAPTER1: Digital Logic Circuits Combination Circuits

CHAPTER1: Digital Logic Circuits Combination Circuits CS224: Computer Organization S.KHABET CHAPTER1: Digital Logic Circuits Combination Circuits 1 PRIMITIVE LOGIC GATES Each of our basic operations can be implemented in hardware using a primitive logic gate.

More information

Contents. Chapter 2 Digital Circuits Page 1 of 30

Contents. Chapter 2 Digital Circuits Page 1 of 30 Chapter 2 Digital Circuits Page 1 of 30 Contents Contents... 1 2 Digital Circuits... 2 2.1 Binary Numbers... 2 2.2 Binary Switch... 4 2.3 Basic Logic Operators and Logic Expressions... 5 2.4 Truth Tables...

More information

Boolean Algebra, Gates and Circuits

Boolean Algebra, Gates and Circuits Boolean Algebra, Gates and Circuits Kasper Brink November 21, 2017 (Images taken from Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc.) Outline Last week: Von

More information

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part 1 Gate Circuits and Boolean Equations Charles Kime & Thomas Kaminski 2008 Pearson Education, Inc. Overview Part 1 Gate

More information

CprE 281: Digital Logic

CprE 281: Digital Logic CprE 281: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Boolean Algebra CprE 281: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev

More information

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev E&CE 223 Digital Circuits & Systems Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev 4 of 92 Section 2: Boolean Algebra & Logic Gates Major topics Boolean algebra NAND & NOR gates Boolean

More information

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST Discrete Mathematics CS204: Spring, 2008 Jong C. Park Computer Science Department KAIST Today s Topics Combinatorial Circuits Properties of Combinatorial Circuits Boolean Algebras Boolean Functions and

More information

1. Name the person who developed Boolean algebra

1. Name the person who developed Boolean algebra MATHEMATIC CENTER D96 MUNIRKA VILLAGE NEW DELHI 67 & VIKAS PURI NEW DELHI CONTACT FOR COACHING MATHEMATICS FOR TH 2TH NDA DIPLOMA SSC CAT SAT CPT CONTACT FOR ADMISSION GUIDANCE B.TECH BBA BCA, MCA MBA

More information

Logic Gate Level. Part 2

Logic Gate Level. Part 2 Logic Gate Level Part 2 Constructing Boolean expression from First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result column of the truth table Works best for table with relatively

More information

ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2

ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture) Email: abk@ucsd.edu Telephone: 858-822-4884 office, 858-353-0550 cell Office: 3802

More information

WEEK 2.1 BOOLEAN ALGEBRA

WEEK 2.1 BOOLEAN ALGEBRA WEEK 2.1 BOOLEAN ALGEBRA 1 Boolean Algebra Boolean algebra was introduced in 1854 by George Boole and in 1938 was shown by C. E. Shannon to be useful for manipulating Boolean logic functions. The postulates

More information

1. Prove: A full m- ary tree with i internal vertices contains n = mi + 1 vertices.

1. Prove: A full m- ary tree with i internal vertices contains n = mi + 1 vertices. 1. Prove: A full m- ary tree with i internal vertices contains n = mi + 1 vertices. Proof: Every vertex, except the root, is the child of an internal vertex. Since there are i internal vertices, each of

More information

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC. Boolean Expression Forms: Sum-of-products (SOP) Write an AND term for each input combination that produces a 1 output. Write the input variable if its value is 1; write its complement otherwise. OR the

More information

Chapter-2 BOOLEAN ALGEBRA

Chapter-2 BOOLEAN ALGEBRA Chapter-2 BOOLEAN ALGEBRA Introduction: An algebra that deals with binary number system is called Boolean Algebra. It is very power in designing logic circuits used by the processor of computer system.

More information

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004 EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系 September 2004 Boolean Algebra (formulated by E.V. Huntington, 1904) A set of elements B={0,1} and two binary operators + and Huntington postulates 1. Closure

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

Unit 2 Boolean Algebra

Unit 2 Boolean Algebra Unit 2 Boolean Algebra 1. Developed by George Boole in 1847 2. Applied to the Design of Switching Circuit by Claude Shannon in 1939 Department of Communication Engineering, NCTU 1 2.1 Basic Operations

More information

Combinational Logic. Review of Combinational Logic 1

Combinational Logic. Review of Combinational Logic 1 Combinational Logic! Switches -> Boolean algebra! Representation of Boolean functions! Logic circuit elements - logic gates! Regular logic structures! Timing behavior of combinational logic! HDLs and combinational

More information

Chapter 2 : Boolean Algebra and Logic Gates

Chapter 2 : Boolean Algebra and Logic Gates Chapter 2 : Boolean Algebra and Logic Gates By Electrical Engineering Department College of Engineering King Saud University 1431-1432 2.1. Basic Definitions 2.2. Basic Theorems and Properties of Boolean

More information

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2 Boolean Algebra and Logic Gates Ch1: Digital Systems and Binary Numbers Ch2: Ch3: Gate-Level Minimization Ch4: Combinational Logic Ch5: Synchronous Sequential Logic Ch6: Registers and Counters Switching Theory & Logic Design Prof. Adnan

More information

Boolean algebra. Values

Boolean algebra. Values Boolean algebra 1854 by George Boole in his book An Investigation of the Laws of Thought, is a variant of ordinary elementary algebra differing in its values, operations, and laws. Instead of the usual

More information

Week-I. Combinational Logic & Circuits

Week-I. Combinational Logic & Circuits Week-I Combinational Logic & Circuits Overview Binary logic operations and gates Switching algebra Algebraic Minimization Standard forms Karnaugh Map Minimization Other logic operators IC families and

More information

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates Digital Circuits & Systems Lecture Transparencies (Boolean lgebra & Logic Gates) M. Sachdev 4 of 92 Section 2: Boolean lgebra & Logic Gates Major topics Boolean algebra NND & NOR gates Boolean algebra

More information

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS What will we learn? 2 Logic functions and circuits Boolean Algebra Logic gates and Synthesis CAD tools and VHDL Read Section 2.9 and 2.0 Terminology 3 Digital

More information

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2 Boolean Algebra and Logic Gates CSA051 - Digital Systems 數位系統導論 Chapter 2 Boolean Algebra and Logic Gates 吳俊興國立高雄大學資訊工程學系 Chapter 2. Boolean Algebra and Logic Gates 2-1 Basic Definitions 2-2 Axiomatic Definition of Boolean Algebra 2-3

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication CSE20: Discrete Mathematics for Computer Science Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication Disjunctive normal form Example: Let f (x, y, z) =xy z. Write this function in DNF. Minterm

More information

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept. hapter 2: Princess Sumaya Univ. omputer Engineering Dept. Basic Definitions Binary Operators AND z = x y = x y z=1 if x=1 AND y=1 OR z = x + y z=1 if x=1 OR y=1 NOT z = x = x z=1 if x=0 Boolean Algebra

More information

Adequate set of connectives, logic gates and circuits

Adequate set of connectives, logic gates and circuits Adequate set of connectives, logic gates and circuits Lila Kari University of Waterloo Adequate set of connectives, logic gates and circuits CS245, Logic and Computation 1 / 59 Connectives We have mentioned

More information

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation. Section 3 Boolean Algebra The Building Blocks of Digital Logic Design Section Overview Binary Operations (AND, OR, NOT), Basic laws, Proof by Perfect Induction, De Morgan s Theorem, Canonical and Standard

More information

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT): ENGI 386 Digital Logic II. COMBINATIONAL LOGIC DESIGN Combinational Logic output of digital system is only dependent on current inputs (i.e., no memory) (a) Boolean Algebra - developed by George Boole

More information

Digital Logic (2) Boolean Algebra

Digital Logic (2) Boolean Algebra Digital Logic (2) Boolean Algebra Boolean algebra is the mathematics of digital systems. It was developed in 1850 s by George Boole. We will use Boolean algebra to minimize logic expressions. Karnaugh

More information

Digital Logic Design. Combinational Logic

Digital Logic Design. Combinational Logic Digital Logic Design Combinational Logic Minterms A product term is a term where literals are ANDed. Example: x y, xz, xyz, A minterm is a product term in which all variables appear exactly once, in normal

More information

Logic and Boolean algebra

Logic and Boolean algebra Computer Mathematics Week 7 Logic and Boolean algebra College of Information Science and Engineering Ritsumeikan University last week coding theory channel coding information theory concept Hamming distance

More information

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table. The Laws of Boolean Boolean algebra As well as the logic symbols 0 and 1 being used to represent a digital input or output, we can also use them as constants for a permanently Open or Closed circuit or

More information

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY LECTURE 8 : WEEK 8 CSC-110-T

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY LECTURE 8 : WEEK 8 CSC-110-T INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY LECTURE 8 : WEEK 8 CSC-110-T Credit : (2 + 1) / Week TEXT AND REF. BOOKS Text Book: Peter Norton (2011), Introduction to Computers, 7 /e, McGraw-Hill

More information

Boolean Algebra and Digital Logic

Boolean Algebra and Digital Logic All modern digital computers are dependent on circuits that implement Boolean functions. We shall discuss two classes of such circuits: Combinational and Sequential. The difference between the two types

More information

Combinatorial Logic Design Principles

Combinatorial Logic Design Principles Combinatorial Logic Design Principles ECGR2181 Chapter 4 Notes Logic System Design I 4-1 Boolean algebra a.k.a. switching algebra deals with boolean values -- 0, 1 Positive-logic convention analog voltages

More information

BOOLEAN LOGIC. By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region. Based on CBSE curriculum Class 11. Neha Tyagi, KV 5 Jaipur II Shift

BOOLEAN LOGIC. By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region. Based on CBSE curriculum Class 11. Neha Tyagi, KV 5 Jaipur II Shift BOOLEAN LOGIC Based on CBSE curriculum Class 11 By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region Neha Tyagi, KV 5 Jaipur II Shift Introduction Boolean Logic, also known as boolean algebra was

More information

0 Sets and Induction. Sets

0 Sets and Induction. Sets 0 Sets and Induction Sets A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a A to denote that a is an element of the set

More information

1.1 Statements and Compound Statements

1.1 Statements and Compound Statements Chapter 1 Propositional Logic 1.1 Statements and Compound Statements A statement or proposition is an assertion which is either true or false, though you may not know which. That is, a statement is something

More information

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

BOOLEAN ALGEBRA INTRODUCTION SUBSETS BOOLEAN ALGEBRA M. Ragheb 1/294/2018 INTRODUCTION Modern algebra is centered around the concept of an algebraic system: A, consisting of a set of elements: ai, i=1, 2,, which are combined by a set of operations

More information

Digital Systems and Information Part II

Digital Systems and Information Part II Digital Systems and Information Part II Overview Arithmetic Operations General Remarks Unsigned and Signed Binary Operations Number representation using Decimal Codes BCD code and Seven-Segment Code Text

More information

Digital Logic Design. Malik Najmus Siraj

Digital Logic Design. Malik Najmus Siraj Digital Logic Design Malik Najmus Siraj siraj@case.edu.pkedu LECTURE 4 Today s Agenda Recap 2 s complement Binary Logic Boolean algebra Recap Computer Arithmetic Signed numbers Radix and diminished radix

More information

Boolean Algebra and Logic Gates Chapter 2. Topics. Boolean Algebra 9/21/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Boolean Algebra and Logic Gates Chapter 2. Topics. Boolean Algebra 9/21/10. EECE 256 Dr. Sidney Fels Steven Oldridge Boolean Algebra and Logic Gates Chapter 2 EECE 256 Dr. Sidney Fels Steven Oldridge Topics DefiniGons of Boolean Algebra Axioms and Theorems of Boolean Algebra two valued Boolean Algebra Boolean FuncGons

More information

Unit 2 Session - 6 Combinational Logic Circuits

Unit 2 Session - 6 Combinational Logic Circuits Objectives Unit 2 Session - 6 Combinational Logic Circuits Draw 3- variable and 4- variable Karnaugh maps and use them to simplify Boolean expressions Understand don t Care Conditions Use the Product-of-Sums

More information

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: Boolean Algebra (1) Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: An expression is finite but not unique f(x,y)

More information

Computer Organization: Boolean Logic

Computer Organization: Boolean Logic Computer Organization: Boolean Logic Representing and Manipulating Data Last Unit How to represent data as a sequence of bits How to interpret bit representations Use of levels of abstraction in representing

More information

Boolean Algebras. Chapter 2

Boolean Algebras. Chapter 2 Chapter 2 Boolean Algebras Let X be an arbitrary set and let P(X) be the class of all subsets of X (the power set of X). Three natural set-theoretic operations on P(X) are the binary operations of union

More information

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.) DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.) 1 Learning Objectives 1. Apply the laws and theorems of Boolean algebra to to the manipulation of algebraic expressions to simplifying an expression, finding

More information

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Every time has a value associated with it, not just some times. A variable can take on any value within a range Digital Logic Circuits Binary Logic and Gates Logic Simulation Boolean Algebra NAND/NOR and XOR gates Decoder fundamentals Half Adder, Full Adder, Ripple Carry Adder Analog vs Digital Analog Continuous»

More information

Unit 8A Computer Organization. Boolean Logic and Gates

Unit 8A Computer Organization. Boolean Logic and Gates Unit 8A Computer Organization Boolean Logic and Gates Announcements Bring ear buds or headphones to lab! 15110 Principles of Computing, Carnegie Mellon University - CORTINA 2 Representing and Manipulating

More information

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits 2 Wawrzynek, Garcia 2004 c UCB UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits 1 Introduction Original document by J. Wawrzynek (2003-11-15) Revised

More information

ELEC Digital Logic Circuits Fall 2014 Boolean Algebra (Chapter 2)

ELEC Digital Logic Circuits Fall 2014 Boolean Algebra (Chapter 2) ELEC 2200-002 Digital Logic Circuits Fall 2014 Boolean Algebra (Chapter 2) Vishwani D. Agrawal James J. Danaher Professor Department of Electrical and Computer Engineering Auburn University, Auburn, AL

More information

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2. CHAPTER 2 Review 2.1 Definitions in Chapter 2 2.1 Set; Element; Member; Universal Set 2.2 Subset 2.3 Proper Subset 2.4 The Empty Set, 2.5 Set Equality 2.6 Cardinality; Infinite Set 2.7 Complement 2.8 Intersection

More information

BOOLEAN ALGEBRA TRUTH TABLE

BOOLEAN ALGEBRA TRUTH TABLE BOOLEAN ALGEBRA TRUTH TABLE Truth table is a table which represents all the possible values of logical variables / statements along with all the possible results of the given combinations of values. Eg:

More information

University of Technology

University of Technology University of Technology Lecturer: Dr. Sinan Majid Course Title: microprocessors 4 th year معالجات دقيقة المرحلة الرابعة ھندسة الليزر والبصريات االلكترونية Lecture 3 & 4 Boolean Algebra and Logic Gates

More information

CS61c: Representations of Combinational Logic Circuits

CS61c: Representations of Combinational Logic Circuits CS61c: Representations of Combinational Logic Circuits J. Wawrzynek March 5, 2003 1 Introduction Recall that synchronous systems are composed of two basic types of circuits, combination logic circuits,

More information

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on.

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on. Chapter 2 Digital Circuits Page 1 of 18 2. Digital Circuits Our world is an analog world. Measurements that we make of the physical objects around us are never in discrete units but rather in a continuous

More information

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra . T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION 2016-17 SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra Introduction to Boolean Algebra Boolean algebra which deals with two-valued

More information

211: Computer Architecture Summer 2016

211: Computer Architecture Summer 2016 211: Computer Architecture Summer 2016 Liu Liu Topic: Storage Project3 Digital Logic - Storage: Recap - Review: cache hit rate - Project3 - Digital Logic: - truth table => SOP - simplification: Boolean

More information

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 1 Gate Circuits and Boolean Equations

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 1 Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part Gate Circuits and Boolean Equations Charles Kime & Thomas Kaminski 28 Pearson Education, Inc. (Hperlinks are active in

More information