Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Scripting and Options for quartus_sh

  1. #1
    Join Date
    Apr 2013
    Posts
    48
    Rep Power
    1

    Default Scripting and Options for quartus_sh

    Hi Everybody,

    I started using scripts for compiling and have the following problem:

    Using quartus_sh:
    How can I filter the information shown in MS-DOS? I only want to see Warnings, Errors and Critical Warnings. Maybe "Started Fitter" or such info would also be nice.

    quartus_sh --help was not helpful :-(

  2. #2
    Join Date
    Jun 2010
    Posts
    45
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    Perhaps you have already tried this but I would guess that the same techniques that one can use to suppress messages while in the Quartus development application would also work when using the shell commands. I have not tried that myself but would be interested to hear if this helps.

    See the ""Analyzing and Controlling Synthesis Messages" chapter in this part of the Quartus Handbook:
    http://www.altera.com/literature/hb/...s_qii51008.pdf

  3. #3
    Join Date
    Sep 2009
    Posts
    407
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    You can use quartus_sh command with option -s!

  4. #4
    Join Date
    Jun 2010
    Posts
    45
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    Jerry, I do not understand how the -s option can be used to control the large number of info messages that quartus displays in the MS-DOS window while a compilation script.

    I did check into my suggestion above and it seems to have no impact on the messages produced, so it may be disregarded.

    Seems like the best ways to check warnings and errors are either to open up the project in the quartus IDE and look at the compilation report or to have the tcl script parse the compilation report and sort out the non-suppressed messages of the desired levels. So far, I normally have the tcl script check the worst case slack and some other key parameters and then use the quartus GUI to scan for warnings.

  5. #5
    Join Date
    Sep 2009
    Posts
    407
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    Hi mvanpelt,

    You are right, you should write script to read the report from the rpt files after compilation. The -s options just can pause the ms-dos when the compilation is completed.

  6. #6
    Join Date
    Nov 2008
    Posts
    2,440
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    open Nios II Command Shell. run:

    quartus_sh --flow compile project.qpf | grep Warning

  7. #7
    Join Date
    Jun 2010
    Posts
    45
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    Good idea, thank you. As someone who does not (yet) use Nios, I was not even aware of the Nios shell.

    In my case, I use a Tcl script to do the build. Then your suggestion can be extended to:
    quartus_sh -t build.tcl | grep Warning

  8. #8
    Join Date
    Nov 2008
    Posts
    2,440
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    cool! cygwin is a big help on Windows. if you find yourself doing a lot of scripting, i would recommend trying a Linux VM

  9. #9
    Join Date
    Sep 2009
    Posts
    407
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    Quote Originally Posted by mvanpelt View Post
    Good idea, thank you. As someone who does not (yet) use Nios, I was not even aware of the Nios shell.

    In my case, I use a Tcl script to do the build. Then your suggestion can be extended to:
    quartus_sh -t build.tcl | grep Warning
    Can you use this command under bach? For i can run "quartus_sh -t build.tcl", but can't run "quartus_sh -t build.tcl | grep Warning". Or is greq isn't of MS-DOS command?
    Last edited by Jerry; October 10th, 2013 at 06:33 PM.

  10. #10
    Join Date
    Sep 2009
    Posts
    407
    Rep Power
    1

    Default Re: Scripting and Options for quartus_sh

    yeal, i search "grep" words and found that it is Linux command.

    I'm using window OS, however, i used scripts often when design QII projects. For this case, maybe, we can use below tcl code to extract warning information from rpt files:

    Code:
    set a "*Warning (*"set f [open "sfifo_test.map.rpt" r]
    while { [gets $f line ] >=0} { 
           if {[string match $a $line]} { 
              puts stdout $line 
              puts stdout " Warnings!!!"
              } else {
              ##puts stdout "NO Warnings!!!"
              }
          } 
    close $f
    Last edited by Jerry; October 10th, 2013 at 07:55 PM.

Similar Threads

  1. Quartus II 10.0 install on Ubuntu 12.10 failing during quartus_sh
    By mikezgrtf in forum Quartus II and EDA Tools Discussion
    Replies: 1
    Last Post: April 10th, 2013, 07:36 PM
  2. How to invoke the executable quartus_cpf from within(?) quartus_sh
    By mowomo in forum Quartus II and EDA Tools Discussion
    Replies: 2
    Last Post: January 24th, 2013, 08:51 AM
  3. TCL Scripting
    By jasonkee111 in forum General Altera Discussion
    Replies: 2
    Last Post: July 3rd, 2012, 04:18 PM
  4. quartus_sh and $PATH
    By vertreko in forum Quartus II and EDA Tools Discussion
    Replies: 0
    Last Post: October 16th, 2011, 11:49 AM
  5. QSF scripting
    By rosinkrans in forum Quartus II and EDA Tools Discussion
    Replies: 5
    Last Post: March 7th, 2011, 01:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •