Lab 7
Page 3


Designing Basic Circuits


A Learning Exercise

This exercise is designed to help you learn to use the Logic Design Tool (which should have loaded when you came to this page). Below is a a logic circuit with three inputs and one output, which works in the following way:

The output is 1 when either the first input is 1, or both the second and third inputs are 1.

Follow the directions in the next section "Using the Logic Design Tool" in order to recreate this circuit in the Logic Tool window. When you are finished, your circuit should look like the one above.


Using the Logic Design Tool

Logic design tools enable you to build circuits out of logic gates and then test them without ever actually physically building them. Push the button below to start the Logic tool and then follow the instructions to create a circuit:

Now you should see a window with five buttons running down the left side and a large white space on the right.

  1. Press down the "Input" button and then click the mouse in the large white space at three different places to create three inputs.
  2. Press down the "Select" button and then move the inputs to where you want them by clicking on each and dragging it to the appropriate place. If you have accidentally created too many inputs, you can delete one by clicking on it and pressing Delete.
  3. Press down the "Gate" button. At the bottom of your screen, a new toolbar with an input selector and several possible gates should appear.
  4. Press down the "AND" button and choose "2 inputs". Then click on the white area to create a 2-input AND gate.
  5. Next, create an OR gate by pressing the "OR" button and clicking on the white area in the place you would like it to appear.
  6. Now, click on the "Select" button again and then click and drag the gates to the appropriate places.
  7. Next, enter wire mode by clicking on the "Wire" button.
  8. To connect two items with a wire, you must click once on the first and then double click on the second. In the circuit you are building, click on the first input and then double-click on the OR gate to create a wire between them.
  9. Click on the second input and then double-click on the AND gate to create a wire between them as well.
  10. Connect the third input to the AND gate in the same way.
  11. Connect the output of the AND gate to the OR gate in the same way, by clicking once on the AND gate and then double-clicking on the OR gate.
  12. Now you're ready to see how the circuit works. Choose the "Probe" button and double-click on the OR gate to add a probe. This probe will always tell you the current value of that gates output. You can add a probe to any gate in your circuit.

Congratulations! You should now have a working circuit. Drag the gates around until it looks right and then test the circuit by clicking on the inputs. Be sure that the output changes correctly. If it does not, ask a TA for assistance.

A few last notes:


Saving your work

Because of the security needs surrounding java applets, the program you are using to create your circuits cannot actually save them for you. Instead, you will capture an image of them using PaintShop Pro's Capture utility.

Each time you finish a circuit, do the following to save an image of it to be graded. You can also use this anytime you want to capture something on the screen in an image file.

  1. Make sure that the entire circuit is visible and that the mouse pointer is not obscuring anything.
  2. Start Paint Shop Pro if you do not already have it open.
  3. Under the Capture menu, choose "Start"
  4. Your Paint Shop Pro window should be automatically minimized
  5. Right click on the screen when you are ready.
  6. Left click once to begin drawing a box, and then left click again to finish.
  7. This should create a new image file in Paint Shop Pro.
  8. Save this as a .JPG or .GIF file.

At the end of this lab, we will ask you to put these images on a web page for grading.


PREVIOUS 1 | 2 | 3 | 4 | 5 | 6 NEXT

emkawas@princeton.edu