How to configure the boolean type parameter which is defined in environment file

Hi friends,

I have defined some configurable parameters in my environment file as boolean& some other enumerated types. I am unable to configure those parameters in main configuration file. Can any one help me out on how to configure those fields defined in environment.

Regards,
Moneesh.

Hi guys,

I wrote all configurable fields in my environment.

set_config_int(“env”, “wr_enable”, “TRUE”);

I have tried " set_config_int" in main config (*_demo_sve.sv) file but for those fields am unable to configure.

Can any one suggest how to do this …

Thanks in advance,
Moneesh.

set_config_int(“env”, “wr_enable”, “TRUE”);

It looks like you are trying to set a string value “TRUE” to an integer config variable.

You might try:

set_config_int("env", "wr_enable", 1);

Another common problem with configuration entries is the path string. You specified “env”, which means that the ovm_component and ONLY the component that was created with the string name “env” in its constructor will be able to read the entry with a call to get_config_int(“wr_enable”,some_int_var). If you are trying to get this entry from any other components (e.g. children of the env component), they will not see it.

If you want to make the entry readable from all children as well as the env component, you should use “env*” as the path string in the set_config_int call.

-Kurt

Hi kurt,

Thanks for your help Mr.Kurt.
I got my mistake and the bug was fixed.

Regards,
Moneesh.