The config_compile_simlib
Tcl command lets you configure third-party simulator options for use by the compile_simlib
command.
Tcl Command
config_compile_simlib [-cfgopt <arg>] [-simulator <arg>] [-reset] [-quiet] [-verbose]
Where:
-
-cfgopt <arg>
: Configuration option in form of<simulator>:<language>:<library>:<options>
. -
-simulator
: The name of the simulator whose configuration you want -
-reset
: Lets you reset all previous configurations for the specified simulator -
-quiet
: Executes the command without any display to the Tcl Console. -
-verbose
: Executes the command with all command output to the Tcl Console.
For example, to change the option used to compile the UNISIM VHDL library, type:
config_compile_simlib {cxl.modelsim.vhdl.unisim:-source -93 -novopt}
compile_simlib
command compiles Xilinx
primitives and Simulation models of Xilinx
Vivado IP. Xilinx
Vivado IP cores are delivered as an output product
when the IP is generated; consequently they are included in the pre-compiled libraries
created using compile_simlib
.Compiling Patched IP Repository in a New Output Directory Using MYVIVADO
Assume that the patched IP repository is at the following location:
'/test/patched_ip_repo/data/ip/xilinx'
To compile the default installed IP repository and the repository that is pointed to
by MYVIVADO in a new output directory, set the MYVIVADO environment (env) variable
to point to this patched IP repository and run compile_simlib
.
compile_simlib
will process the IP library sources from the
default installed repository and the one set by MYVIVADO.
% setenv MYVIVADO /test/patched_ip_repo
% compile_simlib -simulator <simulator> -directory <new_clibs_dir>
Compiling Patched IP Repository in an Existing Output Directory Using MYVIVADO
Assume that the patched IP repository is at the following location:
'/test/patched_ip_repo/data/ip/xilinx'
To compile the repository pointed to by MYVIVADO in an existing output directory
where the library was already compiled for the default installed IP repository, set
the MYVIVADO env variable to point to this patched IP repository and run
compile_simlib
. compile_simlib
will process
the IP library sources from the repository set by MYVIVADO in the existing output
directory.
% setenv MYVIVADO /test/patched_ip_repo
% compile_simlib -simulator <simulator> -directory <existing_clibs_dir>