Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete...

20
Binary Logic Section 1.9

Transcript of Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete...

Page 1: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Binary Logic

Section 1.9

Page 2: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Binary Logic

• Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical meaning (e.g. AND, OR and NOT)

Page 3: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Home Alarm Logic

W1, W2, P and D are variables which can take on discrete values.

Page 4: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Synthesis of Logic Circuits

(Boolean Algebra)

Page 5: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Curriculum Connection

Page 6: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Boolean Algebra

Page 7: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

George Boole

• An English Mathematician• An inventor of Boolean Logic• Boolean logic=Basis of computer logic• His work was re-discovered byClaude Shannon 70 years afterBoole’s death

Page 8: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Associative Law

• A+(B+C)=(A+B)+C• (A ∙ B) ∙ C=A ∙(B∙C)• Interpretation: we can group the

variables in AND or OR any way we want

• Example:– 1+(1+0)=(1+1)+0– (1∙ 0)0=1(1∙0)

Page 9: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Distributive Law

• X ∙(Y+Z)=X ∙ Y+X ∙ Z• (W+X)(Y+Z)=W ∙ Y+X ∙ Y+W ∙ Z+X

∙ Z• In Plain English: An expression can

be expanded by multiplying term by term just as in ordinary algebra

• Example:– 1 ∙(1+0)=1 ∙ 1+1 ∙ 0

Page 10: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Commutative Laws

• X+Y=Y+X• X ∙ Y=Y ∙ X• In Plain English: The order in which

we OR or AND two variables are not important

• Example– (1+0)=(1+0)

Page 11: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Duality

• If the dual of an algebraic expression is desired, we simply – Interchange OR and AND– Interchange 1 and 0

• Example– A+(B+C)=(A+B)+C– (A ∙ B) ∙ C=A ∙(B∙C)

Page 12: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

DeMorgan’s Theorem

• Basic Operation:– Interchange an OR with an AND– Invert A– Invert B

• Example

Page 13: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Logic Gates

Page 14: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Logic Gates• Logic gates are electronic circuits

that operate on one or more input signals to produce signals

Page 15: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Hierarchy of Digital Circuits

(Packaged Gates)

Page 16: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Curriculum Connection

Page 17: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

AND Operationx AND y is equal to z

Interpretation:z=1 if and only if x=1 and y=1

A truth table

Page 18: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

OR Operationx OR y is equal to z

Interpretation:z=1 if x=1 or y=1

This is not binaryaddition

Page 19: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

NOT Operation

Not x is equal to x’

Interpretation:x’ is what x is not

x’ performs the complement operation

Page 20: Binary Logic Section 1.9. Binary Logic Binary logic deals with variables that take on discrete values (e.g. 1, 0) and with operations that assume logical.

Input-Output Signals for Gates