Forum Discussion
Altera_Forum
Honored Contributor
14 years agoWhen it comes to inputs, compilers make two types of response.
If your input is a constant then it reduces logic to the case of constant value only. If your input is not constant then it has to cater for all possibilities. This is possible in the sense of logic decisions but compilers do not support synthesizing different circuits per input value. For example in the case of 16 bits then it will need to create 2^16 circuits !! Thus for a given build, the compiler needs to settle with one case of build. the reverse is also true. If you have a variable input and decided to fix it as constant for testing stage then the compiler will remove a lot of logic that will be needed at sign off and may cause trouble to you with your manager at the end.