COMP 150 Homework 2
This is an individual assignment, not a pair assignment.
Turn it in on paper. It is due in class, not at midnight.
- (5 points) Create circuit diagram for the Boolean expression (AB + C)D.
- (5 points) Write a Boolean expression for the output of this circuit:
-
(5 points) Write a Truth Table for the Boolean expression (A+B')C.
Include columns for the inputs A, B, and C. Please include a column
in your truth table for the output of each intermediate expression.
Include rows for all 8 combinations of input variables.
- (5 points) A three-way majority circuit is one with three inputs and a
single output which is set to 1 whenever two or more of the
inputs (the majority) are set to 1.
There are eight possible combinations for the input settings.
Please give a truth table which lists rows for all eight input combinations along with
the output setting for each case.
- (5 points) Write a Boolean expression for the output of the three-way majority.
- (5 points) Construct a circuit which implements the three-way majority function
discussed in the previous two questions. You may use AND and OR gates with more than 2 inputs to make it easier.
Please turn in your answers on PAPER IN CLASS. (Add the extra creadit portion below if you like.)
Extra Credit (5 points)
Interestingly, any given boolean function can be calculated by a
circuit consisting solely of NAND gates.