From 19c76d1d4f6b0f87c0472d52f9ba743cde145ec0 Mon Sep 17 00:00:00 2001 From: "stefan.raus" Date: Fri, 23 Sep 2022 12:24:42 +0100 Subject: [PATCH] run_tb.sh:don't run xsim if previous commands fail If 'xvlog' or 'xelab' xilinx commands are failing, exit from run_tb.sh script without trying to run simulation. Signed-off-by: stefan.raus --- library/common/tb/run_tb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/common/tb/run_tb.sh b/library/common/tb/run_tb.sh index c56359a3f..973fe5393 100644 --- a/library/common/tb/run_tb.sh +++ b/library/common/tb/run_tb.sh @@ -14,8 +14,8 @@ case "$SIMULATOR" in xsim) # XSim flow - xvlog -log ${NAME}_xvlog.log --sourcelibdir . ${SOURCE} - xelab -log ${NAME}_xelab.log -debug all ${NAME} + xvlog -log ${NAME}_xvlog.log --sourcelibdir . ${SOURCE} || exit 1 + xelab -log ${NAME}_xelab.log -debug all ${NAME} || exit 1 if [[ "$MODE" == "-gui" ]]; then echo "log_wave -r *" > xsim_gui_cmd.tcl echo "run all" >> xsim_gui_cmd.tcl