Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

ModelSim commands

Hey guys,

I got to know that ModelSim can be also operate through its "Transcript" window. E.g. if you type run in simulation mode, the simulation starts.

Is there a summary of all those commands available?

Thanks,

Mel

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Quick reference that I use all the time:

    vcom (-work library) : compile VHDL (into the specific library)

    vlog : compile verilog

    vsim <module> : start simulation of "module"

    quit - sim

    run x ns (-all) : run for x ns (-all = untill simulation stops).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, YES !, you get it in the help menu, especialy in pdf documentation.

    You can put all your commands in a macro file (=text file with .do or .tcl extension that you can run with "source mymacro.do" or "do my macro.do"

    Those macros are TCL (see TCL langage)

    In order to not to hang simulation, you should put "run 100 us" for example.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    In order to not to hang simulation, you should put "run 100 us" for example.

    --- Quote End ---

    Or write a decent testbench with a timeout if the simulation doesnt complete.