Forum Discussion
Altera_Forum
Honored Contributor
8 years agoThank u for your reply. I think using AND operator instead of logical AND doesn't lead to the wrong initial value of UD2,UD3,UD4. Do you have any idea about waht may cause wrong initial value?
--- Quote Start --- Not wrong. If you don't supply the parameter in the module instantiation it will use the default value supplied in the parameter statement. However, in the UD_Cnt module in a couple of IF statements you use the bitwise AND operator (&) instead of the logical AND (&&) operator to combine conditionals. --- Quote End ---