extender.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <html>
  2. <head>
  3. <title>Bit Extender</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../icons/extender.gif" width="32" height="32">
  7. <em>Bit Extender</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.5.0 (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="../../../img-libs/extender.png" width="44" height="42"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>The bit extender transforms a value into a value of another bit width.
  18. If it's being transformed into a smaller bit width,
  19. it is simply truncated to keep the lowest-order bits.
  20. If it's being transformed into a large bit width,
  21. the lowest-order bits are the same,
  22. and you have a choice about what the additional high-order bits will be:
  23. They can all be 0, all be 1, all match the input's <q>sign bit</q>
  24. (its highest-order bit), or the component can have an additional one-bit
  25. input that determines the identity of these other bits.</p>
  26. <h2>Pins</h2>
  27. <dl>
  28. <dt>West edge (input, bit width from Bit Width In attribute)</dt>
  29. <dd><p>The multi-bit input whose value is to be transformed.</p></dd>
  30. <dt>East edge (output, bit width from Bit Width Out attribute)</dt>
  31. <dd><p>The computed output.</p></dd>
  32. <dt>North edge (input, bit width 1)</dt>
  33. <dd><p>Specifies what the additional bits in the output should be.
  34. This pin is available only when the Extension Type attribute is <q>Input.</q></p></dd>
  35. </dl>
  36. <h2>Attributes</h2>
  37. <p>When the component is selected or being added,
  38. the digits 0 through 9 alter the <q>Bit Width In</q> attribute
  39. and Alt-0 through Alt-9 alter its <q>Bit Width Out</q> attribute.</p>
  40. <dl>
  41. <dt>Bit Width In</dt>
  42. <dd>The input's bit width.</dd>
  43. <dt>Bit Width Out</dt>
  44. <dd>The output's bit width.</dd>
  45. <dt>Extension Type</dt>
  46. <dd>Assuming the output bit width exceeds the input bit width,
  47. this attribute configures what the additional output bits should be.
  48. If <q>Zero</q> or <q>One,</q> the additional bits are 0 or 1 accordingly.
  49. If <q>Sign,</q> the additional bits are taken to match the highest-order bit in the input.
  50. And if <q>Input,</q> the component has a second input on its north side whose one-bit value is used for the additional bits.</dd>
  51. </dl>
  52. <h2>Poke Tool Behavior</h2>
  53. <p>None.</p>
  54. <h2>Text Tool Behavior</h2>
  55. <p>None.</p>
  56. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  57. </body>
  58. </html>