In reply to desperadorocks:
Update:
a. What i tried is, I created a separate package called defines package as shown below and imported the package inside the vip_env_pkg and also the corresponding interface file. So that the same package is used to the tb and interface. And user can override the value from the compile time.
package defines_pkg;
`ifndef NUM_AGT
`define NUM_AGT 1
`endif
parameter NO_AGT = `NO_AGT;
endpackage: defines_pkg
b. But how to modify it in such a way so that the same vip pkg, imported within multiple envs inside a top level env can have unique / different configuration as per the user requirement ?
Can I use some macros ? so that user can define the macro from command i.e. include multiple macros for each env and that expands to unique parameter assignment values ? Please share your inputs.