PN 0402246-01
Page 14 of 17
Step 7C: Compile ISE Simulation Libraries for ModelSim
Most simulators require you to compile the HDL libraries before you can use them for design
simulations. The advantages of compiling HDL libraries are speed of execution and economy of
memory.
Xilinx provides
compxlib
to compile the HDL libraries for all Xilinx-supported simulators. This utility
will compile the UNISIM, XilinxCoreLib and SIMPRIM libraries for all supported device architectures.
Compile Libraries
For ML300, you will need the unisim, simprim, smartmodels, and XilinxCoreLib for Virtex-II Pro
to run on ModelSim SE.
1.
Open a Command Prompt / DOS shell (Windows) or appropriate Unix shell (Solaris) with its
environment set to run ISE, EDK, and ModelSim. On Windows, your environment has already
been set up to run the tools. On Solaris, source the necessary environment scripts to be able to
run these tools.
2.
Choose a directory to install the libraries. As a default, install them under a new “mti_se”
subdirectory under the EDK install directory %XILINX_EDK% (Windows) or $XILINX_EDK
(Solaris). This directory will be created automatically by
compxlib
if it does not exist.
3.
Run
compxlib
. If you chose our directory suggestion, your command is:
Windows:
compxlib -s mti_se -f virtex2p:u:s:c:m -l all -w -o %XILINX_EDK%\mti_se
Solaris:
compxlib -s mti_se -f virtex2p:u:s:c:m -l all -w -o $XILINX_EDK/mti_se
This command compiles the unisim, simprim, and XilinxCoreLib verilog / vhdl libraries on
ModelSim SE for the Virtex-II Pro family in a new “mti_se” sub-directory of your EDK install
directory. It also compiles the smartmodels. The compiled results are saved in the following
directories:
unisims_ver
simprims_ver
XilinxCoreLib_ver
unisim
simprim
XilinxCoreLib
4.
Make note of where you installed the libraries. If you chose our directory suggestion, the
libraries are installed in %XILINX_EDK%\mti_se (Windows) or $XILINX_EDK/mti_se
(Solaris).
www.BDTIC.com/XILINX