Forum Discussion

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

How to get quartus_sta to return and error code if timing not met

I have not been able to find this on the forums or with google.

I use a makefile to run quartus. My problem is that I can generate timing reports with quartus_sta, but I would like quartus_sta to return an error code (non-zero) if timing constraints were not met. Right now there is no notification of a failed design, ie quartus_sta always returns 0.

I would prefer to not have to generate a project.sta.rpt and then grep for failures.

1 Reply

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

    Great question! I want to get this information as well.

    Unfortunately, my Makefile builds the project using:

    $(QUARTUS_BIN)/quartus_sh --tcl_eval load_package flow \; project_open $* \; execute_flow -compile

    ... which is needed to get preflow scripts to run properly. So I guess getting the build status will be even harder for me.