Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Computer Science David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 111 06 September 6, 2007.

Similar presentations


Presentation on theme: "Introduction to Computer Science David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 111 06 September 6, 2007."— Presentation transcript:

1 Introduction to Computer Science David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 111 06 September 6, 2007

2 Binary Logic At its lowest level, a computer operates on electrical current Voltage levels indicate ON or OFF An ON state represents binary digit 1 An OFF state represents binary digit 0 We use binary logic to describe binary variables and how they are processed Such processing is done by logical circuits called gates

3 Logic Gates http://www.inetdaemon.com/tutorials/theory/number_systems/binary/gates.shtml A logic gate is a logic device that accepts one or more binary inputs and produces one binary output We combine these logic gates to build integrated circuits

4 Integrated Circuits (i) Consider the following integrated circuit (IC): What is x when A = 0, B = 1, and C = 1 ? What is x when A = 1, B = 1, and C = 1 ? What is x when A = 0, B = 0, and C = 0 ?

5 Integrated Circuits (ii) Given the inputs to the following IC, what is x ?

6 Boolean Logic Expressions (i) http://www.inetdaemon.com/tutorials/theory/number_systems/binary/gates.shtml We can write boolean logic expressions using the algebraic function notation from the chart

7 Boolean Logic Expressions (ii) Consider the following IC: The boolean logic expression is: Write the truth table _ x = AB + C

8 Boolean Logic Expressions (iii) Consider the following IC: The boolean logic expression is: Write the truth table _ _ x = AB(C + D)

9 Boolean Logic Expressions (iv) Consider the following IC: The boolean logic expression is: Write the truth table _ x = A(A + B)

10 Boolean Logic Expressions (v) Draw integrated circuits for the following boolean logic expressions: _ _ x = ABC _ x = AB(C + D) _ x = (A + B)(C + D) x = ABC Write truth tables for these ICs

11 Using the “Logg-O” Applet Access Logg-O from the Analytical Engine CD or click on the image to go to the Web: Get into teams of two or three Do Lab 7.1 and Lab 7.2 Use “print-screen” to copy your answers into a Word document


Download ppt "Introduction to Computer Science David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 111 06 September 6, 2007."

Similar presentations


Ads by Google