Altera_Forum
Honored Contributor
11 years agousing MOD in a if-generate
Hello all,
I have some trouble getting this next piece of code to work. I don't know if this is valid code because the simulation result is always 'U', unless I enter a fixed number. This doesn't work:for x in 0 to (someConstant MOD 2) generate This does: for x in 0 to 3 generate If this is not valid code, what is the correct way to do this?