0 index
1 Gates
2 Computer Logic
3 Computer Logic 2
4 Computer Logic 3
5 Mechanical realization of a switch
6 Mechanical realization of a switch 2
7 Gate types
8 The NOT gate
9 The NOT gate 2
10 The OR gate
11 The OR gate 2
12 The AND gate
13 The AND gate 2
14 A Logical Problem
15 Logic Gate Symbols
16 Ed's solution
17 Ed's Solution 2
18 BOOLEAN ALGEBRA
19 BOOLEAN ALGEBRA 2
20 BOOLEAN ALGEBRA 3
21 BOOLEAN ALGEBRA - Example
22 BOOLEAN ALGEBRA - Example 2
23 Use of parentheses
24 Boolean Logic
25 Typical Circuit
26 Circuit Diagram
27 Circuit Diagram
28 Diagram example
29 Example
30 One-bit compare-for-equality circuit
31 ADD Circuit

outline
created using slideshow.cgi by Andy Harris















CSCI N301 Fundamental CS Concepts: n301/Gates
1. Gates
  • Electronic devices
    • built of transistors
  • Implement truth tables
    • true = high voltage
    • false = low voltage



































CSCI N301 Fundamental CS Concepts: n301/Gates
2. Computer Logic
  • What is the smallest functional companent in a computer system?



































CSCI N301 Fundamental CS Concepts: n301/Gates
3. Computer Logic 2
  • Gone for the CSCI 230 lecture



































CSCI N301 Fundamental CS Concepts: n301/Gates
4. Computer Logic 3
  • Meet you at Kelly's pub



































CSCI N301 Fundamental CS Concepts: n301/Gates
5. Mechanical realization of a switch
  • When both pumps are ON, then there is no waterflow.



































CSCI N301 Fundamental CS Concepts: n301/Gates
6. Mechanical realization of a switch 2
  • When you turn the lower pumps off, water is allowed to passed.



































CSCI N301 Fundamental CS Concepts: n301/Gates
7. Gate types
  • Using water gates, we build the next level functional component in a digital system - the NOT, OR, & AND gates.



































CSCI N301 Fundamental CS Concepts: n301/Gates
8. The NOT gate
  • The logical operation of a NOT gate is:
    INOUT
    01
    10



































CSCI N301 Fundamental CS Concepts: n301/Gates
9. The NOT gate 2
  • Design a NOT gate using water pumps



































CSCI N301 Fundamental CS Concepts: n301/Gates
10. The OR gate
  • The logical operation of an OR gate is:
    IN1IN2OUT
    000
    101
    011
    111



































CSCI N301 Fundamental CS Concepts: n301/Gates
11. The OR gate 2
  • Design the OR function using waterpumps



































CSCI N301 Fundamental CS Concepts: n301/Gates
12. The AND gate
  • The logical operation of an AND gate is:
    IN1IN2OUT
    000
    010
    100
    111



































CSCI N301 Fundamental CS Concepts: n301/Gates
13. The AND gate 2
  • Design the AND function using water pumps



































CSCI N301 Fundamental CS Concepts: n301/Gates
14. A Logical Problem
  • Ed will go to a certain party only id Dan or Carol goes.
  • Dan will go if Ann goes and Bob does not
  • Ann and Carol and Bob have decided not to go.
  • Will Ed go to the party?



































CSCI N301 Fundamental CS Concepts: n301/Gates
15. Logic Gate Symbols
  • AND gateOR gateNOT gate



































CSCI N301 Fundamental CS Concepts: n301/Gates
16. Ed's solution
  • Does Ed go to the party?



































CSCI N301 Fundamental CS Concepts: n301/Gates
17. Ed's Solution 2
  • A logic curcuit for the party problem:




































CSCI N301 Fundamental CS Concepts: n301/Gates
18. BOOLEAN ALGEBRA
  • Boolean algebra allows a symbolic & systematic approach to represent logical relationships.



































CSCI N301 Fundamental CS Concepts: n301/Gates
19. BOOLEAN ALGEBRA 2
  • In ordinary algebra, symbols (variables) represents quantities.
  • Ex: x=$1.05 (price of a gollon of gas)



































CSCI N301 Fundamental CS Concepts: n301/Gates
20. BOOLEAN ALGEBRA 3
  • In Boolean algebra, symbols represents logical statements and the value can be only TRUE (=1) or FALSE (=0).



































CSCI N301 Fundamental CS Concepts: n301/Gates
21. BOOLEAN ALGEBRA - Example
  • Ex: It is sunny today.
  • If r represents the above sentance, then
        r= TRUE   if it is sunny, and
    r=FALSE if it is not sunny



































CSCI N301 Fundamental CS Concepts: n301/Gates
22. BOOLEAN ALGEBRA - Example 2
  • ~r is the opposite of r; ~~r = r.
  • ~
    .
    +



































CSCI N301 Fundamental CS Concepts: n301/Gates
23. Use of parentheses
  • Ex:
         5 - 3 - 1 = ?
    5 - (3 - 1) = ?
  • "()" tells which algerbra, the order is: (), NOT, AND, OR
    Ex:     ~~((p + ~p) . ~~q)
    



































CSCI N301 Fundamental CS Concepts: n301/Gates
24. Boolean Logic
  • George Boole, mid 1800s
  • Algebra for logic
    • True/False values
    • Combinations of true/false with AND, OR, NOT
    • Truth tables



































CSCI N301 Fundamental CS Concepts: n301/Gates
25. Typical Circuit
  • Diagram of a typical circuit:




































CSCI N301 Fundamental CS Concepts: n301/Gates
26. Circuit Diagram
  • There is a direct relationship between Boolean expressions and circuit diagrams of this type. Every Boolean expression can be represented pictorially as a circuit diagram, and every output value in a diagram can be written as a Boolean expression.




































CSCI N301 Fundamental CS Concepts: n301/Gates
27. Circuit Diagram
  • Above equals:

    c = (a OR b
    d = NOT ((a OR b)) AND (NOT b))




































CSCI N301 Fundamental CS Concepts: n301/Gates
28. Diagram example
  • In the previous example, if a = 1 and b, then the value on the c output line is 1, and the value on the d output line is 0. These values can be determined as follows:




































CSCI N301 Fundamental CS Concepts: n301/Gates
29. Example
  • Here is an example of the use of the NOT, OR , & AND:




































CSCI N301 Fundamental CS Concepts: n301/Gates
30. One-bit compare-for-equality circuit



































CSCI N301 Fundamental CS Concepts: n301/Gates
31. ADD Circuit
  • Construct of a common ADDer diagram:

  • Truth Table:
    InputsOutputs
    aibicisici+1



































outline

Gates

Computer Logic

Computer Logic 2

Computer Logic 3

Mechanical realization of a switch

Mechanical realization of a switch 2

Gate types

The NOT gate

The NOT gate 2

The OR gate

The OR gate 2

The AND gate

The AND gate 2

A Logical Problem

Logic Gate Symbols

Ed's solution

Ed's Solution 2

BOOLEAN ALGEBRA

BOOLEAN ALGEBRA 2

BOOLEAN ALGEBRA 3

BOOLEAN ALGEBRA - Example

BOOLEAN ALGEBRA - Example 2

Use of parentheses

Boolean Logic

Typical Circuit

Circuit Diagram

Circuit Diagram

Diagram example

Example

One-bit compare-for-equality circuit

ADD Circuit