clock.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <html>
  2. <head>
  3. <title>Clock</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/clock.gif" width="32" height="32">
  7. <em>Clock</em></h1>
  8. <p><table>
  9. <tr><td><strong>Library:</strong></td>
  10. <td><a href="index.html">Wiring</a></td></tr>
  11. <tr><td><strong>Introduced:</strong></td>
  12. <td>2.0 Beta 13 (in Base library, moved to Wiring in 2.7.0)</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/clock.png" width="23" height="23"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>The clock toggles its output value on a regular schedule as long as
  18. ticks are enabled via the
  19. <a href="../../guide/menu/simulate.html">Simulate menu</a>.
  20. (Ticks are disabled by default.)
  21. A "tick" is Logisim's unit of time; the speed at which ticks occur can
  22. be selected from the Simulate menu's Tick Frequency submenu.</p>
  23. The clock's cycle can be configured using
  24. its High Duration and Low Duration attributes.</p>
  25. <p>Note that Logisim's simulation of clocks is quite unrealistic: In
  26. real circuits, multiple clocks will drift from one another and will
  27. never move in lockstep. But in Logisim, all clocks experience ticks at
  28. the same rate.</p>
  29. <h2>Pins</h2>
  30. <p>A clock has only one pin, an output with a bit width of 1, whose
  31. value will represent the current value of the clock. The location of
  32. this pin is specified in the Facing attribute. The clock's value
  33. will toggle on its schedule whenever ticks are enabled, and it will
  34. toggle whenever it is clicked using the <a href="poke.html">Poke
  35. Tool</a>.</p>
  36. <h2>Attributes</h2>
  37. <p>When the component is selected or being added,
  38. the arrow keys alter its <q>Facing</q> attribute.</p>
  39. <dl>
  40. <dt>Facing</dt>
  41. <dd>The side of the component where its output pin should be.</dd>
  42. <dt>High Duration</dt>
  43. <dd>The length of time within each cycle that the clock's output should
  44. be 1.</dd>
  45. <dt>Low Duration</dt>
  46. <dd>The length of time within each cycle that the clock's output should
  47. be 0.</dd>
  48. <dt>Label</dt>
  49. <dd>The text within the label associated with the clock component.</dd>
  50. <dt>Label Location</dt>
  51. <dd>The location of the label relative to the component.</dd>
  52. <dt>Label Font</dt>
  53. <dd>The font with which to render the label.</dd>
  54. </dl>
  55. <h2>Poke Tool Behavior</h2>
  56. <p>Clicking a clock component will toggle its current output value
  57. immediately.</p>
  58. <h2>Text Tool Behavior</h2>
  59. <p>Allows the label associated with the component to be edited.</p>
  60. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  61. </body>
  62. </html>