I found that the set_config_* only work for ovm_component.
I wanted to change the "sub_item" of ovm_sequence_item dynamically on the run-time.
class sub_trans extends ovm_sequence_item;
...
endclass : sub_trans
class my_trans extends ovm_sequence_item;
...
ovm_sequence_item sub_item;
`ovm_object_utils_begin(my_trans)
`ovm_field_object(sub_item, `OVM_ALL_ON)
`ovm_object_utils_end
...
endclass : my_trans
Change the "sub_item" to a object of sub_trans on the run-time.
So I use "set_config_object":
class my_test extends ovm_test;
...
function void build();
sub_trans tr = new;
super.build();
set_config_object("*.my_trans", "sub_item", tr);
...
endfunction : build
...
endclass : my_test
But The simulator told me that the configuration cannot be applied.
Does set_config_* only work for ovm_component?
Any idea ?