Logic circuits
Which circuit outputs, in binary, the number of the highest-priority input when several inputs are 1 at the same time?
- APriority encoder
- BDemultiplexer
- CComparator
Show answer and explanation
Answer: A. Priority encoder
An encoder converts which input is 1 into a binary code. A priority encoder outputs the number of the highest-priority input even when several inputs are 1 simultaneously. It is used, for example, to handle interrupt requests.
- A. Correct. It outputs the number of the highest-priority input.
- B. A demultiplexer routes one input to a selected output.
- C. A comparator compares two values for size or equality.