Hi
I have created my own define macro because i need to instantiate the interface more than 50 times and the interface inputs are coming from different RTL hierarchy
**`define abc_macro(inst1,inst2,inst_if_name)\
bind rtl_0 [b]intf_name** **inst_if_name(inst1.x,inst2.y);**[/b]
and passing arguments to the above macro like below code.
**[b] `abc_macro(rtl_0.hier1.hier2,rtl_0.path1_path2,[b]interf_inst_0**);
**`abc_macro(rtl_0.hier10.hier12,rtl_0.path10.path12,interf_inst_1)**;[/b] etc...
[/b]
The above logic is working fine means I am able to instantiate interface 50 times and all assertions are triggering Now the problem is I have to use the interface data in to the sequences as per some conditions.
so I tried to do with set_config_object. like this
**vif_container #(virtual intf_name) i_if_0_bundle;
i_if_0_bundle = new;
i_if_0_bundle.set_v_if(i_interf_inst_0);
set_config_object("*","i_if_0_bundle",i_if_0_bundle);**
so getting the compilation error like this
Error-[IND] Identifier not declared
Identifier ‘i_interf_inst_0’ has not been declared yet.
Not sure why it is not understanding the bind interface instantiation.If I want to use set_config_object then only i see this issue.
Please can somebody look in to this?