I am trying to change a generic in my testbench when I start the simulation (using Questasim base). I am using the following script :-
TestName tb_test1
analyze tb_test1.vhd +acc
simulate tb_test1 [generic USE_ADV_MODE 1]
I get the following output from the simulator
vopt {*}-work dma_mm2s -L dma_mm2s tb_test1 common.glbl -o tb_test1_opt -gUSE_ADV_MODE=1 -designfile C:/hds/hdl/dma/sim/dma_dma_mm2s/reports/JON/tb_test1_USE_ADV_MODE_1_design.bin
Then a bit further down it says
** Warning: (vopt-3040) Command line generic/parameter “USE_ADV_MODE” not found in design.
The simulation runs and I can see the generic is there but it has the default value I set in the testbench.
I am not sure what I am doing wrong.
Thanks