Questa* Intel® FPGA Edition Simulation User Guide

ID 730191
Date 4/01/2024
Public
Document Table of Contents

3.5.4. Passing In Custom Compilation and Elaboration Options for msim_setup.tcl

Sometimes you may need to add custom compilation options to the vlog or vcom commands that the dev_com and com commands call, or add your own elaboration options to the elaboration commands called by the elab and elab_debug commands.

To pass in custom Verilog HDL compilation options (which apply only to vlog commands), you simply set the USER_DEFINED_VERILOG_COMPILE_OPTIONS variable to the command-line options that you want to pass in. You set the USER_DEFINED_VERILOG_COMPILE_OPTIONS variable before calling dev_com or com.

The following example Tcl file shows passing in the Verilog HDL compilation option +define+FAST_SIM:

...
source msim_setup.tcl
…
set USER_DEFINED_VERILOG_COMPILE_OPTIONS “+define+FAST_SIM”
dev_com
com
…

To pass in custom VHDL compilation options (which apply only to vcom commands), set the USER_DEFINED_VHDL_COMPILE_OPTIONS variable to the command-line options that you want to pass in, similar to the Verilog HDL example.

To pass in custom elaboration options (which only apply to vsim commands), set the USER_DEFINED_ELAB_OPTIONS variable to the command-line options that you want to pass in, as the following example Tcl file with the elaboration option -nocvg shows:

…
source msim_setup.tcl
dev_com
com
set USER_DEFINED_ELAB_OPTIONS “-nocvg”
elab
…