Homework 2
Boolean Algebra and Digital Logic

Due: Tuesday, November 7, 2006 at 9am

Outcomes

After successfully completing this assignment, you will be able to...

Before Starting

Read Chapter 3.

Format and Submission of Assignment

The solution for this assignment must be submitted as hard-copy at the beginning of class (9am) on November 7. All papers must be stapled together, and your name, login name, and section number must appear at the top of every sheet. Handwriting must be legible - if we can't read it, the grade is zero.

Problems

  1. (10 points) Use a Karnaugh map to minimize the function F on 3 variables given by:
    F(a,b,c) = abc' + ab'c' + a'bc + a'bc'
    
    Make sure your Karnaugh map is clearly labelled. (You don't have to draw the circuit, just use the Karnaugh map to come up with an equivalent minimal Boolean equation.)

  2. (10 points) Minimize the function F from problem 1, but this time do it by applying the postulates and theorems of Boolean Algebra (the postulates (P1 through P6) and theorems (Th1 through Th16) are listed on pages 44 and 45 of this pdf file). Here are the first couple of steps to get you started. Don't combine any steps (each step should follow from a single application of one of the postulates or theorems).
               step                             reason
               ----                             ------
    
    F(a,b,c) = abc' + ab'c' + a'bc + a'bc'      given
    F(a,b,c) = a(bc' + b'c') + a'bc + a'bc'     P4 (distributive law)
    .                                           .
    .                                           .
    .                                           .        
    
  3. (5 points) Do problem 3.12 from the textbook.

  4. (10 points) Do problem 3.24 from the textbook.

  5. (10 points) A 4-bit comparator is a component that takes two four-bit words as inputs and produces a single bit of output. The output is 0 if the words are identical, and is a 1 otherwise. Design a 4-bit comparator using AND, OR, and NOT gates. (Hint: Think of the 4-bit comparator as four 1-bit comparators combined in some fashion.)

  6. (10 points) Draw the logic diagram of a 2-bit demultiplexer, a circuit whose single input line is steered to one of the four output lines depending upon the state of the two control lines.

  7. (30 points) People have any one of four blood types - A, B, AB, and O. Type O can donate blood to any type but receive only from O. Type AB can receive blood from any type but can donate only to AB. A can donate to A or AB and receive from A or O. B can donate to B or AB and receive from B or O. You will design a logic circuit that will accept as inputs the blood types of a desired donor-receiver pair and will output 1 if the transfusion is permissible by these rules.

    To get you started, note that you need 2 bits to be able to uniquely identify each of the four blood types. Use the following table to define the blood types:

    0 0 O
    0 1 B
    1 0 A
    1 1 AB

  8. (5 points) The 4 x 3 memory pictured in Figure 3.21 in the textbook uses 20 AND gates and 3 OR gates. If the memory were to be expanded to 256 x 8, how many of each kind of gate would be needed?

  9. (10 points) Do problem 3.42 from the textbook.