Fall 2003, Assignment 1

Sections 01 and 02: Due Thursday 9/11 at the start of class

  1. (2 points) Prove whether or not these equations are equivalent by using truth tables. Do not simplify the expressions. (! is NOT).
  2. (6 points total) Consider the three input boolean function that is a 1 if the binary equivalent of the inputs is 1, 2, 3, 4, 7.
  3. (3 points) A computer store has four upgrade packages. They are numbered as 0, 1, 2, 3. There are six different devices that can be added: LCD Monitor, Extra RAM, DVD, Ethernet Card, Modem, or UPS. Below are the possible configurations for the upgrade pacakges.
    Package LCD Monitor Extra Rom DVD Ethernet Card Modem UPS
    0 No No Yes No No No
    1 No No Yes Yes Yes Yes
    2 Yes No Yes No No Yes
    3 Yes Yes No Yes Yes Yes


    Implement this using a PLA. The input to the PLA will be the package number represented as a binary number, you must use the minimum possible input lines to accomplish this. The ouput will be the six possible devices. Draw all the lines that into each AND gate (4 for each AND gate). Draw all the output lines from the AND gates that you use into each of the OR gates you use. Indicate which fuses have been blown, and which have not.

  4. (3 points total) A 2-bit encoder is a circuit with four input lines, exactly one of which is high at any instant, and two output lines whose 2-bit binary value tells which input is high. Only one of the input lines will ever be active at the same time. You do not have to consider the cases if more than one is active.
    1. (1) Draw the truth table for a 2-bit encoder. There will be four input variables and two output variables. Only one of the input variables can be 1 at a given time, so there are only 4 possible combinations for valid input variables.
    2. (1) Draw the circuit for the 2-bit encoder.
    3. (1) Draw the circuit for a 3-bit encoder. There will be 8 input lines and 3 output lines.
  5. (2 points) Using the MSI Multiplexer chip on page132 and one inverter, implement the 4-input boolean function that is a 1 when the binary equivalent of the inputs is 1, 2, 7, 9, 12, 14, or 15 . Label the 4 inputs as A, B, C, and D. (Hint: Vcc, Ground, D, not D). You may use an additional inverter. You must use the multiplexer as it is shown: it has only three input lines, A, B, C.
  6. (4 points) The shifter on page 136 only has two functions: logical shift right and logical shift left. Create a new circuit that implements a shifter with four functions: arithmetic shift right, don't shift, logical shift left, logical shift right. The shifting done in the book is logical shifting: a 0 is placed into the S0 or S7 bit, depending on which way the shift goes. An arithmetic shift right places D0 into both S0 and S1: it is duplicating the sign bit. A don't shift operation would send each data bit to the corresponding output: D0 to S0, D1 to S1, etc. Be sure that only one of these functions is enabled at a time.
  7. Just for fun: Draw a 3-bit decoder using AND and OR gates, and only two NOT gates. You may use as many AND and OR gates as needed. You may not use any other circuits, such as NAND, NOR, XOR.

Course Objectives met by this Homework

1. Be exposed to the hierarchy of virtual machines in a computer system
3. Master the design of memory, ALU, control unit, and design of microprogram