negator.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <html>
  2. <head>
  3. <title>Negator</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/negator.gif" width="32" height="32">
  7. <em>Negator</em></h1>
  8. <p><table>
  9. <tr><td><strong>Library:</strong></td>
  10. <td><a href="index.html">Arithmetic</a></td></tr>
  11. <tr><td><strong>Introduced:</strong></td>
  12. <td>2.0 Beta 22</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/negator.png" width="44" height="43"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>Computes the two's-complement negation of the input. This negation
  18. is performed by maintaining all the lower-order bits up to the
  19. lowest-order 1, and complementing all bits above that.</p>
  20. <p>If the value to be negated happens to be the least negative value,
  21. then its negation (which cannot be represented in two's-complement
  22. form), is still the least negative value.</p>
  23. <h2>Pins</h2>
  24. <dl>
  25. <dt>West edge (input, bit width matches Data Bits attribute)
  26. <dd>The value to negate.
  27. <dt>East edge, labeled -<var>x</var> (output, bit width matches Data Bits attribute)
  28. <dd>The negation of the input. If the input happens to be the least
  29. negative value representable in <var>dataBits</var> bits, however, then
  30. the output matches the input.
  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.</p>
  35. <dl>
  36. <dt>Data Bits</dt>
  37. <dd>The bit width of the component's input and output.</dd>
  38. </dl>
  39. <h2>Poke Tool Behavior</h2>
  40. <p>None.</p>
  41. <h2>Text Tool Behavior</h2>
  42. <p>None.</p>
  43. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  44. </body>
  45. </html>