26

03. Logic Gates

Embed Size (px)

DESCRIPTION

logic gate

Citation preview

Page 1: 03. Logic Gates
Page 2: 03. Logic Gates

Boolean variable ◦ 0 or 1

Boolean Algebra ◦ Entities 0 and 1 together with the operators AND,

OR, NOT

B. A. = {0, 1 | AND, OR, NOT}

Page 3: 03. Logic Gates

X NOT (X)/ X

0 1

1 0

Truth Table

Page 4: 03. Logic Gates

X Y X AND Y/ (X.Y)

0 0 0

0 1 0

1 0 0

1 1 1

Page 5: 03. Logic Gates

X Y X OR Y/ (X+Y)

0 0 0

0 1 1

1 0 1

1 1 1

Page 6: 03. Logic Gates

1. X + 0 = X

2. X + 1 = 1

3. X . 0 = 0

4. X . 1 = X

5. X + X = X

Page 7: 03. Logic Gates

6. X . X = X

7. X + X = 1

8. X . X = 0

9. (X) = X

10. Commutative Law

X+Y=Y+X

X.Y=Y.X

Page 8: 03. Logic Gates

Perfect induction employs a truth table which describes the validity of the Boolean entity for all the possible value combinations of the Boolean variables.

Page 9: 03. Logic Gates

I will buy a house if I get a salary increase or if I win the lottery.

Salary Increase Win Lottery

Buy a house = Salary

Increase or Win

Lottery

False False False

False True True

True False True

True True True

Page 10: 03. Logic Gates

X = "get a salary increase“ Y = "win the lottery" F = "buy a house“

X Y F = X + Y

0 0 0

0 1 1

1 0 1

1 1 1

Page 11: 03. Logic Gates

1. I will eat lunch if I am hungry and if lunch is ready.

2. I will buy a new book if the old book is finished or if it is a new subject.

Page 12: 03. Logic Gates

1. X + 0 = X

X X + 0

0 0

1 1

Page 13: 03. Logic Gates

1. X + X.Y = X

2. X. (X. Y) = X

3. X + X.Y = X+Y

Page 14: 03. Logic Gates

Logic gate

It is a digital circuit that performs common logical functions such AND, OR, NOT.

Page 15: 03. Logic Gates

NOT gate ( Inverter) ◦ Performs logical complementation.

X NOT (X)/ X

0 1

1 0

X Z

Page 16: 03. Logic Gates

AND gate ◦ Performs logical multiplication

X

Y

Z

Page 17: 03. Logic Gates
Page 18: 03. Logic Gates
Page 19: 03. Logic Gates

OR gate ◦ Performs logical addition

X

Y

Z

Page 20: 03. Logic Gates
Page 21: 03. Logic Gates

Z = X + X.Y

X

Y

X.Y

X

Z = X + X.Y

Page 22: 03. Logic Gates

1. Z = X. (X + Y)

2. Z = X + X.Y

Page 23: 03. Logic Gates
Page 24: 03. Logic Gates

Why is it better to simplify the Boolean expression?

Page 25: 03. Logic Gates

Z = [(A + B) (A + C) ] Draw logic gate circuit

= A.A + A.C + A.B + C.B

= A+ AC + AB + CB

= A ( 1 + C + B) + CB

= A + CB Draw logic gate circuit

Page 26: 03. Logic Gates

1. Z = A.B + A.B.C + A.B.C.D + A.B.C.D.E

2. Z = ABC [ AB + C (BC + AC)]