Docsity

Mastering Boolean Algebra for Efficient Digital Circuit Design, Study notes of Computer Science

Toggle sidebar
bg1
253
Math 123 Boolean Algebra
Chapter - 11
Boolean Algebra
11.1 Introduction:
George Boole, a nineteenth-century English Mathematician,
developed a system of logical algebra by which reasoning can be
expressed mathematically. In 1854, Boole published a classic book, “An
Investigation of the Laws of thought” on which he founded the
Mathematical theories of Logic and Probabilities,
Boole‟s system of logical algebra, now called Boolean algebra,
was investigated as a tool for analyzing and designing relay switching
circuits by Claude E. Shannon at the Massachusetts institute of
Technology in 1938. Shannon, a research assistant in the Electrical
Engineering Department, wrote a thesis entitled “A” symbolic Analysis of
Relay and Switching Circuits. As a result of his work, Boolean algebra is
now, used extensively in the analysis and design of logical circuits. Today
Boolean algebra is the backbone of computer circuit analysis.
11.2 Two Valued Logical Symbol:
Aristotle made use of a two valued logical system in devising a
method for getting to the truth, given a set of true assumptions. The
symbols that are used to represent the two levels of a two valued logical
system are 1 and 0. The symbol 1 may represent a closed switch, a true
statement, an “on” lamp, a correct action, a high voltage, or many other
things. The symbol “O” may represent on open switch, a false statement,
an “off” lamp, an incorrect action, a low voltage, or many other things.
For the electronics circuits and signals a logic 1 will represent
closed switch, a high voltage, or an “on” lamp, and a logic 0 will represent
an open switch, low voltage, or an “off” lamp. These describe the only two
states that exist in digital logic systems and will be used to represent the in
and out conditions of logic gates.
11.3 Fundamental Concepts of Boolean Algebra:
Boolean algebra is a logical algebra in which symbols are used to
represent logic levels. Any symbol can be used, however, letters of the
alphabet are generally used. Since the logic levels are generally associated
with the symbols 1 and 0, whatever letters are used as variables that can
take the values of 1 or 0.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32

Partial preview of the text

Download Mastering Boolean Algebra for Efficient Digital Circuit Design and more Study notes Computer Science in PDF only on Docsity!

Math 123 Boolean Algebra

Chapter - 11

Boolean Algebra

11.1 Introduction:

George Boole, a nineteenth-century English Mathematician, developed a system of logical algebra by which reasoning can be expressed mathematically. In 1854, Boole published a classic book, “An Investigation of the Laws of thought” on which he founded the Mathematical theories of Logic and Probabilities,

Boole‟s system of logical algebra, now called Boolean algebra, was investigated as a tool for analyzing and designing relay switching circuits by Claude E. Shannon at the Massachusetts institute of Technology in 1938. Shannon, a research assistant in the Electrical Engineering Department, wrote a thesis entitled “A” symbolic Analysis of Relay and Switching Circuits. As a result of his work, Boolean algebra is now, used extensively in the analysis and design of logical circuits. Today Boolean algebra is the backbone of computer circuit analysis.

11.2 Two Valued Logical Symbol:

Aristotle made use of a two valued logical system in devising a method for getting to the truth, given a set of true assumptions. The symbols that are used to represent the two levels of a two valued logical system are 1 and 0. The symbol 1 may represent a closed switch, a true statement, an “on” lamp, a correct action, a high voltage, or many other things. The symbol “O” may represent on open switch, a false statement, an “off” lamp, an incorrect action, a low voltage, or many other things.

For the electronics circuits and signals a logic 1 will represent closed switch, a high voltage, or an “on” lamp, and a logic 0 will represent an open switch, low voltage, or an “off” lamp. These describe the only two states that exist in digital logic systems and will be used to represent the in and out conditions of logic gates.

11.3 Fundamental Concepts of Boolean Algebra:

Boolean algebra is a logical algebra in which symbols are used to

represent logic levels. Any symbol can be used, however, letters of the

alphabet are generally used. Since the logic levels are generally associated

with the symbols 1 and 0, whatever letters are used as variables that can

take the values of 1 or 0.

Math 123 Boolean Algebra

Boolean algebra has only two mathematical operations, addition

and multiplication. These operations are associated with the OR gate and

the AND gate, respectively.

11.4 Logical Addition:

When the + ( the logical addition) symbol is placed between two

variables, say X and Y, since both X and Y can take only the role 0 and 1,

we can define the + Symbol by listing, all possible combinations for X and

Y and the resulting value of X + Y.

The possible input and out put combinations may arranged as

follows:

0 + 0 = 0 0 + 1 = 1 + 0 = 1 1 + 1 = 1 This table represents a standard binary addition, except for the

last entry. When both' X and Y represents 1‟s, the value of X + Y is 1. The

symbol + therefore does not has the “Normal” meaning, but is a Logical

addition symbol. The plus symbol (+) read as "OR", therefore X +Y is

read as X or Y.

This concept may be extended to any number of variables for example A + B + C +D = E Even if A, B, C and D all had the values 1, the sum of the values i.e. is 1.

11.5 Logical Multiplication:

We can define the "." (logical multiplication) symbol or AND

operator by listing all possible combinations for (input) variables X and Y

and the resulting (output) value of X. Y as,

0 .0= 0 0 .1 = 0 1 .0 = 0 1 .1 = 1

Note : Three of the basic laws of Boolean algebra are the same as in ordinary algebra; the commutative law, the associative law and the distributive law.

Math 123 Boolean Algebra

X

Z

Y

V =5v

OR Gate:

An OR gate is a logic circuit with two or more input signals and

one output signal. The output signal will be high (logic 1) if any one input

signal is high (logic 1). OR gate performs logical addition

The symbol for the logic OR gate is

Fig. 1 A circuit that will functions as an OR gate can be implemented in

several ways. A mechanical OR gate can be fabricated by connecting two

switches in parallel as shown in figure 2.

Fig. 2

Truth Table for a switch circuit operation as an OR gate.

Table – 1

Switch X Switch Y Output Z

Open Open 0

Open Closed 5V

Closed Open 5V

Closed Closed 5V

Note that for the switch circuit were use diodes and resistors,

Transistors and resistors and other techniques to control the voltage and

resistance.

X

Y

OR X + Y = Z

Math 123 Boolean Algebra

Note: If the switch is "on", it is represented by 1, and if, it is "off", it is represented by 0.

Truth Table for a Two-input OR gate.

Table - 2

In Put Out Put

X Y Z

0 0 0

0 1 1

1 0 1

1 1 1

Truth table for a three in put OR gate.

Table – 3

A B C X 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1

No. of combinations = 2 n, where n is number of variables.

AND Gate:

An AND gate is a logic circuit with two or more input signals

and one output signal. The output signal of an AND gate is high (logic 1)

only if all inputs signals are high (Logic 1).

Math 123 Boolean Algebra

Truth Table for a Two-input AND gate

Table - 5

In Put Out Put

X Y Z

0 0 0

0 1 0

1 0 0

1 1 1

Truth Table for a three input AND gate.

Table 6

Inputs Output

A B C X

0 0 0 0

0 0 1 0

0 1 0 0

0 1 1 0

1 0 0 0

1 0 1 0

1 1 0 0

1 1 1 1

Complementation:

The logical operation of complementary or inverting a variable is

performed in the Boolean Algebra. The purpose of complementation is to

Math 123 Boolean Algebra

invert the, input signal, since there are only two values that variables can

assume in two-value logic system, therefore if the input is 1, the output is

0 and if the input is 0 the output is 1. The symbol used to represent

complementation of a variable is a bar (-) above the variable, for example

the complementation of A is written as

_

A and is read as “complement of

A” or “A not”.

Since variables can only be equal to 0 or 1, we can say that _ O = 1 Or

_

1 =O

Also

O = O Or = 1

Invertors Or NOT gate:

An inventor is a gate with only one

.input signal and one output signal; the output signal is always the opposite or complement of the input signal.

An invertor is also called a NOT gate because the output not the same as the input.

Symbol of inverter or NOT gate is

Fig. 5

The circle at the output or input indicates inversion. It also

distinguish between the symbol for the NOT gate or the symbol for an

N (^) X

Fig.5 (i)

Fig.5 (ii)

N X^ X

Fig.5(ii) (Two invertors in series)

X X

X

Math 123 Boolean Algebra

  1. X. 0 =
  2. X. 1 =X AND operations
  3. X. X = X

8. X.

__

X = 0

X = X Double complement

  1. X + Y = Y + X Commutative laws
  2. XY = YX
  3. (X + Y ) +Z = X +(Y + Z) Associative laws
  4. (X. Y). Z =X. (Y. Z)
  5. X (Y + Z) = XY + XZ Distribution Law
  6. X + Y .Z = (X + Y). (X + Z) Dual of Distributive Law
  7. X + XZ = X Laws of absorption
  8. X (X + Z) = X

1 8. X+

__

X Y =X+Y Identity Theorems

1 9. X (

__

X +Y) =X.Y

____

X+Y =

__

X.

__

Y De Morgan's Theorems

____

X.Y =

__

X +

__

Y

Proof of Boolean Algebra Rules:

Every rule can be proved by the application of rules and by perfect Induction.

Rule 15:

(i) This rule does not apply to normal algebra We follow: (X + Y) (X + Z) = XX + XZ +YX + YZ =X+ XZ +YX + YZ, X.X=X

Math 123 Boolean Algebra = X (1 + Z) + YX + YZ = X + YX + YZ, 1 + Z = 1

= X (1 + Y) + Y Z– = X + YZ 1 + Y = 1

(ii) Proof by Perfect induction Method:

Truth Table-8 for the R.H.S. (X + Y) (X+ Z) and for L.H.S. X + YZ

X Y Z X+Y X+Z YZ (X+Y)(X+Z) X+YZ

0 0 0 0 0 0 0 0

0 0 1 0 1 0 0 0

0 1 0 1 0 0 0 0

0 1 1 1 1 0 1 1

1 0 0 1 1 0 1 1

1 0 1 1 1 0 1 1

1 1 0 1 1 1 1 1

1 1 1 1 1 1 1 1

R.H.S. = L.H.S.

Rule .16 X +XZ =X

L.H.S. =X + XZ = X(1 + Z) = X. 1 = X, I + Z = 1 = R.H.S.

Rule 17: X(X +Z) =X

L.H.S. = X (X + Z) =X X +XZ By distributive law =X +XZ, as X.X = X =X (1 +Z), As 1 +Z = = X. 1 = X L.H.S. = R.H.S.

Math 123 Boolean Algebra

11.9 De Morgan’s Theorems:

(i)


X + Y =

__ X.

__ Y

(ii)


X. Y =

__ X +

__ Y

Proof: (i) By Perfect induction

(i)Truth Table 11 for L.H.S.

______

X + Y and for R.H.S.

__

X.

__

Y

X Y __X^ __Y X +Y ______X + Y^ __X .__Y

L.H.S. =R.H.S.

(ii)Truth Table 12 for L.H.S.

______

X. Y and for R.H.S.

__

X +

__

Y

X Y __

X

__

Y

X .Y ______

X. Y

__

X +

__

Y

L.H.S. = R.H.S.

Rules:

3 rd^ and 7th^ called idempotent. These shows that Boolean algebra is idempotent.

i.e. A + A = A and A. A = A

Proof:

The variable A can have only the value 0 or 1. (3) If A =0, then 0 + 0 = 0 If A = 1, then 1 + 1 = 1 (7) If A = 0, then 0.0. = 0 If A =1, then 1. 1 =

Rule 2: X +1 =

If X = 0 then 0 + 1 = 1 If X = 1, then 1 + 1 =

Math 123 Boolean Algebra

Rule 5: X. 0 = 0

If X = 0, Then 0.0 = 1 If X= 1, Then 1 .0 = 1

Rule 9:

X = X, i.e., the Boolean algebra is involuted.

If X =0, Then

__

O = 1 and

__

So

O =

__

If X=1, Then

_

1 = 0 and

_

O = 1

So

_

O = 1

Similarly we can prove the remaining rules by setting the values of variables as 0 and 1 or by perfect induction

Example:2: Express the Boolean function

XY + YZ +

__

Y Z = XY + Z

Solution:

L.H.S. = XY + YZ +

__

Y Z

= XY+Z(Y +

__

Y )

= XY + Z.

= XY + Z

L.H.S = R.H.S.

Example 3: Find the complement of the expression: X + YZ and

verified the result by perfect induction.

Solution:


X+ YZ =

__

X.

___

YZ

__

X .(

__

Y +

__

Z ) by DeMorgan‟s Law This relation can be verified by perfect induction.

Math 123 Boolean Algebra

Solution:

(i) First simplify (X + Y ) ( X +

__

Y )

(X + Y) (X +

__

Y ) = XX + X

__

Y + YX + Y

__

Y

= X + X

__

Y + YX +O, as XX =X

as Y

__

Y = 0

= X + X(

__

Y + Y), as

__

Y + Y =

= X + X. 1, as X .1 = X = X + X = X

Now (X + Y) (X +

__

Y ) (

__

X +Z)

=X(

__

X + Z)

=X

__

X +XZ, by distributive law

= 0 + XZ

= XZ

(ii) XYZ + X

__

Y Z + XY

__

Z

=XZ (Y +

__

Y ) + XY

__

Z

=XZ + XY

__

Z , as Y +

__

Y =

=X (Z +Y

__

Z )

= X[(Z +Y). (Z +

__

Z )], (By Rule 15 dual of distributive

= X [(Z + Y). 1] = X (Z + Y)

=X (Y + Z), by commutative law.

Math 123 Boolean Algebra

Example 6: Minimize the following expression by use of Boolean rules.

(a) X = A B C +

__

A B + A B

__

C

(b) X =

__

A B

__

C + A

__

B

__

C +

__

A

__

B

__

C +

__

A

__

B

__

C

(c) AB +

__

A C + B C = AB +

__

A C

(d) (A + B) (

__

A + C) (B + C) =(A + B) (

__

A + C)

Solution:

(a) X =ABC +

__

A B + AB

__

C

= ABC + AB

__

C +

__

A B

= AB (C +

__

C ) +

__

A B

=AB +

__

A B as C +

__

C = 1

= (A +

__

A ) B.

= 1. B

=B

(b) X =

__

A B

__

C + A

__

B

__

C +

__

A

__

B

__

C +

__

A

__

B

__

C

__

A B

__

C + A

__

B

__

C +

__

A

__

B

__

C as

__

A +

__

A =

__

A

__

A B

__

C +(A +

__

A )

__

B

__

C

__

A B

__

C + 1. B

__

C

__

A B +

__

B )

__

C

= [(

__

A +

__

B ). (

__

B +

__

B )]

__

C by the dual of distribution, rules 15

__

A +

__

B ). 1]

__

C

__

A +

__

B )

__

C

Math 123 Boolean Algebra

= (A + B) (

__

A + C)

L.H.S. = R.H.S.

11.10 Sum of Product (Minterm):

The S um of Product means that the products of the variables that are seperated by a plus sign. The variables can be complemented or uncomplemented, for-example,

AB + A

__

B +

__

A B +

__

A

__

B + AB

__

C + A

__

B C + A

__

B C

11.11 Product of sum (Maxterm):

The P roduct of Sum means that the sum of variables that are seperated by a multiplication sign. For example,

(A + B) (

__

A + B) (A +

__

B ) (

__

A +

__

B ),

(A +

__

B + C)(A +

__

B +

__

C )(

__

A +

__

B + C)

11.12 Fundamental Products:

The products that produce a high (1) output are called

Fundamental products. For example, for the two input variables A and B.

We have four possible combination‟s, which are shown in the table below

and the fundamental product‟s corresponding to each:

Truth Table 14 Two Variables

Table 14

A B Fundamental Product

Output Z

__

A

__

B 1

__

A B 1

1 0 A

__

B 1

1 1 AB 1

Math 123 Boolean Algebra

For three input variables or signals a similar idea is applied. Whenever the input variable is 0, the same variable is complemented in the fundamental product.

Truth Table 15. Three variables

A B C Output Z

Fundamental Product

Output for product

Sum terms Output for Sum 0 0 0 0

__ A

__ B

__ C 1

A+B+C 0

0 0 1 0

__ A

__ B C 1 A+B+

__ C 0 0 1 0 1

__ A B

__ C 1 A+

__ B +C 0 0 1 1 1

__ A BC 1 A+

__ B +

__ C 0 (^1 0 0 0) A

__ B

__ C 1

__ A +B+C 0 (^1 0 1 0) A

__ B C 1

__ A +B+

__ C 0

(^1 1 0 1) AB

__ C 1

__ A +

__ B +C 0 1 1 1 0 ABC^1

__ A +

__ B +

__ C 0

Sum of product(SOP) =

__ A B

__ C +

__ A B C + A B

__ C

Product of sum(POS) = (A + B + C) (A + B +

__ C ) (

__ A + B + C)

__ A + B +

__ C ) (

__ A +

__ B +

__ C ) Note: See remarks for sum of product and product of sums.

Remarks:

(1) A sum of product (minterm) is obtained as follows: For each row of the truth table for which the out put is 1, the Boolean term is the product of variables that are equal to 1 and the complement of variable that are equal to 0. The sum of these products is the desired Boolean equation. (2) A product of sum expression is obtained as follows: each row of the truth table for which the output is 0, the Boolean term is the sum of the variables that are equal 0 plus the complement of the variables that are equal to 1. The