tool.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <html>
  2. <head>
  3. <title>Tool Attributes</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1>Tool attributes</h1>
  7. <p>Every tool for adding components to a circuit also has a set of
  8. attributes, which are imparted to the components created by the tool,
  9. although the components' attributes may be changed later without
  10. affecting the tool's attributes. When you select a tool, Logisim
  11. will change the attribute table to display that tool's attributes.</p>
  12. <p>For example, suppose we want to create smaller AND gates.
  13. Right now, each time we select the AND tool, it creates a large AND gate.
  14. But if we edit the Gate Size attribute just after selecting the tool (before
  15. placing its AND gate into the circuit), we'll be changing
  16. the attributes for the tool, so that future AND gates added using the tool
  17. would be narrow instead.</p>
  18. <center><img src="../../../img-guide/attrlib-and-narrow.png" width="505" height="301"></center>
  19. <p>Now, we can delete the two existing AND gates and add two new
  20. AND gates in their place. This time, they will be narrow.
  21. (If you chose to reduce the number of inputs to 3, the AND gate
  22. would not have vertical extension on the left side. But you'd also
  23. have to rewire the circuit so that the wires hit the AND gate's left
  24. side.)</p>
  25. <center><img src="../../../img-guide/attrlib-and-replace.png" width="505" height="299"></center>
  26. <p>With some tools, the tool's icon reflects some of the attributes'
  27. values. One example of this is the Pin tool, whose icon
  28. faces the same way as its Facing attribute says.</p>
  29. <p>The tools in the toolbar each have a separate attribute set from
  30. the corresponding tools in the explorer pane. Thus, even though we
  31. changed the toolbar's AND tool to create narrow AND gates, the AND
  32. tool in the Gates library will still create wide AND gates unless
  33. you change its attributes too.</p>
  34. <p>In fact, the input pin and output pin tools in the default
  35. toolbar are both instances of the Wiring library's Pin tool, but
  36. the attribute sets are different. The icon for the Pin tool
  37. is drawn as a circle or a square depending on the value of its
  38. "Output?" attribute.</p>
  39. <p>Logisim provides a handy shortcut for changing the Facing attribute
  40. that controls the direction in which many components face: Typing an
  41. arrow key while that tool is selected automatically changes the
  42. direction of the component.</p>
  43. <p><strong>Next:</strong> <em><a href="../index.html">User's Guide</a>.</em></p>
  44. </body>
  45. </html>