Forum Discussion
4 Replies
- Altera_Forum
Honored 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
Honored 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
Honored 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
Honored 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)?