hi,
this code is part of my env:
function void build();
super.build();
m_cv_config = new("cv_config");
**set_config_object("*","cv_config",m_cv_config,0);**
test_cfg = cust_svt_ocp_system_configuration::type_id::create("test_cfg");
**set_config_object("*env", "test_cfg", this.test_cfg, 0)**;
i’m receiving 2 ICTTFC errors, one for each set_config_object command:
Error-[ICTTFC] Incompatible complex type usage
/p/mpg/sa_ppa_fpga_design_05/work/epniel/ICLI_M0//verif/tests/cv_base_test.sv, 94
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
CV_ENV_LIB.cv_env_pkg::cv_config’, while the type of the formal is ‘class
FPGA_CVE_TB_LIB.ovm_pkg::ovm_object’. Expression: this.m_cv_config
Source info: this.set_config_object(“*”, “cv_config”, this.m_cv_config, 0)
Error-[ICTTFC] Incompatible complex type usage
/p/mpg/sa_ppa_fpga_design_05/work/epniel/ICLI_M0//verif/tests/cv_base_test.sv, 114
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
OCP_BFM_LIB.ocp_bfm_env_pkg::cust_svt_ocp_system_configuration’, while the
type of the formal is ‘class FPGA_CVE_TB_LIB.ovm_pkg::ovm_object’.
Expression: this.test_cfg
Source info: this.set_config_object(“*env”, “test_cfg”, this.test_cfg, 0)
I came across this error before in analysis port using, and I needed to make sure both of them are using the same seq_item,
but here, I don’t know what is the “formal” type, where I set it to be ovm_object (I guess it’s somehow related to the FPGA_CVE_TB_LIB, don’t really know how), and how can I solve this.
thanks for your help.
Ori