Computer Science 101 Survey of Computer Science - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

Computer Science 101 Survey of Computer Science

Description:

Boolean values true and false map to binary values 1 and 0 ... Next, put a NOT gate in for each variable that appears negated in the expression. ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 24
Provided by: tomwh
Category:

less

Transcript and Presenter's Notes

Title: Computer Science 101 Survey of Computer Science


1
Computer Science 101Survey of Computer Science
  • Introduction to
  • Logic Circuits

2
From Boolean Logic to Hardware
  • Boolean values true and false map to binary
    values 1 and 0
  • Binary values 1 and 0 map to discrete states on
    and off
  • Discrete states on and off map to voltage levels
    5V and 0V on an analog device
  • Connect these devices to perform logical
    operations

3
Transistor - Electronic Switch
  • Base High (5v or 1) Makes connection
  • Base Low (0v or 0) Disconnects

4
AND Gate
5v
  • Output is 1 only if
  • Input-1 is 1 and
  • Input-2 is 1
  • Output Input1 AND Input2

Output
5
OR Gate
  • Output is 1 if
  • A is 1 or if
  • B is 1
  • Output A OR B

6
NOT Gate
  • Input High (5v or 1) Output Low (0v or 0)
  • Input Low (0v or 0) Output High (5v or 1)
  • Output is opposite of Input

5v
Output
Input
Ground
7
Boolean Exp ? Logic Circuit
  • To draw a circuit from a Boolean expression
  • From the left, make an input line for each
    variable.
  • Next, put a NOT gate in for each variable that
    appears negated in the expression.
  • Still working from left to right, build up
    circuits for the subexpressions, from simple to
    complex.

8
Logic Circuit _ ____ AB(AB)B
Input Lines for Variables
A
B
9
Logic Circuit _ ____ AB(AB)B
NOT Gate for B
A
B
_ B
10
Logic Circuit _ ____ AB(AB)B
_ Subexpression AB
_ AB
A
B
_ B
11
Logic Circuit _ ____ AB(AB)B
Subexpression AB
_ AB
A
AB
B
_ B
12
Logic Circuit _ ____ AB(AB)B
___ Subexpression AB
_ AB
A
____ AB
AB
B
_ B
13
Logic Circuit _ ____ AB(AB)B
___ Subexpression (AB)B
_ AB
A
____ AB
AB
B
_ B
____ (AB)B
14
Logic Circuit _ ____ AB(AB)B
Entire Expression
15
Logic Circuit ? Boolean Exp
  • In the opposite direction, given a logic circuit,
    we can write a Boolean expression for the
    circuit.
  • First we label each input line as a variable.
  • Then we move from the inputs labeling the outputs
    from the gates.
  • As soon as the input lines to a gate are labeled,
    we can label the output line.
  • The label on the circuit output is the result.

16
Logic Circuit ? Boolean Exp
_ _ ABAB
17
Simplifying Boolean Expressions
  • As in ordinary algebra, some Boolean expressions
    can be simplified
  • The logic circuit that results from a simplified
    expression will have fewer gates and operations

18
Laws of Boolean Algebra
19
Laws of Boolean Algebra
20
Simplification Revisited
  • Once we have the BE for the circuit, perhaps we
    can simplify.

21
Logic Circuit ? Boolean Exp
Reduces to
22
The Boolean Triangle
Boolean Expression
Logic Circuit
Truth Table
23
The Boolean Triangle
Boolean Expression
Logic Circuit
Truth Table
Write a Comment
User Comments (0)
About PowerShow.com