I am running simulations with different parameters passed to the testbench as plusargs. I want to dump a separate VCD file for each of these runs. I tried declaring a string variable and constructing the file name using the parameters passed, and pass this on to $dumpfile
.
string file_name;
file_name = "tx_dsp.vcd"
$dumpfile(file_name);
But, I am getting the following error in IES:
Passing string variable to this system task/function is currently not supported
As a workaround, I defined the file name from the command line and used it as argument to $dumpfile
. This works, but not if the test parameters were randomized from inside the testbench.
Is this the behaviour of simulator or SystemVerilog?