Getting compilation error while initializing genvar

In reply to sarang:
Use parameter instead of genvar.