12.07.2015 Views

Boolean Algebra - Etsu

Boolean Algebra - Etsu

Boolean Algebra - Etsu

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

90 Computer Organization and Design Fundamentalsrepresenting the AND, OR, and NOT gates. These boolean expressionscan be used to describe or evaluate the output of a circuit.There is an additional benefit. Just like algebra, a set of rules existthat when applied to boolean expressions can dramatically simplifythem. A simpler expression that produces the same output can berealized with fewer logic gates. A lower gate count results in cheapercircuitry, smaller circuit boards, and lower power consumption.If your software uses binary logic, the logic can be represented withboolean expressions. Applying the rules of simplification will make thesoftware run faster or allow it to use less memory.The next section describes the representation of the three primarylogic functions, NOT, AND, and OR, and how to convertcombinational logic to a boolean expression.5.2 Symbols of <strong>Boolean</strong> <strong>Algebra</strong>Analogous behavior can be shown between boolean algebra andmathematical algebra, and as a result, similar symbols and syntax canbe used. For example, the following expressions hold true in math.0 · 0 = 0 0 · 1 = 0 1 · 0 = 0 1 · 1 = 1This looks like the AND function allowing an analogy to be drawnbetween the mathematical multiply and the boolean AND functions.Therefore, in boolean algebra, A AND'ed with B is written A · B.AX = A · BBFigure 5-2 <strong>Boolean</strong> Expression for the AND FunctionMathematical addition has a similar parallel in boolean algebra,although it is not quite as flawless. The following four mathematicalexpressions hold true for addition.0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 2The first three operations match the OR function, and if the lastoperation is viewed as having a non-zero result instead of the decimalresult of two, it too can be viewed as operating similar to the OR

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!