Critical Issue
If you run an external, custom Tcl script that calls qexit
[-return_code]
with any Quartus® Prime
executable (for example, quartus_sh
) that supports the -t
or --tcl_eval
option and then examines the return code, the Quartus
Prime software will exit with a return code of 0 regardless of the argument to
qexit
.
This issue affects the Quartus Prime Standard Edition software and the Quartus Prime Pro Edition software.
The following workarounds are available:
- Instead of the
qexit [-return_code]
command, use the nativeexit [-return_code]
Tcl command in your script. Theexit
command supports integer return codes from 0 to 127. - Because this issue does not affect the Quartus Prime interactive shell mode
that you can enter with the
-s
option, you can source Tcl scripts that callqexit [-return_code]
in the Quartus Prime interactive shell with thesource <script_name>
option. Sourcing Tcl scripts in the interactive shell allows the Quartus Prime software to exit with the specified return code. If you want to run the Quartus Prime software with a non-interactive external script, you can feed thesource <script_name>
command to the Quartus Prime interactive shell by redirecting to the Quartus Prime software\'s standard input.