Module instantiation depending on input signal

In reply to Abhijitsjadhav:

Recode it to make that differentiating signal as parameter instead.

Then you can use generate around it. If not you can merge logic inside a single module using if, clumsy code though.

Srini