How to declare virtual interface with params in the top module (in the testbench)?

In reply to saritr:

Are you using any methodology package ? If you are using UVM then while setting interface in config_db , you require to give actual type of virtual interface with same parameter.


uvm_config_db#(virtual axi_interface #(63)) :: set (,,,,);

“virtual axi_interface” type is having default parameter(i.e DATA_SIZE = 0) so you can not assign axi_vif (actual interface pointer) to this type. You have to change type to “virtual axi_interface#(64)