Passing master_id from top to bottom?

Hi All,

In the xbus examples, just came across this below configuration.

set_config_int({inst_name, “"}, “master_id”, i);
Eg:
for(int i = 0; i < num_masters; i++) begin
$sformat(inst_name, “masters[%0d]”, i);
masters[i] = xbus_master_agent::type_id::create(inst_name, this);
set_config_int({inst_name, "
”}, “master_id”, i);
end

Does this pass the master_id, from the environment to the agent and the respective components like the driver and the sequencer or it just passes the master_id from environment to the agent, and the rest we got to pass…

Kindly help out.

Thanks in Adv,
Desperado → :rolleyes:

Thanks,

Its working it was a quite silly mistake I had done…

Thanks,
Desperado

set_config_int({inst_name, “*”}, “master_id”, i);

Please let me know how the above statement will work?

I used to give,

set_config_int(“inst_name”, “master_id”, i);

What difference will the “*” operator brings in?

set_config_int({inst_name, ""}, “master_id”, i);
I think here inst_name is a string variable. So it use {} to concatenate inst_name with '
'.
It is just a regular expression,such like “abc*”.
am i right??