I don’t want to create separate variables such as my_arg_0, my_arg_1 etc. There are too many of them. I have an array of my_arg variables, where I want to keep the value obtained from the command line. So I need to process “my_arg_” and the following number separately.
I know it’s quite easy to do in PERL, but how can I do it in systemverilog/uvm?
Thanks, but could you check the syntax one more time? I am getting the following error:
Error-[STASKE_VPAMHFS] Invalid argument to $value$plusargs
An invalid plusarg_format string ‘num_sets_0=’ is passed as first argument
to $value$plusargs.
Please ensure that the first argument to $value$plusargs is a valid
plusarg_format specifier string.