altera fifos: remove unused warnings
There were many constructs like this: gen_with_empty : if(g_with_empty) generate empty_o <= empty; end generate gen_with_empty; If g_with_empty is true, then there are no warnings. If g_with_empty is false, then empty_o is unset and empty is unused. There is no improvement in performance/resource utilization to explicitly cutting these signals. The optimizer will happily discard unused logic. The alternative of adding gen_without_empty : if(not g_with_empty) generate empty_o <= 'X'; end generate gen_without_empty; will remove the empty_o unset warning, but not the empty unused warning. This patch does make it possible for designs to use empty_o without setting g_with_empty; an error. On the other hand, those designs had undefined behaviour before anyway, so they might have worked unreliably.
Please register or sign in to comment