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

Install - How do I check or manually set environment variables?

Description

How do I check or manually set the environment variables for Xilinx design tools?

NOTES:

  1. If you are not sure what to set your environment value to, try using"1" or "TRUE".
  2. Xilinx design tools must be closed and restarted for the environment variables to be used.
  3. To disable the variable, setting to "0" or "FALSE" does not always work. Therefore, you should remove the variable.

Solution

To set in Linux (csh/tcsh shell)

  1. Use the command "setenv VARIABLE value".
  2. Test whether it worked by using "echo $VARIABLE"
    For example::
    setenv XILINX /programs/Xilinx

To unset in Linux (csh/tcsh shell)

  1. Use the command "env -u VARIABLE" or "unsetenv VARIABLE"
  2. Test whether it worked by using "env"
    For example::
    env -u XILINX

Linux (sh/bash shell)

  1. Use the command export VARIABLE = value
  2. Test whether it worked by using "echo $VARIABLE"
    For example:
    export XILINX = /programs/Xilinx

To unset in Linux (sh/bash shell)

  1. Use the command "unset VARIABLE"
  2. Test whether it worked by using "env"
    For example::
    unset XILINX

Windows XP Professional

Globally:

  1. Right-click My Computer, and select Properties.
    NOTE: "My Computer" will be located under the "Start" menu, if it is not on the desktop.
  2. Click the Advanced tab.
  3. Click Environment Variables, and add the desired variable.
    For example:
    Variable: XILINX
    Value: C:\Xilinx

Windows 2000 Professional

  1. Right-click My Computer, and select Properties.
  2. Click the Advanced tab.
  3. Click Environment Variables, and add the desired variable.
    For example:
    Variable: XILINX
    Value: C:\Xilinx
  4. Click Set.
  5. Click Apply.
  6. Click OK.

Windows XP/2000 Professional single-session

  1. Open a command prompt.
  2. Set the Xilinx variable.
  3. Set the PATH variable.
  4. Run the Xilinx command-line application.
    For example:
    1. Go to Start -> Run, and run "cmd".
    2. At the prompt, type: set XILINX=C:\<path_to_Xilinx>
    3. At the prompt, type: set PATH=C:\<path_to_Xilinx>\bin\nt;%PATH%
    4. At the prompt, type: "ngdbuild"


For a single Project Navigator session

On Windows operating systems, environment variables can be set or unset from within the Project Navigator GUI.

From the Tcl Shell (available in 8.2i and later), type the following:
set env(<VARIABLE>) <value>

Example:
set env(TEMP) c:\temp

To remove or unset an environment variable from the Tcl shell, type:
unset env(<VARIABLE>)

To remove or unset an environment variable from the Tcl shell, type: unset env(<VARIABLE>)

Example:
unset env(TEMP)

To see the value of an environment variable in the tcl shell, type:
puts $::env(<VARIABLE>)

Linked Answer Records

Associated Answer Records

Answer Number Answer Title Version Found Version Resolved
34279 Virtex-6 FPGA Integrated Block Wrapper for PCI Express - Patches and Wrapper Source Code Updates N/A N/A
AR# 11630
Date Created 08/29/2007
Last Updated 02/20/2013
Status Active
Type General Article
Tools
  • ISE - 10.1
  • ISE Design Suite - 11.1
  • ISE Design Suite - 11.2
  • More
  • ISE Design Suite - 11.3
  • ISE Design Suite - 11.4
  • ISE Design Suite - 11.5
  • ISE Design Suite - 12.1
  • ISE Design Suite - 12.2
  • ISE Design Suite - 12.3
  • ISE - 8.1i
  • ISE - 8.1i sp1
  • ISE - 8.1i sp2
  • ISE - 8.1i sp3
  • ISE - 8.2i
  • ISE - 8.2i sp1
  • ISE - 8.2i sp2
  • ISE - 8.2i sp3
  • ISE - 9.1i
  • ISE - 9.1i sp1
  • ISE - 9.1i sp2
  • ISE - 9.1i sp3
  • ISE - 9.2i
  • ISE - 9.2i sp1
  • ISE - 9.2i sp2
  • ISE - 9.2i sp3
  • ISE - 9.2i sp4
  • Less