BOOLEAN ANALYSIS OF LOGIC CIRCUITS

2y ago
26 Views
2 Downloads
316.79 KB
8 Pages
Last View : 14d ago
Last Download : 3m ago
Upload by : Tripp Mcmullen
Transcription

Boolean AnalysisAbdullah Al-ZubydeaBOOLEAN ANALYSIS OF LOGIC CIRCUITSBoolean algebra provides a concise way to express the operation of a logiccircuit formed by a combination of logic gates so that the output can bedetermined for various combinations of input values.Boolean Expression for a Logic CircuitTo derive the Boolean expression for a given logic circuit, begin at theleftmost inputs and work toward the final output, writing the expression for eachgate. For the example circuit in Fig.(1), the Boolean expression is determined asfollows:1. The expression for the left-most AND gate with inputs C and D is CD.2. The output of the left-most AND gate is one of the inputs to the OR gate and Bis the other input. Therefore, the expression for the OR gate is B CD.3. The output of the OR gate is one of the inputs to the right-most AND gate andA is the other input. Therefore, the expression for this AND gate is A(B CD),which is the final output expression for the entire circuit.Fig1 A logic circuit showing the development of the Boolean expression for the outputConstructing a Truth Table for a Logic CircuitOnce the Boolean expression for a given logic circuit has been determined,a truth table that shows the output for all possible values of the input variablescan be developed. The procedure requires that you evaluate the Booleanexpression for all possible combinations of values for the input variables. In thecase of the circuit in Fig.(2), there are four input variables (A, B, C, and D) andtherefore sixteen (24 16) combinations of values are possible.Evaluating the expressionTo evaluate the expression (A(B CD)),first find the values of the variables thatmake the expression equal to 1, using the rules for Boolean addition andmultiplication. In this case the expression equals 1only if A 1 andB CD 1becauseA(B CD) 1.1 1Now determine when the B CD term equals 1. The term B CD 1 if either B 1orCD 1 or if the both B and CD equals 1because1

Boolean AnalysisAbdullah Al-ZubydeaB CD 1 0 1B CD 0 1 1B CD 1 1 1The term CD 1 only if C 1and D 1.The summarize, the expression A(B CD) 1when A 1and B 1 regardless of thevalues of C and D or when A 1and C 1and D 1regardless of the value of B.the expression A(B CD) 0 for all other value combinations of variables.Putting the Results in Truth Table formatThe first step is to list the sixteen input variable combinations of 1s and 0sin a binary sequence as shown in Table 4-5. Next, place a 1 in the output columnfor each combination of input variables that was determined in the evaluation.Finally, place a 0 in the output column for all other combinations of inputvariables. These results are shown in the truth table in Table 1.2

Boolean AnalysisAbdullah Al-ZubydeaSIMPLIFICATION USING BOOLEAN ALGEBRAA simplified Boolean expression uses the fewest gates possible to implementa given expression.Ex//Using Boolean algebra techniques, simplify this expression:AB A(B C) B(B C)Step 1: Apply the distributive law to the second and third terms in theexpression, as follows:AB AB AC BB BCStep 2: Apply rule 7 (BB B) to the fourth termAB AB AC B BCStep 3: Apply rule 5 (AB AB AB) to the first two terms.AB AC B BCStep 4: Apply rule 10 (B BC B) to the last two terms.AB AC BStep 5: Apply rule 10 (AB B B) to the first and third terms.B ACAt this point the expression is simplified as much as possible.Fig23

Boolean AnalysisAbdullah Al-ZubydeaEX// simplify the following Boolean expression:[AB(C BD) AB]CNote that brackets and parentheses mean the same thing: the term inside ismultiplied (ANDed) with the term outside.Step1: Apply the distributive law to the terms within the brackets.(ABC ABBD AB)CStep2: apply rule 8 (BB 0) to the second term within the parentheses(ABC A.0.D AB)CStep3: apply rule3 (A.0.D 0)(ABC 0 AB)CStep4: apply rule1 (drop the 0)(ABC AB)CStep5: apply the distributive lawABCC ABCStep6: apply rule 7(CC C)ABC ABCStep7: Factor out BCBC(A A)Step8: apply rule 6 (A A 1)BC4

Boolean AnalysisAbdullah Al-ZubydeaSTANDARD FORMS OF BOOLEAN EXPRESSIONSAll Boolean expressions, regardless of their form, can be converted intoeither of two standard forms: the sum-of-products form or the product-ofsumsform. Standardization makes the evaluation, simplification, and implementation ofBoolean expressions much more systematic and easier.A binary variable may appear either in its normal form (x) or in itscomplement form (x). Now consider two binary variables x and y combined withan AND operation. Since each variable may appear in either form, there are fourpossible combinations: x y , x y, x y,and x y. Each of these four AND terms iscalled a minterm, or a standard product. In a similar manner, n variables can becombined to form 2n minterms. The 2n different minterms may be determined by amethod similar to the one shown in Table 2 for three variables.Each minterm is obtained from an AND term of the n variables, with eachvariable being primed if the corresponding bit of the binary number is a 0 andunprimed if a 1. A symbol for each minterm is also shown in the table and is of theform mj, where the subscript j denotes the decimal equivalent of the binary numberof the minterm designated.In a similar fashion, n variables forming an OR term, with each variablebeing primed or unprimed, provide 2n possible combinations, called maxterms, orstandard sums. The eight maxterms for three variables, together with theirsymbolic designations, are listed in Table 2 . Any 2n maxterms for n variables maybe determined similarly. It is important to note that (1) each maxterm is obtainedfrom an OR term of the n variables, with each variable being unprimed if thecorresponding bit is a 0 and primed if a 1, and (2) each maxterm is thecomplement of its corresponding minterm and vice versa.A Boolean function can be expressed algebraically from a given truthtable by forming a minterm for each combination of the variables that producesa 1 in the function and then taking the OR of all those terms.For example, the function f1 in Table 2 is determined by expressing thecombinations 001, 100, and 111 as x y z, x y z, and xyz, respectively. Since eachone of these minterms results in f1 1, we havef1 x y z x y z xyz m1 m4 m75

Boolean AnalysisAbdullah Al-ZubydeaTable 2, Minterms and Maxterms for Three Binary axtermsTermDesignationX Y ZM0X Y ZM1X Y ZM2X Y ZM3X Y ZM4X Y ZM5X Y ZM6X Y ZM7Sum of MintermsThe minterms whose sum defines the Boolean function are those whichgive the 1's of the function in a truth table.EX// Express the Boolean function F A BC as a sum of minterms. Thefunction has three variables: A, B, and C.The first term A is missing two variables; therefore,A A(B B) AB ABThis function is still missing one variable, soA AB(C C) AB(C C) ABC ABC ABC ABCThe second term B C is missing one variable; hence,BC BC(A A) ABC ABCCombining all terms, we haveF A BC ABC ABC ABC ABC ABCBut AB C appears twice, and according to theorem 1 (x x x), it ispossible to remove one of those occurrences. Rearranging the minterms inascending order, we finally obtainF ABC ABC ABC ABC ABC m1 m4 m5 m6 m7When a Boolean function is in its sum‐of‐minterms form, it is sometimesconvenient to express the function in the following brief notation:F(A, B, C) (1, 4, 5, 6, 7)The summation symbol stands for the ORing of terms6

Boolean AnalysisAbdullah Al-ZubydeaAn alternative procedure for deriving the minterms of a Boolean functionis to obtain the truth table of the function directly from the algebraic expressionand then read the minterms from the truth table.ABCF00000011010001101001101111011111Product of MaxtermsEach of the 22n functions of n binary variables can be also expressed as aproduct of maxterms.To express a Boolean function as a product of maxterms, it must first bebrought into a form of OR terms. This may be done by using the distributive law,x yz (x y)(x z). Then any missing variable x in each OR term is ORed withx x The procedure is clarified in the following example.EX//Express the Boolean function F xy x z as a product of maxterms.First, convert the function into OR terms by using the distributive law:F xy xz (xy x)(xy z) (x x)(y x)(x z)(y z) (x y)(x z)(y z)The function has three variables: x, y, and z. Each OR term is missing onevariable; therefore,x y x y zz ( x y z)(x y z)x z x z yy (x y z)(x y z)y z y z xx (x y z)(x y z)Combining all the terms and removing those which appear more than once, wefinally obtainF (x y z)(x y z)(x y z)(x y z) M0M2M4M5A convenient way to express this function is as follows:F(x, y, z) Π(0, 2, 4, 5)7

Boolean AnalysisAbdullah Al-ZubydeaThe product symbol, Π, denotes the ANDing of maxterms; the numbers are theindices of the maxterms of the functionConversion between Canonical FormsThe complement of a function expressed as the sum of minterms equals thesum of minterms missing from the original function. This is because the originalfunction is expressed by those minterms which make the function equal to 1,whereas its complement is a 1 for those minterms for which the function is a 0. Asan example, consider the functionF(A, B, C) (1, 4, 5, 6, 7)This function has a complement that can be expressed asF (A, B, C) (0, 2, 3) m0 m2 m3Now, if we take the complement of F by DeMorgan’s theorem, we obtain Fin a different form:F (m0 m2 m3) m0 . m2 . m3 M0M2M3 Π(0, 2, 3)The last conversion follows from the definition of minterms and maxtermsas shown in Table 2 . From the table, it is clear that the following relation holds:m j MjThat is, the maxterm with subscript j is a complement of the minterm withthe same subscript j and vice versa.8

BOOLEAN ANALYSIS OF LOGIC CIRCUITS Boolean algebra provides a concise way to express the operation of a logic circuit formed by a combination of logic gates so that the output can be determined for various combinations of input values. Boolean Expression for a Logic Circuit To derive the B

Related Documents:

Boolean Expressions & Logic Circuits A Boolean expression (logic circuit) gives a unique Boolean function The converse is not true, that is, a Boolean function can be represented by different Boolean expressions (logic circuits) A truth table gives a unique Boolean function, and vice

Engr354: Digital Logic Circuits Chapter 2: Introduction to Logic Circuits Dr. Curtis Nelson Chapter 2 Objectives Define and illustrate basic logic functions and circuits; Present Boolean algebra for dealing with logic functions; Illustrate logic gates and synthesis of simple circuits

Mar 03, 2010 · 3: Logic Circuits, Boolean Algebra, and Truth Tables - NOTES TOPIC 1: Logic Representation There are three common ways in which to represent logic. 1. Truth Tables 2. Logic Circuit Diagram 3. Boolean Expression We will discuss each herein and demons

Postulates of Boolean algebra, De Morgan’s Theorems . Various identities. Formulation of truth table and Boolean equation for simple problem. Implementation of Boolean (logic) equation with gates. Karnaugh map (upto 4variables) and simple applications in developing combinational logic circuits. 4

2-2 Axiomatic Definition of Boolean Algebra 2-3 Basic Theorems and Properties 2-4 Boolean Functions 2-5 Canonical and Standard Forms 2-6 Other Logic Operations 2-7 Digital Logic Gates 2-8 Integrated Circuits Boolean Algebra (formulated by E.V. Huntington, 1904) A set of elements

Logic Gates & Boolean Algebra Boolean Theorems: We have seen how Boolean algebra can be used to help analyze a logic circuit and express its operation mathematically. We will continue our study of Boolean algebra by investigating the various Boolean theorems (rules) that can

Boolean algebra is a system of mathematical logic. Any complex logic can be expressed by Boolean function. Boolean algebra is governed by certain rules and laws. Boolean algebra is different from ordinary algebra & binary number system. In ordinary algebra; A A 2A and AA A2, here

avanzados de Alfredo López Austin, Leonardo López Lujan, Guilhem Olivier, Carlos Felipe Barrera y Elsa Argelia Guerrero con la intención de mostrar si existió ó no el sacrificio humano entre los aztecas y si los hubo con qué frecuencia y crueldad. Por otra parte, he de mencionar que la elaboración de este trabajo ha sido una ardua tarea de síntesis de diferentes fuentes sobre la .