Forum Discussion

amildm's avatar
amildm
Icon for Contributor rankContributor
3 years ago
Solved

[ModelSim] vsim command - why Wave window is reloaded?

Hi,

I'm about the vsim command...

Here is how I'm used from the Transcript window:

%> vsim -t 1ns \
-L work \
-L work_lib \
-L altera_ver \
-L lpm_ver \
-L sgate_ver \
-L altera_mf_ver \
-L altera_lnsim_ver \
-L cyclone10gx_ver \
-L cyclone10gx_hssi_ver \
-L cyclone10gx_hip_ver \
-L fifo_191 \
-L fifo_dpr_72x4 \
-gui work.${UNIT}_tb \
-voptargs="+acc"

When I execute the above command, the Wave window is reloaded - all the signals are disappear from there and a fresh Wave window without signals is open.

In my intention was just re-elaborate the design after its re-compilation... I don't want that the Wave window will be reloaded...

So, how can I re-elaborate the re-compiled design without destroying signals in the Wave window?

Thank you!

  • The 'restart' command should solve the problem for restarting the simulation after recompilation the whole design...

    It seems that the 'restart' command is a subset of the vsim command...

9 Replies

  • SyafieqS's avatar
    SyafieqS
    Icon for Super Contributor rankSuper Contributor

    May I know if there is any other concern on this?

    Restart button should be rerun you compilation and simulation (whatever command in your .do file ), its not an elaboration.


  • SyafieqS's avatar
    SyafieqS
    Icon for Super Contributor rankSuper Contributor

    Hi Dmitry,


    Does previous reply helps?

    Yes, You should select the signal and add wave to the window to see it.




    • amildm's avatar
      amildm
      Icon for Contributor rankContributor

      Is there a way to compile/simulate design in 3 following steps?

      1) compilation

      2) elaboration

      3) simulation

      As for compilation, the vcom/vlog commands are used, for simulation - vsim...

      What command is used for the design elaboration?

      • sstrell's avatar
        sstrell
        Icon for Super Contributor rankSuper Contributor

        I think you're confusing compilation in Quartus vs. compilation in a simulation tool.

        Elaboration is part of building the design hierarchy in Quartus. The commands you mention do something similar in the simulation tool. You still have to always add the signals to the Wave window after you compile the design in ModelSim or QuestaSim.

  • So, when the elaboration phase is done? If it's not an independent stage, is it done during the code compilation (vlog) or simulation (vsim)?

    Will the 'restart' command re-run the simulation on the latest compiled code automatically?

    you wrote: "Restart button should be rerun you compilation and simulation (whatever command in your .do file )" - what's the relation between the RESTART button to my *.do file???

    Could the RESTART button be customized?

  • SyafieqS's avatar
    SyafieqS
    Icon for Super Contributor rankSuper Contributor

    The relation is for typical design that has not changed and you just want to run it against an updated testbench. In this case you can restart simulation by executing a custom script that you call with the 'do {script-name}' command whenever needed.