UPGRADE YOUR BROWSER

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# 32513

Tcl - lib_vhdl command fails with full path name - ERROR:TclTasksC:lib_vhdl_022: File "d:/project_dir/lib_file.vhd" does not exist in the project

描述

The lib_vhdl command fails when the full path name of a source file is given.

Example:

The command "lib_vhdl add_file my_lib d:/project_dir/lib_file.vhd" returns the following error.

ERROR:TclTasksC:lib_vhdl_022: File "d:/project_dir/lib_file.vhd" does not exist in the project.

解决方案

If lib_file.vhd has been added to the project, the example command above should be changed to : "lib_vhdl add_file my_lib lib_file.vhd"

If you are using a looping command to add files to a library, you may need to use the "file tail" command.

Example:

foreach {file2add} [glob ../source/dir/*] {lib_vhdl add_file my_lib $file2add}

does not work, as $file2add returns a file name qualified with the path.

Workaround is:

foreach {file2add} [glob ../source/dir/*] {lib_vhdl add_file my_lib [file tail $file2add]}

链接问答记录

相关答复记录

Answer Number 问答标题 问题版本 已解决问题的版本
35122 11.5 ISE - Project Navigator does not use Custom Editor for File -> Open or Recent Files N/A N/A
AR# 32513
日期 12/15/2012
状态 Archive
Type 综合文章
的页面