If selection logic inside module is hitting unknown or bad value

In reply to sharvil111:
I also assumed that was a variable that was set once at the beginning of simulation using $test$plusargs. That is the reason for the generate-if error. I was suggesting that they change it to a parameter to remove the error and set it on the command line of their tool supports it.

Otherwise they need to convert the generate block to the ternary operator ‘?:’.