logic gates. and function output y is true if inputs a and b are true, else it is false. logic...

19
Logic Gates Logic Gates

Upload: arnold-hays

Post on 31-Mar-2015

325 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

Logic GatesLogic Gates

Page 2: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

AND FunctionOutput Y is TRUE if inputs A AND B are TRUE, else it is FALSE.

Logic Symbol

Text Description

Truth Table

Boolean Expression

ANDA

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 3: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 4: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 = A Y = A’Alternative Notation

Y = !A

Page 5: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 inverterThis 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 6: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 7: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 8: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

Circuit-to-Truth Table Example

OR

A

Y

NOT

AND

B

CAND

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

00

0

0

1 0

0

0

Page 9: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 Y0

OR

A

Y

NOT

AND

B

CAND

00

1

0

1 1

1

1

Page 10: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 Y010

OR

A

Y

NOT

AND

B

CAND

01

0

0

1 0

0

0

Page 11: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 Y010

0

OR

A

Y

NOT

AND

B

CAND

01

1

0

1 1

1

1

Page 12: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 Y0101

0

OR

A

Y

NOT

AND

B

CAND

10

0

0

0 0

0

0

Page 13: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 Y01010

0

OR

A

Y

NOT

AND

B

CAND

10

1

0

0 0

0

0

Page 14: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 Y010100

0

OR

A

Y

NOT

AND

B

CAND

11

0

1

0 0

1

1

Page 15: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

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 Y0101001

0

OR

A

Y

NOT

AND

B

CAND

11

1

1

0 0

1

1

Page 16: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

Circuit-to-Boolean Equation

OR

A

Y

NOT

ANDB

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 17: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

A - O - I Logic

OR

A

Y

NOT

ANDB

CAND

AND Gates

INVERTER Gates

OR GatesOther Logic Arrangements:

NAND - NAND LogicNOR - NOR Logic

Page 18: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

NAND Gate – Special Application

INPUTS OUTPUT

A B Y0 0 10 1 11 0 11 1 0

A

BYNAND

TNANDS

S T0010 11 0

Equivalent To An Inverter Gate

Page 19: Logic Gates. AND Function Output Y is TRUE if inputs A AND B are TRUE, else it is FALSE. Logic Symbol Text Description Truth Table Boolean Expression

NOR Gate - Special Application

S T0010 11 0

Equivalent To An Inverter Gate

TS NOR

A

BYNOR

INPUTS OUTPUT

A B Y0 0 10 1 01 0 01 1 0