const01.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <html>
  2. <head>
  3. <title>Power/Ground</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/power.gif" width="32" height="32"> <img align="center" src="../../../../en/icons/ground.gif" width="32" height="32"> <em>Power/Ground</em></h1>
  7. <p><table>
  8. <tr><td><strong>Library:</strong></td>
  9. <td><a href="index.html">Wiring</a></td></tr>
  10. <tr><td><strong>Introduced:</strong></td>
  11. <td>2.7.0</td></tr>
  12. <tr><td valign="top"><strong>Appearance:</strong></td>
  13. <td valign="top"><img src="../../../../en/img-libs/power.png" width="17" height="16">
  14. <img src="../../../../en/img-libs/ground.png" width="17" height="14"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>Emits a single value onto a wire.
  18. For a power element, indicated by a triangle, this value will be one
  19. (or, if the Data Bits attribute is more than 1, an all-ones value).
  20. For a ground element, indicated by an arrow
  21. of three shortening parallel lines, this value will be zero
  22. (or, if the Data Bits attribute is more than 1, an all-zero value).</p>
  23. <p>The same functionality can be achieved using the more versatile
  24. <a href="constant.html">Constant</a> component. The only reason to prefer
  25. ground and power is that they are standard electronic symbols.</p>
  26. <h2>Pins</h2>
  27. <p>There is only one pin, an output whose bit width matches the Data Bits
  28. attribute. The component constantly outputs the same value on this pin:
  29. for a ground component, the output is an all-zero value,
  30. and for a power component, the output is an all-one value.</p>
  31. </dl>
  32. <h2>Attributes</h2>
  33. <p>When the component is selected or being added,
  34. Alt-0 through Alt-9 alter its <q>Data Bits</q> attribute
  35. and the arrow keys alter its <q>Facing</q> attribute.</p>
  36. <dl>
  37. <dt>Facing</dt>
  38. <dd>The direction in which the arrow will point from the location of its pin.</dd>
  39. <dt>Data Bits</dt>
  40. <dd>The bit width of the value placed onto the wire.</dd>
  41. </dl>
  42. <h2>Poke Tool Behavior</h2>
  43. <p>None.</p>
  44. <h2>Text Tool Behavior</h2>
  45. <p>None.</p>
  46. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  47. </body>
  48. </html>