We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!


AR# 22570

8.1i ISE - When I launch ModelSim with a custom ".do" file, the following message appears: "# invalid command name"


Keywords: spaces, do, command, incomplete, MTI, MXE, MSE, MPE

When I run a simulation process with ModelSim as the simulator, the ModelSim application opens but a message similar to the following appears in the transcript window:

"# Reading C:/Modeltech/tcl/vsim/pref.tcl
# C:/my_design/command file/functional.do
# invalid command name "C:/my_design/command""


If you specify a custom command file (.do) that resides in a directory with spaces in the directory path, Project Navigator does not send the correct command line to ModelSim.

The problem is in the %XILINX%\data\projnav\scripts\dpm_flowUtils.tcl script, and can be fixed by changing the following line:

puts $_DoFile "$_VLog $_OtherVLOGOptions \"$_File"


puts $_DoFile "$_VLog $_OtherVLOGOptions \"$_File\""

Additionally, the ".do" file will be located correctly if it can be specified using a relative path.

This problem has been fixed in the latest 8.2i Service Pack available at:
The first service pack containing the fix is 8.2i Service Pack 1.
AR# 22570
日期 03/26/2008
状态 Archive
Type 综合文章