1 / 20

Encoder, Tristate Driver

Encoder, Tristate Driver. Outline. Review: demo decoder FPGA example Encoder Demo Encoder, problems Encoder using for loop Priority Decoder Application of Priority Decoder Tristate Buffer Implementation of a MUX using Tri-state buffer. Definition of an Encoder. 2 n input lines

gypsy
Download Presentation

Encoder, Tristate Driver

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, Tristate Driver

  2. Outline • Review: demo decoder FPGA example • Encoder • Demo Encoder, problems • Encoder using for loop • Priority Decoder • Application of Priority Decoder • Tristate Buffer • Implementation of a MUX using Tri-state buffer

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

  4. Example of an Encoder

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

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

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

  8. Uncertainty of an Encoder • What if all the input lines are 0? • Use a valid bit • What if more than one input line are high? • Use priority—certain bits are more important than other bits

  9. encode83a.v Check 0000000 is present.

  10. encode83a_top.v Turn off the decimal bit if the input is not valid

  11. Demonstrate encode83a.v • Input: 00000000 (decimal bit is off) • Intput:00000010 (Get 001) • Intput:00000011 (Still get 001)

  12. Priority Encoder Not a Valid State

  13. Karnaugh Map

  14. Karnaugh Map

  15. Circuit Implementation

  16. Write a for loop to Implement encoder. typo, should be a[i] as opposed to x[i]. y will be set to I if ith bit of a is a 1.

  17. Corrected Verilog

  18. Application of Priority Encoder: 3 bit ADC

  19. Three State Gate • Possible state: • 1, 0, high impedance state! • High impedance: • The output appears disconnected from the input

  20. Application of Tri-State Gate You can not make a connection like this Unless you use a tri-state device!

More Related