Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Handling Quartus executable return codes

First post...

I'm very new to Quartus and the FPGA world so be gentle.

I've written a script to perform each step of the build step by step using the executables...

quartus_map -blabla

quartus_fit -blabla

quartus_asm -blabla

quartus_sta -t atclscript.tcl

What I need to put between the executables is a touch of code to look at the return codes and exit the rest of the script if necessary.

Any suggestions gretfully received.

Witty.

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The principle is it is hard to get return codes from the command-line-executable commands, but it is easy to get return codes from the Quartus-extented-Tcl commands.

    So handle the return codes in the Tcl domain, like conditional jumpings and writing to a report file.

    If you are working under Windows, Use Tcl, do Not use the command line.

    If you are working under Linux, both will do.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    The principle is it is hard to get return codes from the command-line-executable commands, but it is easy to get return codes from the Quartus-extented-Tcl commands.

    So handle the return codes in the Tcl domain, like conditional jumpings and writing to a report file.

    If you are working under Windows, Use Tcl, do Not use the command line.

    If you are working under Linux, both will do.

    --- Quote End ---

    Riple,

    After a lot of messing I've now gone fully over to quartus_sh using tcl scripts as you advise and wish I'd started that method when I first started with Quartus. Cheers.