Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17254 Discussions

Using Quartus I TimeQuest Analyzer in command-line

Altera_Forum
Honored Contributor II
1,523 Views

Hi all. 

 

Is there a way to report top failing paths (or even better ALL failing paths) in a file using TimeQuest analyzer in command line? 

 

I would like to add this feature to our scripts. 

 

Thanks 

 

- Julien
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
745 Views

Unfortunately, there is no easy way to do this. You would have to write a Tcl script using the API and then run it with 'quartus_sta -t <script file> [<script args>]'. Use 'quartus_sh --qhelp' for assistance with the API and look under the sdc and sta sections.

0 Kudos
Altera_Forum
Honored Contributor II
745 Views

Note that you can have an Analysis script run during normal STA timing sign-off. Just add it under Assignments -> Settings -> TimeQuest. Just do something simple like: 

report_timing -setup -npaths 200 -detail path_only -file "TQ_200paths_setup.txt" 

report_timing -hold -npaths 200 -detail path_only -file "TQ_200paths_hold.txt" 

report_timing -recovery -npaths 200 -detail path_only -file "TQ_200paths_recovery.txt" 

report_timing -removal -npaths 200 -detail path_only -file "TQ_200paths_removal.txt" 

 

The thing is that this will only write out for the slow model. This is what most people want, but the hold and removal reports are generally pretty useless. You can do a more complex script that runs from a quartus_sta call: 

create_timing_netlist 

read_sdc 

update_timing_netlist 

report_timing -setup -npaths 200 -detail path_only -file "TQ_200paths_setup_slow.txt" 

set_operating_condition -fast_model ;# I'm not sure if this is correct 

report_timing -hold -npaths 200 -detail path_only -file "TQ_200paths_hold_fast.txt" 

 

Of course that needs to re-run TimeQuest multiple times. (There may be a way to do it from the other script, but not sure how.) 

This is all good for first pass stuff, but I find that only looking at text timing reports misses a lot of stuff. In some cases it's good enough, but I find "power users" who only like scripts and text reports are actually limiting what they can do. Just something to watch out for.
0 Kudos
Altera_Forum
Honored Contributor II
745 Views

that's great thanks!

0 Kudos
Reply