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

ISE 9.1i - How to use VHDL libraries through Tcl

Description

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?

Solution

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.

<code>

<library_name>;<file_name>

[<library_name>;<file_name>]

</code>

Here are the contents of a sample file, called list.lst:

<code>

mylib;reuse.vhd

ip_lib;core.vhd

work;lower1.vhd

work;lower2.vhd

work;top.vhd

</code>

Then, use the following Tcl command to access this file:

<code>

project set "Custom Compile File List" list.lst

</code>

In the 9.2i release, a new Tcl command will be introduced that will support the creation and management of VHDL libraries.

AR# 29025
Date Created 07/23/2007
Last Updated 01/06/2010
Status Archive
Type General Article