I would like to create a define called MOD_PATH to an instance of module that contains parameters. So, instance name is created as an escaped name.
So I trying to pass it by command line as
"–define MOD_PATH=\\top.module(DATA_WITDH=8,MODEL="TYPE_A")\ "
and trying to use as (in SV testcase)
`MOD_PATH.task_a();
However, it expanded for “\top.module(DATA=8,MODEL=“TYPE_A”)” and last space seems not appears.
So module is not found. Hardcode it is working.
Any suggestions?