Tcl Scripts Terminated by qexit Exits the Quartus Prime Software with a Return Code of 0 Regardless of the Argument to the Tcl qexit Call - Tcl Scripts Terminated by qexit Exits the Quartus Prime Software with a Return Code of 0 Regardless of the Argument to the Tcl qexit Call Description 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. Resolution The following workarounds are available: Instead of the qexit [-return_code] command, use the native exit [-return_code] Tcl command in your script. The exit 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 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. Custom Fields values: ['novalue'] Troubleshooting novalue True ['novalue'] ['FPGA Dev Tools Quartus® Prime Software Pro', 'FPGA Dev Tools Quartus® Prime Software Standard'] 16.0.1 16.0 ['Programmable Logic Devices'] ['novalue'] ['novalue'] ['novalue'] - 2021-08-25

external_document