In reply to designer007:
The code you show includes the definition of param_if inside the module top_tb. You should not be doing that. If you are also compiling param_if outride the module, that creates two different definitions. Also, where is line 59 and why is it showing #() if the interface is not parametrized?