Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

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

Altera_Forum
Honored Contributor II
6,510 Views

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!
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
4,984 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
4,984 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
4,984 Views

*.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
0 Kudos
Altera_Forum
Honored Contributor II
4,984 Views

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)?
0 Kudos
Reply