15

Click here to load reader

Boolean Algebra

  • Upload
    gbland

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Boolean Algebra

Boolean Algebra

Instructor:Khaled Ibrahim

Page 2: Boolean Algebra

Binary Logic and GatesBinary variables:

take on one of two values.Logical operators:

operate on binary values and variablesLogic gates:

are symbolic representation for the logic functions.Boolean Algebra:

a useful mathematical system for specifying and transforming logical functions.

We study Boolean Algebra as foundation for designing digital systems.

Page 3: Boolean Algebra

Binary Variables

The two binary values have different names:

True/FalseOn/OffYes/No1/0

Variable identifiers:A, B, y, or z,…..

Page 4: Boolean Algebra

Logical Operations

The three basic logical operations are:ANDORNOT

AND is denoted by a dot (·)OR is denoted by a plus (+)NOT is denoted by a bar ( ¯ ) over the

variable

Page 5: Boolean Algebra

Notation Examples

Examples:Y = A⋅B is read “Y is equal to A and B.”z = x + y is read “z is equal to x OR y.”

is read “X is equal to NOT A.”AX =

Page 6: Boolean Algebra

Operator Definitions

Operations are defined on the values "0" and "1" for each Operator:

Page 7: Boolean Algebra

Operator Definitions

Using SwitchesFor inputs:

logic 1 is switch closedlogic 0 is switch open

For outputs:logic 1 is light onlogic 0 is light off.

Page 8: Boolean Algebra

Logic Gate Symbols

Page 9: Boolean Algebra

Truth TablesTruth tables list the output value of a function for all possible input valuesTruth tables for basic logic operations:

Page 10: Boolean Algebra

Logic Diagrams and Expressions

Boolean expressions, truth tables and logic diagrams describe the same function!Truth tables are unique, expressions and logic diagrams are not. This gives flexibility in implementing functions.

Page 11: Boolean Algebra

Boolean Algebra Rules

AA =+ 0

AA =⋅111=+A

00 =⋅A

Page 12: Boolean Algebra

Boolean Algebra Rules

AAA =+

AAA =⋅1=+ AA

0=⋅ AA

Page 13: Boolean Algebra

Boolean Algebra Rules

AA =

BABAA +=⋅+

ABAA =⋅+

CBACABA ⋅+=+⋅+ )()(

Page 14: Boolean Algebra

Boolean Algebra Rules

ABBA +=+

CBACBA ++=++ )()(

ABBA ⋅=⋅

CBACBA ⋅⋅=⋅⋅ )()(

Page 15: Boolean Algebra

Boolean Algebra Rules

BABA ⋅=+ )(

CABACBA ⋅+⋅=+⋅ )(

BABA +=⋅ )(

)()( CABACBA +⋅+=⋅+