Hi,
I am trying to assign one uvm_component to other uvm_component through casting got the below warning.
Warning: (vsim-12051) /rfs/proj/cs_csa_lcs2_private/projects/walleye/walleye1/trunk/dv/verif/common/uvc/architecture/RC_base_test.sv(414): Illegal assignment in cast to class
Source code:
virtual function void checkScoreboards();
uvm_component comparator_list[$];
RC_base_comparator my_comparator_ref;
string my_name;
find_all_by_type("*_data_comparator*", comparator_list, uvm_top);
if (comparator_list.size() >= 1)
begin
foreach(comparator_list[i]) begin
my_comparator_ref = RC_base_comparator'(comparator_list[i]); ///Warning
my_name = my_comparator_ref.get_name();
In the above code, RC_base_comparator is another uvm_component.
Would you please help me to fix this warning.