2.2 boolean algebra

24
2.2 Perform operations with Boolean Algebra LOGIC GATES, TRUTH TABLE, AND IT’S OPERATIONS

Upload: wan-afirah

Post on 03-Jul-2015

340 views

Category:

Education


0 download

TRANSCRIPT

Page 1: 2.2 boolean algebra

2.2Perform operations

with Boolean AlgebraLOGIC GATES, TRUTH TABLE, AND IT’S

OPERATIONS

Page 2: 2.2 boolean algebra

What is Logic Gates?

Logic gates in binary system is

use to represent process and

operation for binary

information in matematic.

Page 3: 2.2 boolean algebra

AND FunctionOutput Y is TRUE if inputs A AND B are

TRUE, else it is FALSE.

Logic Symbol

Text Description

Truth Table

Boolean Expression

AND

A

BY

INPUTS OUTPUT

A B Y

0 0 0

0 1 0

1 0 0

1 1 1 AND Gate Truth Table

Y = A x B = A • B = AB

AND Symbol

Page 4: 2.2 boolean algebra

OR FunctionOutput Y is TRUE if input A OR B is

TRUE, else it is FALSE.

Logic Symbol

Text Description

Truth Table

Boolean Expression Y = A + B

OR Symbol

A

BYOR

INPUTS OUTPUT

A B Y

0 0 0

0 1 1

1 0 1

1 1 1 OR Gate Truth Table

Page 5: 2.2 boolean algebra

NOT Function (inverter)

Output Y is TRUE if input A is FALSE,

else it is FALSE. Y is the inverse of

A.

Logic Symbol

Text Description

Truth Table

Boolean Expression

INPUT OUTPUT

A Y

0 1

1 0 NOT Gate Truth Table

A YNOT

NOT

Bar

Y = AY = A’

Alternative Notation

Y = !A

Page 6: 2.2 boolean algebra

NAND FunctionOutput Y is FALSE if inputs A AND B

are TRUE, else it is TRUE.

Logic Symbol

Text Description

Truth Table

Boolean Expression

A

BYNAND

A bubble is an inverter

This is an AND Gate with an inverted output

Y = A x B = AB

INPUTS OUTPUT

A B Y

0 0 1

0 1 1

1 0 1

1 1 0 NAND Gate Truth Table

Page 7: 2.2 boolean algebra

NOR FunctionOutput Y is FALSE if input A OR B is

TRUE, else it is TRUE.

Logic Symbol

Text Description

Truth Table

Boolean Expression Y = A + B

A

BYNOR

A bubble is an inverter.

This is an OR Gate with its output inverted.

INPUTS OUTPUT

A B Y

0 0 1

0 1 0

1 0 0

1 1 0 NOR Gate Truth Table

Page 8: 2.2 boolean algebra

Ex-OROutput C is FALSE if inputs A and B are same value,

else output is TRUE.

Symbol:

A

C

B

Page 9: 2.2 boolean algebra

Get Exclusive (EX-OR)

Truth Table

Boolean Expression

INPUTS OUTPUT

A B C

0 0 0

0 1 1

1 0 1

1 1 0 EX-OR Gate Truth Table

Page 10: 2.2 boolean algebra

Ex-NOROutput C is TRUE if inputs A and B are same value, else

output is FALSE.

Symbol:

AC

B

Page 11: 2.2 boolean algebra

Get Exclusive (EX-NOR)

Truth Table

Boolean Expression

INPUTS OUTPUT

A B C

0 0 1

0 1 0

1 0 0

1 1 1 EX-NOR Gate Truth Table

Page 12: 2.2 boolean algebra

Circuit-to-Truth Table Example

OR

A

Y

NOT

AND

B

CAND

2# of Inputs = # of Combinations

2 3 = 8

0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

A B C Y

Page 13: 2.2 boolean algebra

Circuit-to-Truth Table Example

OR

A

Y

NOT

AND

B

CAND

0 0 00 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

A B C Y

0

0

0

0

10

0

0

Page 14: 2.2 boolean algebra

Circuit-to-Truth Table Example

0 0 0 0 0 10 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

A B C Y

0

OR

A

Y

NOT

AND

B

CAND

0

0

1

0

11

1

1

Page 15: 2.2 boolean algebra

Circuit-to-Truth Table Example

0 0 0 0 0 1 0 1 00 1 1 1 0 0 1 0 1 1 1 0 1 1 1

A B C Y

010

OR

A

Y

NOT

AND

B

CAND

0

1

0

0

10

0

0

Page 16: 2.2 boolean algebra

Circuit-to-Truth Table Example

0 0 0 0 0 1 0 1 0 0 1 11 0 0 1 0 1 1 1 0 1 1 1

A B C Y

010

0

OR

A

Y

NOT

AND

B

CAND

0

1

1

0

11

1

1

Page 17: 2.2 boolean algebra

Circuit-to-Truth Table Example

0 0 0 0 0 1 0 1 0 0 1 1 1 0 01 0 1 1 1 0 1 1 1

A B C Y

0101

0

OR

A

Y

NOT

AND

B

CAND

1

0

0

0

00

0

0

Page 18: 2.2 boolean algebra

Circuit-to-Truth Table Example

0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 11 1 0 1 1 1

A B C Y

01010

0

OR

A

Y

NOT

AND

B

CAND

1

0

1

0

00

0

0

Page 19: 2.2 boolean algebra

Circuit-to-Truth Table Example

0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 01 1 1

A B C Y

010100

0

OR

A

Y

NOT

AND

B

CAND

1

1

0

1

00

1

1

Page 20: 2.2 boolean algebra

Circuit-to-Truth Table Example

0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

A B C Y

0101001

0

OR

A

Y

NOT

AND

B

CAND

1

1

1

1

00

1

1

Page 21: 2.2 boolean algebra

Circuit-to-Boolean Equation

OR

A

Y

NOT

AND

B

CAND

A B

A C

A= A B + A C

0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

A B C Y

0

0

00

0

11

}

1

1

}

Page 22: 2.2 boolean algebra

A - O - I Logic

OR

A

Y

NOT

AND

B

CAND

AND Gates

INVERTER Gates

OR GatesOther Logic Arrangements:

NAND - NAND Logic

NOR - NOR Logic

Page 23: 2.2 boolean algebra

NAND Gate – Special Application

INPUTS OUTPUT

A B Y

0 0 1

0 1 1

1 0 1

1 1 0

A

BYNAND

TNANDS

S T

0010 11 0

Equivalent To An Inverter Gate

Page 24: 2.2 boolean algebra

NOR Gate - Special Application

S T

0010 11 0

Equivalent To An Inverter Gate

TS NOR

A

BYNOR

INPUTS OUTPUT

A B Y

0 0 1

0 1 0

1 0 0

1 1 0