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 <stefan.raus@analog.com>
main
stefan.raus 2022-09-23 12:24:42 +01:00 committed by SRaus
parent 8960652c5a
commit 19c76d1d4f
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ case "$SIMULATOR" in
xsim) xsim)
# XSim flow # XSim flow
xvlog -log ${NAME}_xvlog.log --sourcelibdir . ${SOURCE} xvlog -log ${NAME}_xvlog.log --sourcelibdir . ${SOURCE} || exit 1
xelab -log ${NAME}_xelab.log -debug all ${NAME} xelab -log ${NAME}_xelab.log -debug all ${NAME} || exit 1
if [[ "$MODE" == "-gui" ]]; then if [[ "$MODE" == "-gui" ]]; then
echo "log_wave -r *" > xsim_gui_cmd.tcl echo "log_wave -r *" > xsim_gui_cmd.tcl
echo "run all" >> xsim_gui_cmd.tcl echo "run all" >> xsim_gui_cmd.tcl