In the 9.1i release of ISE, there is no way to create or use VHDL libraries through the Tcl interface. How can I use VHDL libraries in XST without a Tcl command for this purpose?
There is an advanced option in the Project Navigator called "Custom Compile File List" that allows users to specify the exact set of source files and libraries sent to XST. This option is accessible via Tcl, and here's how it works.
First, create your custom compile file, which is simply a *complete* list of all the HDL source files in the project and the libraries associated with each file, in the order in which they are to be compiled. The syntax for this files is simply a library and a file, one per line, separated by a semi-colon.
Here are the contents of a sample file, called list.lst:
Then, use the following Tcl command to access this file:
project set "Custom Compile File List" list.lst
In the 9.2i release, a new Tcl command will be introduced that will support the creation and management of VHDL libraries.