How to know if plusargs are actully used in simulation

Hi,

I have query regarding $test$plusargs and $value$Plusargs, Is there anyway to know that given run time argument is used in simulation or not ?

For example, I am passing +num_xtn=1000 in my run command, but due to typo in my test case I am actually not using this plusarg in my simulation.

Is there anyway to know that given plausrgs in run command is not utilized?

Thanks

In reply to irshad_mansur:

There is a way to get the entire command line using the VPI routine vpi_get_vlog_info(), and the UVM provides a very handy get_plusargs() that puts all of the +options into a queue of strings.

But even if you used one of these methods, there is no way of knowing which +options got used by $test$plusargs and $value$Plusargs and which ones didn’t.

My suggestion would be to use the get_plusargs() method instead of $test$plusargs and $value$Plusargs to retrieve all your test options and mark each option as they get used, or you can have a registry of options your test will use and compare the registry with the list when the test starts so it can immediately stop if there is any unused +options.

In reply to dave_59:

Thanks, I will try this out