cd
cd cs31
cd weeklylab
mkdir week03
cd week03
pwd
cp ~newhall/public/cs31/week03/* .
ls
decoder.circ firstcircuit.circ
The Logisim web page has user documentation that will be very helpful for the next lab assignment. We are using version 2.7.
$ logisim # start new project $ logisim proj_file.circ # edit an existing projectWe will start with firstcircuit.circ, and try builiding a simple AND circuit and some tester circuitry around it:
$ logisim firstcircuit.circNext, we are going to build a 2-to-4 1 bit decoder (2 1 bit inputs, 4 1 bit outputs).
A --------o
| AND --------- 1 if both A and B are 0
B --------o
| |
*--|--o
| | AND --------- 1 if A is 0 and B is 1
---*---
| |
*--|--
| | AND --------- 1 if A is 1 and B is 0
---*--o
| |
*--|--
| | AND --------- 1 if A is 1 and B is 1
---*--
This we will build as a circuit in logisim
(Project:Add Circuit). Then we will incorporate this into some tester
circuitry in the main circuit:
$ logisim decoder.circNext, step through the Beginner's tutorial and try building the XOR circuit.