adder.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <html>
  2. <head>
  3. <title>Adder</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../icons/adder.gif" width="32" height="32">
  7. <em>Adder</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 11</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../img-libs/adder.png" width="44" height="45"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>This component adds two values coming in via the west inputs and
  18. outputs the sum on the east output. The component is designed so that it
  19. can be cascaded with other adders to provide add more bits than is
  20. possible with a single adder: The carry-in input provides a
  21. one-bit value to be added into the sum also (if it is specified), and a
  22. carry-out output provides a one-bit overflow value that can be fed to
  23. another adder.</p>
  24. <p>If either of the addends contains some floating bits or some error
  25. bits, then the component will perform a partial addition. That is, it
  26. will compute as many low-order bits as possible. But above the floating
  27. or error bit, the result will have floating or error bits.</p>
  28. <h2>Pins</h2>
  29. <dl>
  30. <dt>West edge, north end (input, bit width matches Data Bits attribute)
  31. <dd>One of the two values to add.
  32. <dt>West edge, south end (input, bit width matches Data Bits attribute)
  33. <dd>The other of the two values to add.
  34. <dt>North edge, labeled <var>c in</var> (input, bit width 1)
  35. <dd>A carry value to add into the sum. If the value is unknown (i.e.,
  36. floating), then it is assumed to be 0.
  37. <dt>East edge (output, bit width matches Data Bits attribute)
  38. <dd>The lower <var>dataBits</var> bits of the sum of the two values
  39. coming in the west edge, plus the <var>c</var><sub><var>in</var></sub>
  40. bit.
  41. <dt>South edge, labeled <var>c out</var> (output, bit width 1)
  42. <dd>The carry bit computed for the sum. If the values added together as
  43. unsigned values yield a result that fits into <var>dataBits</var>
  44. bits, then this bit will be 0; otherwise, it will be 1.
  45. </dl>
  46. <h2>Attributes</h2>
  47. <p>When the component is selected or being added,
  48. Alt-0 through Alt-9 alter its <q>Data Bits</q> attribute.</p>
  49. <dl>
  50. <dt>Data Bits</dt>
  51. <dd>The bit width of the values to be added and of the result.</dd>
  52. </dl>
  53. <h2>Poke Tool Behavior</h2>
  54. <p>None.</p>
  55. <h2>Text Tool Behavior</h2>
  56. <p>None.</p>
  57. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  58. </body>
  59. </html>