Changing compile_simlib Defaults - 2024.1 English

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2024-05-30
Version
2024.1 English

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 -cfgopt {modelsim.vhdl.unisim:-source -93}
Important: The compile_simlib command compiles AMD primitives and Simulation models of AMD Vivado IP. AMD 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 XILINX_PATH

Assume that the patched IP repository is at the following location:

'/test/patched_ip_repo/data/ip/xilinx'

Assume that the patched IP repositories are at the following locations:

To compile the default installed IP repository and the repository that is pointed to by XILINX_PATH in a new output directory, set the XILINX_PATH environment (env) variable to point to this patched IP repository and run compile_simlib. compile_simlib processes the IP library sources from the default installed repository and the one set by XILINX_PATH.

% setenv XILINX_PATH /test/patched_ip_repo
% compile_simlib -simulator <simulator> -directory <new_clibs_dir>

Compiling Patched IP Repository in an Existing Output Directory Using XILINX_VIVADO

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 XILINX_PATH in an existing output directory where the library was already compiled for the default installed IP repository, set the XILINX_PATH env variable to point to this patched IP repository and runcompile_simlib. compile_simlib processes the IP library sources from the repository set by XILINX_PATH in the existing output directory.

% setenv XILINX_PATH /test/patched_ip_repo
% compile_simlib -simulator <simulator> -directory <existing_clibs_dir>