aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/tools/scripts/setupenv_base.sh
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2021-06-09 13:29:10 -0500
committerWade Fife <wade.fife@ettus.com>2021-06-17 08:16:59 -0500
commit08473776b28a949027ec8cf2596d8d1b438b979b (patch)
tree7ee23b58eefcabf20ee88d49318f4cf61d03de4b /fpga/usrp3/tools/scripts/setupenv_base.sh
parent5a4f0470919440819ab71f44fbc6f5f89a671e41 (diff)
downloaduhd-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/setupenv_base.sh')
-rw-r--r--fpga/usrp3/tools/scripts/setupenv_base.sh19
1 files changed, 17 insertions, 2 deletions
diff --git a/fpga/usrp3/tools/scripts/setupenv_base.sh b/fpga/usrp3/tools/scripts/setupenv_base.sh
index cb0c546e5..95a05d6f6 100644
--- a/fpga/usrp3/tools/scripts/setupenv_base.sh
+++ b/fpga/usrp3/tools/scripts/setupenv_base.sh
@@ -243,15 +243,30 @@ if [[ $VSIM_PATH ]]; then
case $MODELSIM_VER in
DE-64|SE-64)
export MODELSIM_64BIT=1
- export SIM_COMPLIBDIR=$VIVADO_PATH/modelsim64
+ if [[ -z $MSIM_VIV_COMPLIBDIR ]]; then
+ export SIM_COMPLIBDIR=$VIVADO_PATH/modelsim64
+ else
+ export SIM_COMPLIBDIR=$MSIM_VIV_COMPLIBDIR
+ fi
;;
DE|SE|PE)
export MODELSIM_64BIT=0
- export SIM_COMPLIBDIR=$VIVADO_PATH/modelsim32
+ if [[ -z $MSIM_VIV_COMPLIBDIR ]]; then
+ export SIM_COMPLIBDIR=$VIVADO_PATH/modelsim32
+ else
+ export SIM_COMPLIBDIR=$MSIM_VIV_COMPLIBDIR
+ fi
;;
*)
;;
esac
+ # If MSIM_MODELSIM_INI is not defined, use the modelsim.ini in the compiled
+ # libraries directory. Otherwise use the one defined by MSIM_MODELSIM_INI.
+ # Set MSIM_MODELSIM_INI to an empty string to use the modelsim.ini in the
+ # ModelSim installation folder.
+ if [[ ! -v MSIM_MODELSIM_INI ]]; then
+ export MODELSIM_INI=$SIM_COMPLIBDIR/modelsim.ini
+ fi
fi
function build_simlibs {