I'm using UVM command line arguments to set configuration properties in the UVM hierarchy.
When I pass in a bad config option, I would like to see a UVM_ERROR
or another failure indication. What's the easiest way to accomplish this?
For example, if I pass in a bad option like:
+uvm_set_config_int=bad,mode,5
The sim completes, and I do not see any indication from the log that the option was bad:
# UVM_INFO @ 0: reporter [UVM_CMDLINE_PROC] Applying config setting from the command line: +uvm_set_config_int=bad,mode,5
Full code can be run here: http://www.edaplayground.com/s/4/673
I created a
uvm_component
that can flag a bad+uvm_set_config_
option. It throws aUVM_ERROR
if a bad option was passed in, like:Full example can be run here: http://www.edaplayground.com/s/4/766
The code:
SVUnit test for the above
cmd_line_checker
here: http://www.edaplayground.com/s/4/768