Error-[ICTTFC] Incompatible complex type usage

Hi,

Can anyone please help me to understand below issue.

Error-[ICTTFC] Incompatible complex type usage
/nfs/iind/disks/iind_lpss_00005/muthuven/AHB/ip-ice/src/val/tb/env/ice_env.svh, 256
Incompatible complex type usage in task or function call.
The following expression is incompatible with the formal parameter of the
function. The type of the actual is ‘class
SB_I3C_LITE_ICE_ENV_LIB.ice_d_pkg::ice_env’, while the type of the formal is
‘class
AMBA_AHB_MASTER_SLAVE_BFM_AMBA_AHB_MASTER_SLAVE_BFM_VAL_LIB.uvm_pkg::uvm_component’.
Expression: this
Source info:
uvm_component_registry#(AMBA_AHB_MASTER_SLAVE_BFM_AMBA_AHB_MASTER_SLAVE_BFM_VAL_LIB.svt_ahb_uvm_pkg::svt_ahb_system_env,“svt_ahb_system_env”)::create("ahb_sys

Thanks & Regards
Muthuvenkatesh

In reply to muthuven:

Please read the error message carefully. The types are different and this causes the error message.
One type is

class AMBA_AHB_MASTER_SLAVE_BFM_AMBA_AHB_MASTER_SLAVE_BFM_VAL_LIB.uvm_pkg::uvm_component;

The other one is

class SB_I3C_LITE_ICE_ENV_LIB.ice_d_pkg::ice_env;

In reply to chr_sue:

Hi ,

I am creating below env in my user env.
ahb_system_env = svt_ahb_system_env::type_id::create(“ahb_system_env”, this);

while elaborating above code I am hitting this issue.

What might be the issue. I am not clear on the comment what u mentioned before.
Can you explain more and suggest some solution.

In reply to muthuven:
The error message says your env is defined in a package named
svt_ahb_uvm_pkg
which itself is in a library
SB_I3C_LITE_ICE_ENV_LIB.
uvm_component is from the uvm_pkg which is a library called
AMBA_AHB_MASTER_SLAVE_BFM_AMBA_AHB_MASTER_SLAVE_BFM_VAL_LIB

Please check the packages for mor information.

Hi, I am also getting same problem can you tell the solution please…