46
Virtex-5 RocketIO GTP Transceiver User Guide
UG196 (v1.3) May 25, 2007
Chapter 3:
Simulation
R
Examples
Simulation Environment Setup Example (ModelSim SE 6.1d on Linux)
This section provides an example how to set up a simulation environment for SmartModel
support. This is a prerequisite for simulating designs containing GTP_DUAL tile(s).
This example uses ModelSim SE 6.1d, the HDL simulator from Mentor Graphics, with
RedHat Enterprise Linux 3.0 as the operating system and version 8.1i of the Xilinx ISE
Development System. The
Synthesis and Simulation Guide
provides guidelines and
examples for a different HDL simulator or Xilinx ISE development system
(1)
.
Use
setenv
to set the following environment variables:
The initialization file (
Modelsim.ini
) contains the following settings:
libsm = $MODEL_TECH/libsm.sl
libswift = $LMC_HOME/lib/linux.lib/libswift.so
Resolution = 1ps ;(one picosecond simulator resolution)
The location of SmartModel in the ISE directory tree is:
$XILINX/virtex5/smartmodel/lin/image
The selected options for the COMPXLIB tool are:
compxlib -s mti_se -l all –arch all -smartmodel_setup
These options use the compxlib tool to compile all libraries for all languages for the
ModelSim SE 6.1d HDL simulator. The default output directory is
$XILINX/language/target_simulator
. The compiled libraries are specified to be
written to
$XILINX/vhdl/mti_se
and
$XILINX/verilog/mti_se
.
SIM_PLL_PERDIV2 Calculation Example
This section provides examples of how to calculate the correct value for the simulation-
only attribute SIM_PLL_PERDIV2.
1. If there is a contradiction between this example and the documentation of your simulator, the simulator
documentation has precedence. If a newer version of the Xilinx ISE development system is used, check the
Xilinx website for additional information.
•
XILINX
Location of the installed Xilinx ISE system (for example,
/opt/Xilinx/ise_8_1_i
)
•
MODEL_TECH
Location of the installed ModelSim simulator (for example,
/edatools/mentor/modelsim/6.1d/
)
•
LMC_HOME $XILINX/smartmodel/lin/installed_lin
•
LMC_CONFIG
$LMC_HOME/data/linux.lmc
•
LD_LIBRARY_PATH
$LMC_HOME/lib/linux.lib:$LD_LIBRARY_PATH