tutor-gates.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <html>
  2. <head>
  3. <title>Tutorial: Adding gates</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <p><b>Next:</b> <a href="tutor-wires.html">Step 2: Adding wires</a></p>
  7. <h2>Step 1: Adding gates</h2>
  8. <p>Recall that we're trying to build the following circuit in Logisim.</p>
  9. <center><img src="../../../img-guide/tutorial-xor-circ.png" width="323" height="147"></center>
  10. <p>I suggest building a circuit by inserting the gates first as a sort of
  11. skeleton and then connecting them with wires later. The first thing we'll do
  12. is to add the two AND gates. Click on the AND tool in the toolbar
  13. (<img src="../../../icons/andGate.gif" width="16" height="16">, the
  14. next-to-last tool listed).
  15. Then click in the editing area where
  16. you want the first AND gate to go. Be sure to leave plenty of room
  17. for stuff on the left. Then click the AND tool again and place the second
  18. AND gate below it.</p>
  19. <center><img src="../../../img-guide/tutorial-shot-ands.png" width="498" height="302"></center>
  20. <p>Notice the five dots on the left side of the AND gate. These are spots
  21. where wires can be attached. It happens that we'll just use two of them
  22. for our XOR circuit; but for other circuits, you may find that having
  23. more than two wires going to an AND gate is useful.</p>
  24. <p>Now add the other gates. First click on the OR tool
  25. (<img src="../../../icons/orGate.gif" width="16" height="16">);
  26. then click where you want it. And place the two NOT gates into the canvas
  27. using the NOT tool
  28. (<img src="../../../icons/notGate.gif" width="16" height="16">).</p>
  29. <center><img src="../../../img-guide/tutorial-shot-gates.png" width="498" height="302"></center>
  30. <p>I left a little space between the NOT gates and the AND gates; if you
  31. want to, though, you can put them up against each other and save
  32. yourself the effort of connecting them with a wire later.</p>
  33. <p>Now we want to add the two inputs <var>x</var> and <var>y</var> into
  34. the diagram. Select the Input tool
  35. (<img src="../../../icons/pinInput.gif" width="16" height="16">),
  36. and place the pins down.
  37. You should also place an output pin next to the OR gate's output using
  38. the Output tool
  39. (<img src="../../../icons/pinOutputReversed.gif" width="16" height="16">).
  40. (Again, I'm leaving a bit of space between the OR gate and the output
  41. pin, but you might choose to place them right next to each other.)</p>
  42. <center><img src="../../../img-guide/tutorial-shot-comps.png" width="498" height="302"></center>
  43. <p>If you decide you don't like where you placed something, then you can
  44. select it using the Edit tool
  45. (<img src="../../../icons/select.gif" width="16" height="16">)
  46. and drag it to the desired spot. Or you can delete it altogether by selecting
  47. Delete from the Edit menu or pressing the Delete key.</p>
  48. <p>As you place each component of the circuit, you'll notice that as soon as
  49. the component is placed, Logisim reverts to the Edit tool so that you can
  50. move the recently-placed component or (as we'll see soon) connect the component
  51. to others by creating wires. If you want to add a copy of the recently placed
  52. component, a shortcut is to press Control-D to duplicate the selection.
  53. (Some computers use another keys for menus, such as the Command key on
  54. Macintoshes. You would press that key with the D key.)</p>
  55. <p><b>Next:</b> <a href="tutor-wires.html">Step 2: Adding wires</a></p>
  56. </body>
  57. </html>