diff options
Diffstat (limited to 'fpga/usrp3/tools/scripts/launch_modelsim.sh')
-rwxr-xr-x | fpga/usrp3/tools/scripts/launch_modelsim.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fpga/usrp3/tools/scripts/launch_modelsim.sh b/fpga/usrp3/tools/scripts/launch_modelsim.sh index a0aa3d74e..8fc7309a0 100755 --- a/fpga/usrp3/tools/scripts/launch_modelsim.sh +++ b/fpga/usrp3/tools/scripts/launch_modelsim.sh @@ -57,13 +57,17 @@ do done if [ $MSIM_MODE == "gui" ]; then + echo "* Launching ModelSim" vsim $MSIM_DEFAULT $MSIM_ARGS $MSIM_LIB_ARGS $MSIM_SIM_TOP 2>&1 | while IFS= read -r line; do print_color $line done - if [ ${PIPESTATUS[0]} -ne 0 ]; then exit ${PIPESTATUS[0]}; fi + exit_status=${PIPESTATUS[0]} + if [ ${exit_status} -ne 0 ]; then exit ${exit_status}; fi elif [ $MSIM_MODE == "batch" ]; then + echo "* Launching ModelSim" vsim -batch -do "run -all; quit -f" $MSIM_DEFAULT $MSIM_ARGS $MSIM_LIB_ARGS $MSIM_SIM_TOP 2>&1 | while IFS= read -r line; do print_color $line done - if [ ${PIPESTATUS[0]} -ne 0 ]; then exit ${PIPESTATUS[0]}; fi + exit_status=${PIPESTATUS[0]} + if [ ${exit_status} -ne 0 ]; then exit ${exit_status}; fi fi |