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
parent
8960652c5a
commit
19c76d1d4f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue