Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Generic Priority Encoder

Is there a better way to generate a generic priority encoder without IF/ELSEIF? I need the parameterize my encoder (before synthesis), without recoding manually every time. I have manually coded up a fixed priority encoder, and clearly IF/ELSEIF is less optimal than using CASE statement. But I haven't been able to keep it generic without using IF/ELSEIF. It needs to be minimal logic layers.

17 Replies