Why do I get an error when I try to launch ModelSim from within MATLAB 7.8(R2009b) on a Linux machine?

7 views (last 30 days)
I am trying to launch ModelSim from within MATLAB. When I execute the following command
vsim
I get the following error
??? Error using ==> hdlsim at 189
hdlsim: Could not open command file
/nfs/iil/eda/data/disk0028/mathworks/matlab/R2009b/linux_2.6.16_x86-64/c
ompile_and_launch.tcl Use 'startupfile' to define
a valid command file.
Error in ==> vsim at 91
hdlsim(pvpairs{:});

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Dec 2009
MATLAB creates a 'compile_and_launch' file in the current directory when the command VSIM is executed at the MATLAB command prompt. If the user does not have write permissions to the current directory the creation of this file would fail.
To workaround this issue consider one of the following two approaches:
1. Change the current directory where user has write permissions.
2. Use the optional argument 'rundir' for the VSIM command to specify the directory where ModelSim needs to run. For example consider the following code
vsim('rundir',tempdir);

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2009b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!