Download Xilinx Command Line Tools User Guide (UG628)

Transcript
Chapter 25: Compxlib
When mapping to a pre-compiled location, do not specify the -w option. If there are no
pre-compiled libraries in the default location, Compxlib starts to compile the libraries.
Additional Compxlib Examples
Task
Command
Display the Compxlib help on the screen
compxlib -h
Obtain help for a specific option
compxlib -h <option>
Obtain help for all the available architectures
compxlib -h arch
Compile all of the Verilog libraries for
a Virtex-5 device (UNISIM, SIMPRIM
and XilinxCoreLib) on the ModelSim SE
simulator and overwrite the results in
$XILINX/verilog/mti_se
compxlib -s mti_se -arch virtex5
-l verilog -w
Compile the Verilog UNISIM, Uni9000 and
SIMPRIM libraries for the ModelSim PE
simulator and save the results in the $MYAREA
directory
compxlib -s mti_pe -arch all -lib
uni9000 -lib simprim-l verilog
-dir $MYAREA
Compile the Verilog Virtex-5 device
XilinxCoreLib library for the Synopsys
VCS and VCS MX simulators and save
the results in the default directory,
$XILINX/verilog/vcs
compxlib -s vcs_mx -arch virtex5
-lib xilinxcorelib
Compile the Verilog CoolRunner™ device
library for the Synopsys VCS and VCS MX
simulators and save the results in the current
directory
compxlib -s vcs_mx -arch
coolrunner -lib -dir ./
Print the precompiled library
information for the libraries compiled
in %XILINX%\xilinxlibs
compxlib -info %XILINX%\xilinxlibs
Print the precompiled library information
for the libraries compiled in the $XILINX
directory for the ModelSim SE simulator
compxlib -info $XILINX/mti_se/
Create compxlib.cfg with default options
compxlib -cfg
Specifying Runtime Options
Use the compxlib.cfg file to specify runtime options for Compxlib. By default,
Compxlib creates this file in the current directory. To automatically create this file
with its default settings, use the -cfg option. See -cfg (Create Configuration File) for
more information.
You can specify the following runtime options in the configuration file.
EXECUTE
EXECUTE: on|off
By default, the value is on.
If the value is on, Compxlib compiles the libraries.
If the value is off, Compxlib generates only the list of compilation commands in the
compxlib.log file, without executing them.
Command Line Tools User Guide
UG628 (v14.7) October 2, 2013
Send Feedback
www.xilinx.com
331