register.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <html>
  2. <head>
  3. <title>Register</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/register.gif" width="32" height="32">
  7. <em>Register</em></h1>
  8. <p><table>
  9. <tr><td><strong>Library:</strong></td>
  10. <td><a href="index.html">Memory</a></td></tr>
  11. <tr><td><strong>Introduced:</strong></td>
  12. <td>2.0 Beta 1</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/register.png" width="35" height="43"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>A register stores a single multi-bit value, which is displayed in
  18. hexadecimal within its rectangle, and is emitted on its
  19. <var>Q</var> output. When the clock input
  20. (indicated by a triangle on the south edge) indicates so,
  21. the value stored in the register changes to the value of the
  22. <var>D</var> input at that instant. Exactly when the clock input indicates
  23. for this to happen is configured via the Trigger attribute.</p>
  24. <p>The <var>reset</var> input resets the register's value to 0 (all
  25. zeroes) asynchronously; that is, as long as <var>reset</var>
  26. is 1, the value is pinned to 0, regardless of the clock input.</p>
  27. <h2>Pins</h2>
  28. <dl>
  29. <dt>East edge, labeled <var>Q</var> (output, bit width matches Data Bits attribute)</dt>
  30. <dd>Outputs the value currently stored by the register.</dd>
  31. <dt>West edge, labeled <var>D</var> (input, bit width matches Data Bits attribute)</dt>
  32. <dd>Data input: At the instant that the clock value rises from 0 to 1,
  33. the register's value changes to the value of the <var>D</var> input at
  34. that instant.</dd>
  35. <dt>West edge, labeled <var>en</var> (input, bit width 1)</dt>
  36. <dd>Enable: When this is 0, clock triggers are ignored. The current value
  37. continues to appear on the output. The clock triggers are enabled when this
  38. input is 1 or undefined.</dd>
  39. <dt>South edge, indicated with a triangle (input, bit width 1)</dt>
  40. <dd>Clock input: At the instant that this input value rises from 0 to
  41. 1 (the rising edge), the register's value will be updated to the value
  42. of the <var>D</var> input.</dd>
  43. <dt>South edge, labeled <var>0</var> (input, bit width 1)</dt>
  44. <dd>Asynchronous reset: When 0 or undefined, this input has no effect.
  45. As long as it is 1, the register's value is pinned to 0. This occurs
  46. asynchronously - that is, without regard to the current clock input
  47. value. As long as this is 1, the other inputs have no effect.</dd>
  48. </dl>
  49. <h2>Attributes</h2>
  50. <p>When the component is selected or being added,
  51. Alt-0 through Alt-9 alter its <q>Data Bits</q> attribute.</p>
  52. <dl>
  53. <dt>Data Bits</dt>
  54. <dd>The bit width of the value stored in the register.</dd>
  55. <dt>Trigger</dt>
  56. <dd>Configures how the clock input is interpreted. The value <q>rising edge</q>
  57. indicates that the register should update its value at the instant when the
  58. clock rises from 0 to 1. The <q>falling edge</q> value indicates that it should
  59. update at the instant the clock falls from 1 to 0. The <q>high level</q> value
  60. indicates that the register should update continuously whenever the clock
  61. input is 1. And the <q>low level</q> value indicates that it should update
  62. continuously when the clock input is 0.</dd>
  63. <dt>Label</dt>
  64. <dd>The text within the label associated with the register.</dd>
  65. <dt>Label Font</dt>
  66. <dd>The font with which to render the label.</dd>
  67. </dl>
  68. <h2>Poke Tool Behavior</h2>
  69. <p>Clicking the register brings keyboard focus to the register
  70. (indicated by a red rectangle), and typing hexadecimal digits will
  71. change the value stored in the register.</p>
  72. <h2>Text Tool Behavior</h2>
  73. <p>Allows the label associated with the component to be edited.</p>
  74. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  75. </body>
  76. </html>