selector.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <html>
  2. <head>
  3. <title>Bit Selector</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/bitSelector.gif" width="32" height="32">
  7. <em>Bit Selector</em></h1>
  8. <p><table>
  9. <tr><td><strong>Library:</strong></td>
  10. <td><a href="index.html">Plexers</a></td></tr>
  11. <tr><td><strong>Introduced:</strong></td>
  12. <td>2.0.5</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/selector.png" width="34" height="33"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>Given an input of several bits, this will divide it into several
  18. equal-sized groups (starting from the lowest-order bit) and output
  19. the group selected by the select input.</p>
  20. <p>For example, if we have an eight-bit input 01010101, and we are to have
  21. a three-bit output, then group 0 will be the lowest-order three bits 101,
  22. group 1 will be the next three bits, 010, and group 2 will be the next three
  23. bits 001. (Any bits beyond the top are filled in with 0.) The select
  24. input will be a two-bit number that selects which of these three groups
  25. to output; if the select input is 3, then 000 will be the output.</p>
  26. <h2>Pins (assuming component faces east)</h2>
  27. <dl>
  28. <dt>West edge (input, bit width matches Data Bits attribute)</dt>
  29. <dd>Data value from which bits should be selected for the output.</dd>
  30. <dt>East edge (output, bit width matches Output Bits attribute)</dt>
  31. <dd>A group of bits from the data value, as selected by the select
  32. input.</dd>
  33. <dt>South edge (input, bit width is quotient of Data Bits and Output Bits, rounded up)</dt>
  34. <dd>Select input: Determines which of the bit groups should be routed
  35. to the output.</dd>
  36. </dl>
  37. <h2>Attributes</h2>
  38. <p>When the component is selected or being added,
  39. the digits '0' through '9' alter its <q>Output Bits</q> attribute,
  40. Alt-0 through Alt-9 alter its <q>Data Bits</q> attribute,
  41. and the arrow keys alter its <q>Facing</q> attribute.</p>
  42. <dl>
  43. <dt>Facing</dt>
  44. <dd>The direction of the component (its output relative to its input).</dd>
  45. <dt>Data Bits</dt>
  46. <dd>The bit width of the component's data input.</dd>
  47. <dt>Output Bits</dt>
  48. <dd>The bit width of the component's output.</dd>
  49. </dl>
  50. <h2>Poke Tool Behavior</h2>
  51. <p>None.</p>
  52. <h2>Text Tool Behavior</h2>
  53. <p>None.</p>
  54. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  55. </body>
  56. </html>