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

12.1 Install - Environment not setup correctly when running Xilinx settings script from custom scripts


I would like to source the Xilinx Linux settings script (settings32|64.csh) using my own custom script which sources other 3rd party software. 

However, when I do so, some Xilinx environment variables are not setup correctly and therefore I cannot launch the software. 

The scripts work correctly if I source them directly.  

How can I run these scripts from other custom scripts?


This issue is resolved in ISE Design Suite 12.2.

In ISE 12.1, the scripts leverage the value of "$_" to determine the location of the script. 

While this works successfully when the script is run directly, it will not return the correct value if run from within a custom script.

To work around this issue, do one of the following,

  • Source the script file directly.
  • Edit the script by doing the following:
    1. Run "echo XIL_SCRIPT_LOC_TMP_UNI" to learn what the correct value of this environment variable is.
    2. Edit the settings script and replace the line
set XIL_SCRIPT_LOC_TMP_UNI='echo $_ | cut -d" " -f 2'
set XIL_SCRIPT_LOC_TMP_UNI=[Return value from echo command]
AR# 35797
Date 01/09/2015
Status Archive
Type Known Issues
  • ISE Design Suite - 12.1
  • ISE Design Suite - 13.1
  • ISE Design Suite - 11.1
Page Bookmarked