If you run an external, custom Tcl script that calls
[-return_code] with any Quartus® Prime
executable (for example,
quartus_sh) that supports the
--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
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 native
exit [-return_code]Tcl command in your script. The
exitcommand 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
-soption, you can source Tcl scripts that call
qexit [-return_code]in the Quartus Prime interactive shell with the
source <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 the
source <script_name>command to the Quartus Prime interactive shell by redirecting to the Quartus Prime software\'s standard input.