We are using Logisim for this course. Later in project 2 you'll also use Logisim and you'll need a special version - so better use it already. You can download it here: here.
We'll begin by creating a very simple circuit just to get the feel for placing gates and wires.
Start by clicking
the "AND gate" button. This will cause the shadow of an AND gate
to follow your cursor around. Click once within the main schematic window to
place an AND gate.
Click the "Input Pin" button.
Now, place two input pins somewhere to the left of your AND gate.
Click the "Output Pin" button.
Then place an output pin somewhere to the right of your AND gate. Your
schematic should look something like this at this point:
Click the "Select tool"
button. Click and drag to connect the input pins to the left side of the AND
gate. This will take several steps, as you can only draw vertical and
horizontal wires. Just draw a wire horizontally, release the mouse button,
then click and drag down starting from the end of the wire to continue
vertically. You can attach the wire to any pin on the AND gate on the left
side. Repeat the same procedure to connect the output (right side) of the
And Gate to the LED. After completing these steps your schematic should look
roughly like this:
Finally, click the "Poke" tool
and try clicking on the input pins in your schematic. Observe what happens.
Does this match with what you think an AND Gate should do?
Just as C programs can contain helper functions, a schematic can contain subcircuits. In this part of the lab, we will create several subcircuits to demonstrate their use.
Hint: Try writing a truth table. You might also find the lecture slides useful for a refresher on how to build these. You may want to consider using some of your custom subcircuits when designing the others.
Let's implement the circuit we've been talking about in lecture, that increments a value ad infinitum. The difference between this circuit and the circuits you've built for lab so far is that you need some registers. The following will show you how to add registers to your circuit.


Connect the register and adder together based on the diagram from lecture.
You may notice that when you connect the adder to a register, you will get a "Incompatible widths" error. This means that your wire is trying to connect two pins together with different bit widths. If you click on one the adder with the "Selection" tool, you will notice that in the box below circuit browser will have a field called "Data Bit Width". This field controls the number of bits the the adder will add. Change this field to 8 and the "Incompatible widths" error should now go away.
In general, the box below the circuit browser will list the properties of a given circuit element. Other circuit elements will have other properties.
Wire a constant 8-bit 1 to the second input of the adder. You can find the "constant" circuit element in the "Wiring" library.
Add two output pins to your circuit so that you may monitor what comes out of the adder and the register. Thus, by the end, your circuit should look like as follows:

Now let's see if you built your circuit correctly.
Right click on your AddMachine subcircuit, and select "View AddMachine. This is the ONLY method to preserve state. Double-clicking on the circuit at the circuit browser at left makes logisim think you want to edit the circuit instead of just checking what state the circuit has.
Note: You can use Simulate->Go In To State->*Circuit Name*, but that allows you go into the first circuit of that type. If you placed two Fib8 circuits down, it only takes you to the first Fib8 circuit to put down.