Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- What is the ownership of the file on your setup? --- Quote End ---
$ ls -al /opt/altera/11.1sp1/modelsim_ase/modelsim.ini
-r--r--r--. 1 root root 16445 Jan 21 12:22 /opt/altera/11.1sp1/modelsim_ase/modelsim.ini
If I start vsim, then because of the way I have things setup I see:
$ vsim
Reading /opt/altera/11.1sp1/modelsim_ase/tcl/vsim/pref.tcl
Reading /home/dwh/dwh/work/vhdl/scripts/modelsim.tcl
MODELSIM (before) = /opt/altera/11.1sp1/modelsim_ase/linux/../modelsim.ini
MODELSIM (after) = /opt/build/modelsim/v10.0c_ase/modelsim.ini
$
The environment variable MODELSIM_TCL can be set to the path of a script that will be run on startup. The messages regarding MODELSIM (before) and MODELSIM (after) relate to the modelsim.ini path before my remapping occurs and then after. In my setup I explicitly change the location the system looks for modelsim.ini, so I am probably circumventing the error you are seeing. If I unset MODELSIM_TCL so that script does not run, then start Modelsim from a shell via vsim, then I can create the following transcript withing Modelsim:
ModelSim> where# Current directory is: /home/dwh# Project is: /opt/altera/11.1sp1/modelsim_ase/linux/../modelsim.ini#
ModelSim> pwd# /home/dwh
ModelSim> vlib mwork
ModelSim> vmap work mwork# Copying /opt/altera/11.1sp1/modelsim_ase/linux/../modelsim.ini to modelsim.ini# Modifying modelsim.ini# ** Warning: Copied /opt/altera/11.1sp1/modelsim_ase/linux/../modelsim.ini to modelsim.ini.# Updated modelsim.ini.
ModelSim> where# Current directory is: /home/dwh# Project is: modelsim.ini#
The command 'where' tells you where Modelsim is looking for modelsim.ini. Note how it copied it to my home directory. Is this different from what you are getting? Cheers, Dave