diff options
author | Wade Fife <wade.fife@ettus.com> | 2021-06-09 13:29:10 -0500 |
---|---|---|
committer | Wade Fife <wade.fife@ettus.com> | 2021-06-17 08:16:59 -0500 |
commit | 08473776b28a949027ec8cf2596d8d1b438b979b (patch) | |
tree | 7ee23b58eefcabf20ee88d49318f4cf61d03de4b /fpga/usrp3/tools/scripts/launch_vlint.sh | |
parent | 5a4f0470919440819ab71f44fbc6f5f89a671e41 (diff) | |
download | uhd-08473776b28a949027ec8cf2596d8d1b438b979b.tar.gz uhd-08473776b28a949027ec8cf2596d8d1b438b979b.tar.bz2 uhd-08473776b28a949027ec8cf2596d8d1b438b979b.zip |
fpga: tools: Add modelsim.ini to ModelSim calls
This adds the MSIM_VIV_COMPLIBDIR environment variable to specify
a non-default location for the compilation libraries.
This also allows a modelsim.ini other than the one in the ModelSim
installation folder to be used. By default, the one in the simulation
libraries compilation directory will be used. This can be changed by
setting MSIM_MODELSIM_INI to the one you want to use, or set it to an
empty string to use the one in the ModelSim installation folder.
Diffstat (limited to 'fpga/usrp3/tools/scripts/launch_vlint.sh')
-rwxr-xr-x | fpga/usrp3/tools/scripts/launch_vlint.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/fpga/usrp3/tools/scripts/launch_vlint.sh b/fpga/usrp3/tools/scripts/launch_vlint.sh index 0f6ccc895..43d64c786 100755 --- a/fpga/usrp3/tools/scripts/launch_vlint.sh +++ b/fpga/usrp3/tools/scripts/launch_vlint.sh @@ -58,10 +58,17 @@ function replace_dirs_with_source { WORKING_DIR=$(pwd) +# Use specified modelsim.ini, if set +if [[ -z $VLINT_MODELSIM_INI ]]; then + MODELSIMINI_ARG="" +else + MODELSIMINI_ARG="-modelsimini $VLINT_MODELSIM_INI" +fi + # Define arguments to pass to the compile -SVLOG_ARGS="$VLINT_SVLOG_ARGS -quiet +define+WORKING_DIR=$WORKING_DIR" -VLOG_ARGS="$VLINT_VLOG_ARGS -quiet +define+WORKING_DIR=$WORKING_DIR" -VHDL_ARGS="$VLINT_VHDL_ARGS -quiet" +SVLOG_ARGS="$VLINT_SVLOG_ARGS $MODELSIMINI_ARG -quiet +define+WORKING_DIR=$WORKING_DIR" +VLOG_ARGS="$VLINT_VLOG_ARGS $MODELSIMINI_ARG -quiet +define+WORKING_DIR=$WORKING_DIR" +VHDL_ARGS="$VLINT_VHDL_ARGS $MODELSIMINI_ARG -quiet" # Define files in which to store all the compiler arguments SV_ARGS_FILE=svlogarglist.txt |