Passing command line arguments into environment

I have an env configuration file which has different variables. These variables are initialized to a default value inside the configuration file. However I would like to override the default values from the command line. How do I do this? In case no command line values are passed, then the default values must remain. I found suggestions on using uvm_cmdline_processor, but am not clear on its usage.

Any thoughts on this? Thanks!

In reply to tpan:

Any thoughts on this? Thanks!

Can you specify is not clear to you? Have you tried creating an simple example,

Like this

HTH,

-R

In reply to tpan:

Any thoughts on this? Thanks!

You can use the pre-defined commandline commands like this:
+uvm_set_config_int=/.mon/,par,9

Or you can specify your own switches.

In reply to chr_sue:

Thanks chr_sue. I wasn’t aware of uvm_set_config. I will explore its usage and give it a try.