Set_config_string

can we call set_config_string on a component that hasnt been built yet using the create task?

I saw this code and just wanted to see if it’s correct :

string denali_cfg_name = $psprintf(“denali_config%0d”, channel);
set_config_string(denali_cfg_name, “lpddr2_rank0x16_0_name”, {"DUNITCTE`“,$psprintf(”.u_ddr_mem_wrapper%0d.lpddr2_rank0x16_0", channel)});

denali_cfg[channel] = denali_config::type_id::create(denali_cfg_name, this);
denali_cfg[channel].set_channel_id(channel);
denali_cfg[channel].assign_vi(i_dunitcte_if);

Thanks
Vikram

The code you have looks good to go.

When you call set_config_string() you are placing the string into a config table in the parent component which its child and descendent components can access.