fpga: tools: Change -onfinish to final
This changes the -onfinish setting from "stop" to "final" for Questa and ModelSim. The "final" setting is required so that SystemVerilog final blocks run. This also has the same effect as "stop" in that it won't ask you in the GUI if you want to exit the simulator when $finish() is called. Original-commit: 7ab4e9a4e2c0408ca595ad168199a54bf416c894
This commit is contained in:
@@ -45,10 +45,10 @@ function print_color {
|
|||||||
|
|
||||||
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
||||||
|
|
||||||
# Setting -onfinish to "stop" prevents the simulator from immediately trying to
|
# Setting -onfinish to "final" ensures final blocks run and prevents the
|
||||||
# exit when finish() is called. This is annoying in the GUI and important for
|
# simulator from trying to exit immediately when $finish() is called, which is
|
||||||
# error detection in batch mode.
|
# not desirable in the GUI.
|
||||||
MSIM_DEFAULT="-quiet -L unisims_ver -onfinish stop"
|
MSIM_DEFAULT="-quiet -L unisims_ver -onfinish final"
|
||||||
|
|
||||||
# Use specified modelsim.ini, if set
|
# Use specified modelsim.ini, if set
|
||||||
if [[ -z $MSIM_MODELSIM_INI ]]; then
|
if [[ -z $MSIM_MODELSIM_INI ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user