A Priority Encoder provides a method to generate a
single output state using only the highest priority true input. Priority
Encoders are often used to combine multiple hierarchical input states into a
single Valuator. An example is using a Priority Encoder to command a fan to
turn at the certain speed commanded by multiple temperature input sensors.
Priority Encoder operation is similar to the following pseudo code.
If x1 then y1
Else If x2 then y2
Else If x3 then y3
Else If x4 then y4