18
Understanding Boolean Algebra Software Developers View of Hardware

Boolean Algebra

  • Upload
    gavhays

  • View
    1.445

  • Download
    4

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Boolean Algebra

Understanding Boolean Algebra

Understanding Boolean Algebra

Software Developers View of Hardware

Software Developers View of Hardware

Page 2: Boolean Algebra

What is Boolean Algebra?What is Boolean Algebra?

Is used to describe logical propositions where the outcome is either true or false.

Is used to describe logical propositions where the outcome is either true or false.

Page 3: Boolean Algebra

Algebra NotationAlgebra NotationLogic Gate Meaning Notation

NOT NOT A A

OR A OR B A+B

AND A AND B A.B

XOR A XOR B A B

Page 4: Boolean Algebra

The ProcessThe Process

Page 5: Boolean Algebra

Step 1Step 1

Find the output for Q.

Q = C.D

Find the output for Q.

Q = C.D

Page 6: Boolean Algebra

Step 2Step 2

Find the output for D.

D = A+B

Find the output for D.

D = A+B

Page 7: Boolean Algebra

Step 3Step 3

Find the output for C.

C = NOT B

Find the output for C.

C = NOT B

Page 8: Boolean Algebra

Step 4Step 4

Combine the equation.

Q = (NOT B).(A+B)

Combine the equation.

Q = (NOT B).(A+B)

Page 9: Boolean Algebra

Step 5Step 5 Test via a truth table. Test via a truth table.

A B C B A+B Q0 0 0 1 0 0

0 0 1 1 0 0

0 1 0 0 1 0

0 1 1 0 1 0

1 0 0 1 1 1

1 0 1 1 1 1

1 1 0 0 1 0

1 1 1 0 1 0

Page 10: Boolean Algebra

Activity 1Activity 1

Construct a truth table for the following circuit using Boolean algebra:

Construct a truth table for the following circuit using Boolean algebra:

Page 11: Boolean Algebra

AnswerAnswer

A B C=A D=C.B Q=B+D0 0 1 0 0

0 1 1 1 1

1 0 0 0 0

1 1 0 0 1

Page 12: Boolean Algebra

Activity 2Activity 2

Construct a circuit that will output 1 only when A=0 and B=1.

Construct a circuit that will output 1 only when A=0 and B=1.

A B Q0 0 0

0 1 1

1 0 0

1 1 0

Page 13: Boolean Algebra

AnswerAnswer

Page 14: Boolean Algebra

Activity 3Activity 3

We can solve a problem if we are given a truth table rather than a written description. Here is another truth table, create a circuit from it.

We can solve a problem if we are given a truth table rather than a written description. Here is another truth table, create a circuit from it.

A B Q0 0 1

0 1 0

1 0 1

1 1 1

Page 15: Boolean Algebra

AnswerAnswer

Page 16: Boolean Algebra

Activity 5Activity 5

You have a buzzer in your car that sounds when your keys are in the ignition and the door is open (Door Open = 0).Create the following: Algebra Notation Truth Table Circuit

You have a buzzer in your car that sounds when your keys are in the ignition and the door is open (Door Open = 0).Create the following: Algebra Notation Truth Table Circuit

Page 17: Boolean Algebra

Activity 6Activity 6

You have a buzzer in your car that sounds when your keys are in the ignition and the door is open (Door Open = 0).Create the following: Algebra Notation Truth Table Circuit

You have a buzzer in your car that sounds when your keys are in the ignition and the door is open (Door Open = 0).Create the following: Algebra Notation Truth Table Circuit

Page 18: Boolean Algebra

SituationsSituations

1.You have a buzzer in your car that sounds when your keys are in the ignition and the door is open.

2.You have a fire alarm installed in your house. This alarm will sound if it senses heat or smoke.

3.There is a federal election coming up. People are allowed to vote if they are a Canadian citizen and they are 18.

4.Mr. Carranza is giving his students an assignment. To complete the assignment the students must do a presentation or write an essay.

5.Stephanie is applying to a university Applied Mathematics program. She must have OACs in Algebra, Calculus and Physics or Chemistry.

1.You have a buzzer in your car that sounds when your keys are in the ignition and the door is open.

2.You have a fire alarm installed in your house. This alarm will sound if it senses heat or smoke.

3.There is a federal election coming up. People are allowed to vote if they are a Canadian citizen and they are 18.

4.Mr. Carranza is giving his students an assignment. To complete the assignment the students must do a presentation or write an essay.

5.Stephanie is applying to a university Applied Mathematics program. She must have OACs in Algebra, Calculus and Physics or Chemistry.