Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHi,
I guess that the compiler wouldn't see the two cases as equivalent since there are more tests when you ask for more and the netlists wouldn't be identical. Compiler technology is subject to the choice/limitations of the software designers who may or may not want to make inferrences from the code in the same way you do. Another example: The following algorithm will generate three multipliers if condition1 multiply a,b elsif condition2 multiply a,c else multiply a,d end to overcome that, use one mult statement and mux inputs. kaz