But I got the following error when I try to run the simulation:
** Error: (vsim-7065) …/sv/girobo2_tb_top.sv(245): Illegal assignment to type ‘virtual axi_interface’ from type ‘interface axi_interface #(.DATA_SIZE(63))’: Vir. ‘axi_interface’ interface must be assigned a matching interface or virtual interface.
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)”