22c:19 discrete math boolean algebra & digital logic

18
22C:19 Discrete Math Boolean Algebra & Digital Logic Fall 2010 Sukumar Ghosh

Upload: kristy

Post on 14-Feb-2016

74 views

Category:

Documents


0 download

DESCRIPTION

22C:19 Discrete Math Boolean Algebra & Digital Logic. Fall 2010 Sukumar Ghosh. Boolean Algebra. In 1938, Shannon showed how the basic rules of logic first given by George Boole in his 1854 publication The Laws of Thought , can be used to design circuits - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 22C:19 Discrete Math Boolean Algebra & Digital Logic

22C:19 Discrete MathBoolean Algebra & Digital Logic

Fall 2010Sukumar Ghosh

Page 2: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Boolean Algebra

In 1938, Shannon showed how the basic rules of logicfirst given by George Boole in his 1854 publication The Laws of Thought, can be used to design circuitsthat enables computer hardware to perform variousarithmetic and logical operation. These rules form thebasis of Boolean Algebra. These rules involve twoSymbols 1 and 0 (synonymous with true and false) and the operators AND, OR, NOT.

Page 3: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Boolean Algebra

Page 4: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Basic Logic Gates

Page 5: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Circuits to Equations

Page 6: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Circuits to Equations

Page 7: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Equations to Circuits

Page 8: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Implementing XOR

Page 9: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Boolean function

An n-variable Boolean function f : {0.1}n {0,1}⟶

It can be expressed as a truth table.

Page 10: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Boolean Algebra

Page 11: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Sum-of-product form

minterm

Page 12: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Examples of simplification

A . B’ + A . B = A. (B’ + B) = A.1 = A

(A + B).(A + B’) = (A + B.B’) = A + 0 = A

In the reverse way, you can expand a expression,

Like X.Y = X.Y.1 = X.Y (Z + Z’) = X.Y.Z + X.Y.Z’

Page 13: 22C:19 Discrete Math Boolean Algebra & Digital Logic

NAND and NOR gates

Alternative notations: A | B = A NAND BA ↓ B = A NOR B

Page 14: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Binary addition

Page 15: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Half-adder

Page 16: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Is half-adder enough?

Can we add two binary numbers using half adders only?

There is a problem

here

Page 17: 22C:19 Discrete Math Boolean Algebra & Digital Logic

Is half-adder enough?

Page 18: 22C:19 Discrete Math Boolean Algebra & Digital Logic