Hi ,
What data type to use in uvm_config_db for an queue of class_object.
I faced the fallowing error when i use only class name
if(!uvm_config_db #( random_input )::get(null, “”, “rand_ip_q” , rand_ip_q))
|
ncelab: *E,TYCMPAT (~/verif/bench/seqLib.sv,149|76): formal and actual do not have assignment compatible data types (expecting datatype compatible with ‘class test_pkg::random_input’ but found ‘queue of class test_pkg::random_input’ instead).
I did some workaround for this problem, now the ERROR is different.
workaround:
typdef random_input random_input_q[$];
uvm_config_db #( random_input_q )::get(null, “”, “rand_ip_q” , rand_ip_q)
and the error is
ncvlog: *E,SVTPCO (~/verif/tests/basic_test.sv,50|31): Currently type parameter override is not supported for this datatype.
thanks in advance
In reply to shivabachu:
You will need to contact your simulation vendor as this is proper SystemVerilog code.