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

6 visualizzazioni (ultimi 30 giorni)
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{:});

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 11 Dic 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);

Più risposte (0)

Tag

Non è stata ancora inserito alcun tag.

Prodotti


Release

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by