decoder.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <html>
  2. <head>
  3. <title>Decoder</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/decoder.gif" width="32" height="32">
  7. <em>Decoder</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 Beta 11</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/decoder.png" width="43" height="62"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>Emits 1 on exactly one output; which output is 1 depends on the
  18. current value received through the input on the south edge.</p>
  19. <h2>Pins (assuming component faces east, select is bottom/left)</h2>
  20. <dl>
  21. <dt>East edge, variable number (outputs, bit width 1)</dt>
  22. <dd>The outputs are numbered starting with 0 on the north. Each output
  23. will be 1 if its number matches the value currently received through the
  24. select input on the south; otherwise, its value will be either zero or
  25. floating, depending on the value of the Three-State? attribute.
  26. If the select input contains any unspecified bits, then all outputs are
  27. floating.</dd>
  28. <dt>South edge, left side (input, bit width 1)</dt>
  29. <dd>Enable: When 0, all outputs consist of all floating bits (or zeros),
  30. regardless of the select input.</dd>
  31. <dt>South edge, right side indicated by gray circle (input, bit width matches Select Bits attribute)</dt>
  32. <dd>Select input: The value of this input determines which of the
  33. outputs is 1.</dd>
  34. </dl>
  35. <h2>Attributes</h2>
  36. <p>When the component is selected or being added,
  37. the digits '1' through '4' alter its <q>Select Bits</q> attribute
  38. and the arrow keys alter its <q>Facing</q> attribute.</p>
  39. <dl>
  40. <dt>Facing</dt>
  41. <dd>The direction of the component (specifying which side has the outputs).</dd>
  42. <dt>Select Location</dt>
  43. <dd>The location of the select and enable lines relative to the component.</dd>
  44. <dt>Select Bits</dt>
  45. <dd>The bit width of the component's select input on its south edge.
  46. The number of outputs for the decoder will be
  47. 2<sup><var>selectBits</var></sup>.</dd>
  48. <dt>Three-state?</dt>
  49. <dd>Specifies whether the unselected outputs should be floating (Yes) or
  50. zero (No).</dd>
  51. <dt>Disabled Output</dt>
  52. <dd>Specifies what each bit of the outputs should be when the component is
  53. disabled (i.e., when the enable pin is 0). Options include zero and floating;
  54. in the latter case, the outputs are effectively disconnected from any other ports.</dd>
  55. <dt>Include Enable?</dt>
  56. <dd>The component has an enable input when this attribute is <q>yes.</q>
  57. The attribute is primarily for supporting circuits built using older versions of
  58. Logisim that did not provide an enable input.</dd>
  59. </dl>
  60. <h2>Poke Tool Behavior</h2>
  61. <p>None.</p>
  62. <h2>Text Tool Behavior</h2>
  63. <p>None.</p>
  64. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  65. </body>
  66. </html>