Saint Louis University |
Computer Science 140
|
Dept. of Math & Computer Science |
Topic: Gates and Circuits
Related Reading: Ch. 1.1 and notes
Due:
8pm Wednesday, 27 September 2006
For this assignment, we will rely heavily on the Logic Simulator software demonstrated in class. You will need to have an external Internet connection to run this software.
Complete Lab 7.1 associated with the Logic Simulator software. This lab walks you through the use of their Logg-O software, which we will be using for this assignment.
Complete Lab 7.2 associated with the Logic Simulator software. This lab lets you start building some interesting circuits (some of which may look familiar from lecture).
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 are set to 1.
There are eight possible combinations for the input settings. Please give a truth table which lists all eight combinations along with the output setting for each case.
Complete
A | B | Output |
---|---|---|
0 | 0 | ? |
0 | 1 | ? |
1 | 0 | ? |
1 | 1 | ? |
You should give a separate truth table for each of the three circuits given.
Complete
Complete
Construct a circuit which implements the three-way majority function discussed in the previous question, while using the Logic Simulator software. After testing its validity, save it in a file named Majority.dat for submission.
Please type your answers to questions A, B and C in a single document to be submitted electronically. Submit the Logic Simulator files for problems D and E as well. Please see details about the submission process.
Interestingly, any given boolean function can be calculated by a circuit consisting solely of NAND gates. Demonstrate this fact by example, re-create a working "half-adder" circuit using only NAND gates. You should Submit a Logic Simulator file named Extra.dat with your solution.
Please make sure to verify that your circuit produces the expected output in all possible cases. For reference, our original half-adder circuit was demonstrated in class and is available for download.