cec 220 digital circuit design boolean algebra i wed, sept 2 cec 220 digital circuit design slide 1...

13
CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Upload: sibyl-perkins

Post on 18-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

CEC 220 Digital Circuit DesignBoolean Algebra I

Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Page 2: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Lecture Outline

Wed, Sept 2 CEC 220 Digital Circuit Design

• Introduction• Basic Operations: NOT, AND, OR• Representations of Boolean Expressions

Slide 2 of 13

Page 3: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraIntroduction

Wed, Sept 2 CEC 220 Digital Circuit Design

• Boolean Algebra• In 1849 George Boole published a scheme for the algebraic

description of logic processes

• In the 1930’s Claude Shannon used Boolean Algebra to describe circuits built with switches

• Boolean Algebra is an effective tool for describing logic circuits

Slide 3 of 13

Page 4: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraBoolean Logic

Wed, Sept 2 CEC 220 Digital Circuit Design

• Two logic levels TRUE = HIGH = 1 FALSE = LOW = 0

+5

V

0

1 0 1

T ime

Transition from logic 1 to logic 0does not take place instantaneouslyin real digital systems

+5

V

0

Logic 1

Logic 0 Intermediate values may be visiblefor an instant

Time

Slide 4 of 13

Page 5: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraBasic Operations: NOT, AND, OR

Wed, Sept 2 CEC 220 Digital Circuit Design

• Logical NOT Description:

o The output is the complement/inverse/opposite of the input

Symbolic Representation (NOT gate):

Truth Table Representation:

Boolean Description: C = NOT A

A C

A C0 11 0

A CF TT F

or C = A’ or C =

Slide 5 of 13

Page 6: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraBasic Operations: NOT, AND, OR

Wed, Sept 2 CEC 220 Digital Circuit Design

• Logical AND Description:

o The output is TRUE if and only if all the inputs are TRUE

Symbolic Representation (AND gate):

Truth Table Representation:

Boolean Description: C = A AND B

A B C0 0 00 1 01 0 01 1 1

A B CF F FF T FT F FT T T

or C = AB or C = A B

Slide 6 of 13

Page 7: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraBasic Operations: NOT, AND, OR

Wed, Sept 2 CEC 220 Digital Circuit Design

• Logical OR Description:

o The output is TRUE if any of the inputs are TRUE

Symbolic Representation (OR gate):

Truth Table Representation:

Boolean Description: C = A OR B

A B C0 0 00 1 11 0 11 1 1

A B CF F FF T TT F TT T T

or C = A + B

This is NOT addition!!Slide 7 of 13

Page 8: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraLogic Gates and Boolean Expressions

Wed, Sept 2 CEC 220 Digital Circuit Design

• Derive an expression for the output of this logic circuit? Eventually we will omit the “” in the AND gate and “+” in

the OR gate

• The logic expression is a function of three variables (A, B, and C).

B’

AB’AB’+C

Higher precedence!!

Lower precedence!!

Slide 8 of 13

Page 9: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraLogic Gates and Boolean Expressions

Wed, Sept 2 CEC 220 Digital Circuit Design

• Derive an expression for the output of this logic circuit?

• The output is which may also be written as [A(C+D)]’+BE This expression has five variables (A, B, C, D, and E)

C+D A(C+D) A(C+D )

BE

+

Slide 9 of 13

Page 10: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraLogic Gates and Boolean Expressions

Wed, Sept 2 CEC 220 Digital Circuit Design

• Literals Each appearance of a variable or its complement in an

expression is referred to as a literal. Example:

The expression has three variables (A, B, and C) The expression has 10 literals

AB’C+A’B+A’BC’+B’C’

Slide 10 of 13

Page 11: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Boolean AlgebraTruth Tables of a Logic Circuit

Wed, Sept 2 CEC 220 Digital Circuit Design

• Determine the truth table for the output (F) of the logic circuit

A B0 00 11 01 1

A’1100

F=A’+B1101

Two variablesFour possible inputs (i.e. 2n)

Truth table lists ALL possible inputs and associated outputs

Slide 11 of 13

Page 12: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

A+C01011111

Boolean AlgebraTruth Tables of a Logic Circuit

Wed, Sept 2 CEC 220 Digital Circuit Design

• Determine the truth table for the output of the logic circuit A

C

BB’

B’+C

A+C

(A+C)(B’+C)

B’+C11011101

A+C B’+C (A+C)(B’+C)01011101

(A+C)(B’+C)B’11001100

A00001111

B00110011

C01010101

Slide 12 of 13

Page 13: CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13

Next Lecture

Wed, Sept 2 CEC 220 Digital Circuit Design

• Basic Boolean Theorems• Implementation of Boolean Expressions

Slide 13 of 13