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

11.2 ISE - Adding an EDIF file through a Tcl shell results in ERROR:TclTasksC:xfile_137: Failed to add file to the project


Using the Tcl command "xfile add" to add an EDIF source file to a project results in "ERROR:TclTasksC:xfile_137: Failed to add file to the project."


In 11.2, only one EDIF file is allowed to be added to a project through the GUI or through the Tcl shell. When adding a second file through the GUI, a detailed description is given for the failure. However, when adding through the Xilinx Tcl shell (xtclsh) or the Project Navigator Tcl console, the error message simply states that the addition of the file failed.

Scripts should be altered to only add one EDIF file to a project.

To verify that this is the reason for the failure in the Tcl shell, a user can attempt the equivalent action in the Project Navigator GUI.

AR# 33967
Date Created 12/14/2009
Last Updated 12/15/2012
Status Active
Type General Article