1 / 23

Encoder

Encoder. Section 4.10. Outline. Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder. Definition of an Encoder. 2 n input lines n output lines Performs the inverse operation of a decoder. Review: 3-to-8 Line Decoder.

pooky
Download Presentation

Encoder

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Encoder Section 4.10

  2. Outline • Review: Sum of Products • Encoder • Priority Decoder • Application of Priority Decoder

  3. Definition of an Encoder • 2n input lines • n output lines • Performs the inverse operation of a decoder

  4. Review: 3-to-8 Line Decoder Convert binary information from n input lines to 2n unique output lines. This particular circuit take a binary number and convert it to an octal number.

  5. Review of ES112: Sum of Products

  6. Hardware Implementation

  7. Example of 8-to-3 Encoder

  8. Application of 8 x 3 Encoder The angular or rotary position of a compass is converted into a digital code by an encoder and inputted to the systems computer to provide navigational data

  9. Implementation of an Encoder • Focus on one output at a time x=D4+D5+D6+D7

  10. Implementation of an Encoder • Focus on one output at a time y=D2+D3+D6+D7

  11. Implementation of an Encoder • Focus on one output at a time z=D1+D3+D5+D7

  12. Uncertainty of an Encoder • What if all the input lines are 0? • Use a valid bit

  13. Model an Encoder in Verilog input : D, an array of 8 elements output: Y, an array of 3 elements V, a valid bit to check for 00000000 input.

  14. Module Template module module_name ( , , ) endmodule Input, output wires reg Program Body

  15. Choosing a Module Name module module_name ( , , ) endmodule Input, output wires reg Program Body

  16. Choosing a Module Name module module_name ( , , ) endmodule Input, output wires reg Program Body x=D4+D5+D6+D7 y=D2+D3+D6+D7 z=D1+D3+D5+D7 Or all elements of D

  17. Output File D={D0,D1,D2,D3,D4,D5, D6,D7} Y={Y0,Y1,Y2} (least significant to most significant}

  18. Output File The output with a higher subscript has a higher priority than an output with a lower subscript.

  19. Priority Encoding • What if more than one input line are high? • Use priority—certain bits are more important than other bits

  20. Priority Encoder Not a Valid State

  21. Karnaugh Map 1

  22. Karnaugh Map

  23. Circuit Implementation

More Related