Configuring Your System
Install the appropriate software and verify that your system is properly configured as described in the release notes that came with your software package. When you have finished the installation, verify that your .cshrc or setup file contains lines similar to the following:
setenv XILINX location_of_Xilinx_software
setenv LCA $XILINX/mentor/data
setenv SIMPRIMS $LCA/simprims
set path=($XILINX/bin/sol \
$XILINX/mentor/bin/sol $MGC_HOME/bin $path )
NOTEPath names of directories will vary. (For example, $XILINX/bin/sol would be $XILINX/bin/hp if you are running the Xilinx software on an HP workstation.) For more information on paths and environment variables, refer to the release notes that came with your software package.
| XILINX is the directory where all Xilinx software is located.
LCA is the directory which includes Mentor-Interface files such as Xilinx libraries, translators, and scripts.
SIMPRIMS is the directory where the Mentor SIMPRIM models are located.
Modifying Mentor Graphics Variables
Make sure that the following Mentor Graphics specific variables are set correctly:
- MGC_HOME
This should point to the Mentor Graphics software tree.
- MGC_GENLIB
This should point to the Mentor Graphics gen_lib library, normally $MGC_HOME/gen_lib.
- MGLS_LICENSE_FILE
This variable must point to a valid FlexLM license file that lists the Mentor Graphics license daemon and licensed software features, as supplied by Mentor Graphics. A sample license file may begin as follows:
SERVER tequiero 9542df17 1700
DAEMON mgcld /tools/mentor/lib/mgcld
/usr/local/data/mentor.opt
FEATURE falconfw_s 8.0 31-dec-1997 10 ...
- LD_LIBRARY_PATH
This variable is used by Mentor Graphics and Xilinx programs. On a SPARCstation with OpenWindows installed in /usr, this variable is set as follows:
setenv LD_LIBRARY_PATH $MGC_HOME/shared/lib:$MGC_HOME/lib:$XILINX/bin/sol:/usr/openwin/lib
On HP workstations, the variable is SHLIB_PATH. Leave out /usr/openwin/lib.
- MGC_LOCATION_MAP
This variable should point to a valid location map file.
Each component in a design contains a reference indicating where it resides on the disk or network. All components in designs created in the Mentor Graphics B.x environment reference the variable $LCA, while back-annotated timing models reference the variable $SIMPRIMS. It is also important that the $LCA and $SIMPRIMS variables be instantiated, but not defined, in the file pointed to by $MGC_LOCATION_MAP. With all these elements, the location-map file should, at a minimum, look like:
MGC_LOCATION_MAP_1
(empty line)
$MGC_GENLIB
(empty line)
$LCA
(empty line)
$SIMPRIMS
(empty line)
The MGC_LOCATION_MAP_1 line indicates that this is a version 1 location-map file. (You can also use the version MGC_LOCATION_MAP_2, which adds features such as outside file inclusion.) The three soft names with blank lines indicate that the Mentor Graphics software should pull the associated values from the parent environment.
Refer to the Mentor Graphics documentation for more information on location maps.
- MGC_WD (Optional)
This variable should point to the working directory. You can have this variable always point to your current directory by setting it to .
Xilinx tools ignore the MGC_WD variable.
- LCA
In addition to instantiating it in the file pointed to by MGC_LOCATION_MAP, the LCA environment variable should point to the directory where the DS344 software is installed, typically $XILINX/mentor/data.
- SIMPRIMS
This points to the directory where Xilinx simulation models are located. This should be set to $LCA/simprims.
Refer to the release notes for additional information on paths and environment variables.