Priority encoder: Difference between revisions

Content deleted Content added
m Reverted edits by 203.196.141.98 (talk) to last version by Yobot
Eus Kevin (talk | contribs)
Info on what the output of a priority encoder actually is
Line 1:
A '''priority encoder''' is a [[circuit]] or [[algorithm]] that compresses multiple [[binary]] inputs into a smaller number of outputs. The output of a priority encoder is the binary representation of the ordinal number starting from zero of the most significant input bit. They are often used to control [[interrupt request]]s by acting on the highest priority request.
 
If two or more inputs are given at the same time, the input having the highest priority will take [[precedence]]. An example of a single bit 4 to 2 [[encoder]] is shown, where highest-priority inputs are to the left and "x" indicates either a 1 or a 0 (i.e., either input value yields the same output when superseded by a higher-priority input).