How control the parameter value from test

Parameters are constant . So how to change the parameter value in test ? If parameter is defined in class ?

In reply to bijal thakkar:

Parameters are run-time constants. The test is a run-time procedure. It’s too late to change a parameter by the time you get to the test.

You can try

  • using a variable in a configuration object instead of a parameter to control the test
  • re-compiling the test for each parameter value needed
  • tool-specific options for overriding parameters for each test

Thanks Dave ,

Actully i want to reframe the question like how to control the parameter value from the test ?

In reply to bijal thakkar:

It’s not clear which parameters you want to control. The test instantiates the environment, which instantiates everything else. Those instantiations can pass parameters down this hierarchy.

There are many DVCon papers on this subject: (Note DVCon links are currently broken. I have attached the papers I could find)

http://events.dvcon.org/2016/proceedings/papers/08_4.pdf

https://dvcon.org/files/files/2013/slides/posters/1P_8.pdf

1P.8 Deploying Parameterized Interface with UVM

Thanks Dave