library/common: Enable automatic logging of simulation output

main
Ionut Podgoreanu 2022-08-02 11:01:40 +01:00 committed by Laszlo Nagy
parent 79579f65df
commit 214cf5896e
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ case "$SIMULATOR" in
xvlog -log ${NAME}_xvlog.log --sourcelibdir . ${SOURCE}
xelab -log ${NAME}_xelab.log -debug all ${NAME}
if [[ "$MODE" == "-gui" ]]; then
echo "run all" > xsim_gui_cmd.tcl
echo "log_wave -r *" > xsim_gui_cmd.tcl
echo "run all" >> xsim_gui_cmd.tcl
xsim work.${NAME} -gui -tclbatch xsim_gui_cmd.tcl -log ${NAME}_xsim.log
else
xsim work.${NAME} -R -log ${NAME}_xsim.log