Problem simulating with genrics

Why OSVVM™? Forums OSVVM Problem simulating with genrics

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2888
    jon
    Member

    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

    #2889
    Jim Lewis
    Member

    Hi Jon
    Is the generic at the top level of the testbench or is it at a lower level?

    Best Regards,
    Jim

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.