Forum Discussion

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

[ModelSim] how to know the currently used modelsim.ini? How to report its location?

Hi All,

How can I know what modelsim.ini is currently used by Modelsim?

How can I report a path (location) to the modelsim.ini from the Transcript window of Modelsim?

Thank you!

4 Replies

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

    Type 'where'.

    For example, I use a Modelsim Tcl script to setup the path to modelsim.ini based on the tool version. If I type 'where' in Modelsim-ASE for Quartus II 15.0, this is the output

    --- Quote Start ---

    Modelsim> where

    # Current directory is: C:/software/altera/15.0

    # Project is: c:/build/modelsim/v10.3d_ase/modelsim.ini

    #

    --- Quote End ---

    Note how the modelsim.ini path is to a location in my build area, in a folder specific to that version of Modelsim-ASE.

    This allows me to have multiple versions of Modelsim-ASE and Modelsim-SE installed.

    Cheers,

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

    Here is an output from the where command in my ModelSim:

    %> where

    # Current directory is: C:\QUESTA_PROJECTS

    # Project is: C:/QUESTA_PROJECTS/USBIF.mpf

    #

    So, the modelsim.ini location is not reported, just a location of the *.mpf file and the current directory
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    *.mpf is a Modelsim Project File. That is an alternative file to modelsim.ini. I have never found it to be particularly useful, so have stuck with the modelsim.ini file.

    Read the Modelsim documentation for more details on the differences between the two files. I can't recall what I did not like about *.mpf files, it could be that I was just resistant to change :)

    Cheers,

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

    OK, lets say I started the ModelSim with some modelsim.ini, but now I want to switch to another project, which should use another modelsim.ini.

    So, how can I switch between the different modelsim.ini files? Can I source the modelsim.ini (like another tcl file)?