Creating a VHDL library through Tcl:
The "lib_vhdl new" command creates a new library in the current ISE project.
To add a source file to a VHDL library using Tcl, you can specify the library when adding the file to the project, or add the file and then move it to the desired library.
Specifying a VHDL library when adding a source to a project:
Moving a source file to a VHDL library:
The "lib_vhdl add_file" is used to move a project source file to a VHDL library in the current project.
Note: If two source files have the same name (but different directory locations) the absolute path to the source file being specified must be used.
If only the file name is specified, the first file name to matched is moved to the given library, which might be incorrect if there are multiple files of the same name.