Priority Encoder (8:3 bits)
Circuit Description
An 8-bit priority encoder.
This circuit basically converts a one-hot encoding into a binary
representation.
If input n is active, all lower inputs (n-1 .. 0) are ignored.
Please read the description of the 4:2 encoder for an explanation.
x7 x6 x5 x4 x3 x2 x1 x0 y2 y1 y0
----------------------------------
1 X X X X X X X 1 1 1
0 1 X X X X X X 1 1 0
0 0 1 X X X X X 1 0 1
0 0 0 1 X X X X 1 0 0
0 0 0 0 1 X X X 0 1 1
0 0 0 0 0 1 X X 0 1 0
0 0 0 0 0 0 1 X 0 0 1
0 0 0 0 0 0 0 X 0 0 0
|