Hello,
I need a linear priority encoder that has N input and N outputs. Searching the group, I saw a thread where Peter Alfke stated :
--- cut ---
Let me tell you what can be done in Virtex-4 (probably also in
> Spartan3):
> A priority "linear encoder" with 4 x N inputs and 4 x N outputs, each
> output corresponding to a prioritized input.
> Only one output is ever active, the one corresponding to the
> highest-priority active input.
> Total cost: 5N+1 (LUTs+flip-flops).
> Such a 32-input linear priority encoder uses 41 LUTs = 21 slices ( CLBs), and runs at >250 MHz.
> The design is fully modular (per 4 bits).
>Peter Alfke
--- cut ---
But no details where given.
Can someone provide more details on how that implemented in a slice ?
Thanks.
Sylvain