In this lab you will experiment with digital logic design using the Logisim simulator.
This lab should be done individually, although you may certainly discuss your progress with your neighbors.
lab.circ file has
some slightly nicer settings than Logisim would default to.
Start the logisim simulator, and open the lab.circ file.
(Click on "Open.." under the "File" menu.)
A B | Out ------|---- 0 0 | 0 0 1 | 1 1 0 | 1 1 1 | 0Write a Boolean expression that corresponds to this truth table, and implement your expression using AND, OR, and NOT gates in Logisim. Test your circuit to make sure that it generates the appropriate output for all possible inputs. For this exercise you will hand in your Boolean expression as well as a print-out or drawing of your circuit.
Hint: Your Boolean expression will probably include AND clauses that include three terms. For example: A'BC. You have two options for implementing something like that in Logisim. You could use two 2-input AND gates, taking advantage of the fact that A'BC = (A'B)C, or you could use one 3-input AND gate. You can change the number of input pins on a gate by selecting it using the arrow tool, and clicking on the "Number Of Inputs" selector on the lower left hand side of the Logisim window.For this exercise you will hand in your truth table, your Boolean expression, and a print-out or drawing of your circuit.
INPUTS INPUTS
Subtraction of 2 bits: X Y Result X Y Borrow
---------------------- -------|------ -------|------
0 0 | 0 0 0 | 0 (F)
X 0 0 1 1 -------|------ -------|------
-Y -0 -1 -0 -1 0 1 | 1 0 1 | 1 (T)
-- -- -- -- -------|------ -------|------
Result: 0 1 1 0 1 0 | 1 1 0 | 0 (F)
Borrow? F T F F -------|------ -------|------
1 1 | 0 1 1 | 0 (F)
Or