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.
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.