Discrete Mathematics CS 2610 - PowerPoint PPT Presentation

About This Presentation
Title:

Discrete Mathematics CS 2610

Description:

Half. Adder. Half. Adder. sum. Carry out. Carry in. x. y. 5. Add Three ... minterms is equivalent to the single term that results when this variable is removed ... – PowerPoint PPT presentation

Number of Views:62
Avg rating:3.0/5.0
Slides: 12
Provided by: wdpo
Learn more at: http://cobweb.cs.uga.edu
Category:

less

Transcript and Presenter's Notes

Title: Discrete Mathematics CS 2610


1
Discrete Mathematics CS 2610
February 19, 2009
2
Logic Gates the basic elements of circuits
  • Electronic circuits consist of so-called gates
    connected by wires

x
x
Inverter (NOT gate)
OR gate
x
xy
AND gate
y
 
3
Half Adder
x
y
sum
carry
4
Full Adder
sum
Half Adder
Carry in
Half Adder
x
Carry out
y
5
Add Three Bits
x0
Half Adder
s0
y0
c0
Full Adder
s1
x1
y1
c1
s2
Full Adder
x2
y2
c2s3
6
Circuit Minimization
  • We have seen that a function can be represented
    by many different equivalent expressions
  • Before building our circuit, we want to find a
    simple expression for the function
  • When building circuits, we want to use the
    minimum possible number of gates (why?)
  • For example, instead of xyz xyz, we can use xz
  • How do we find the minimum expression?

7
Adjacent Minterms
  • To minimize circuits, start by writing your
    function in DNF (sum of products)
  • Two minterms are adjacent if they differ by one
    variable, which is negated in one minterm and not
    negated in another
  • The sum of two adjacent minterms is equivalent to
    the single term that results when this variable
    is removed
  • E.g., xyz xyz xz

8
Why Adjacent?
  • We can represent functions by using Karnaugh maps

y
y
x
x y
x y
x
x y
x y
9
Example
  • xy xy xy x y

y
y
x
1
1
x
1
10
Three Variable Karnaugh Maps
  • With the three variables x, y, z, we can let x
    and x be on the vertical side as before
  • The table will now have 4 columns yz, yz, yz,
    and yz
  • Order is important! Columns must be adjacent to
    each other
  • We also consider the first and last columns to be
    adjacent
  • Picture the table as a flattened cylinder
  • A block of 2 cells cancels out 1 variable
  • A block of 4 cells cancels out 2 variables
  • What if we have a block of 8 cells?

11
3-Variable Example
  • xyz xyz xyz xyz xyz z xy

yz
yz
yz
yz
x
1
1
1
1
1
x
implicant, prime implicant, essential prime
implicant
Write a Comment
User Comments (0)
About PowerShow.com