Forum Discussion

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

TCL Window to read compile parameters

Is there a way to launch a window to read a few parameters when we hit the compile button in Quartus GUI? I have a pre_flow tcl script that is executed to create a revision for the compile. Now I need to provide some additional parameters to the build. I am hoping I can reuse the same pre_flow script to provide this feature. I am envisioning providing a pop-up where the engineer inputs the value hits return and then the compilation process continues. It doesn't have to be a pop-up as long as there is way for users to enter the data.

Want to prevent any excuses to forgetting to rev up the revision before a compile.

Thank you.

Best regards,

Sanjay

5 Replies

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

    Did you want a pop-up, or do you just want a procedure that someone needs to follow?

    A while back I posted some Tcl/Tk GUI tests that would work in the Quartus GUI ...

    http://www.alteraforum.com/forum/showthread.php?t=27920

    But you can also just add a parameter to the design via Assignments->Settings, Analysis & Synthesis Settings, Default Parameters, and then edit that. The pre-flow script can read that parameter as part of the synthesis flow.

    The DSP examples in this tutorial

    http://www.ovro.caltech.edu/~dwh/correlator/pdf/esc-104paper_hawkins.pdf

    http://www.ovro.caltech.edu/~dwh/correlator/pdf/esc-104code_hawkins.zip

    use that method, i.e., you change the EXAMPLE parameter, and the pre-flow script changes the design.

    Cheers,

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

    Thanks. Yes! I do want a pop-up. Without a pop-up, I can increment the rev with a text file just before the compile. But technically, a hard brake in the processing before incrementing the revision avoids situations where one can forget to roll up the rev during the frenzy of debug. This is extremely valuable in a team where compiles occur often during a day.

    Thank you.

    Best regards,

    Sanjay

    --- Quote Start ---

    Did you want a pop-up, or do you just want a procedure that someone needs to follow?

    A while back I posted some Tcl/Tk GUI tests that would work in the Quartus GUI ...

    http://www.alteraforum.com/forum/showthread.php?t=27920

    But you can also just add a parameter to the design via Assignments->Settings, Analysis & Synthesis Settings, Default Parameters, and then edit that. The pre-flow script can read that parameter as part of the synthesis flow.

    The DSP examples in this tutorial

    http://www.ovro.caltech.edu/~dwh/correlator/pdf/esc-104paper_hawkins.pdf

    http://www.ovro.caltech.edu/~dwh/correlator/pdf/esc-104code_hawkins.zip

    use that method, i.e., you change the EXAMPLE parameter, and the pre-flow script changes the design.

    Cheers,

    Dave

    --- Quote End ---

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

    --- Quote Start ---

    Yes! I do want a pop-up.

    --- Quote End ---

    Then try the Tcl/Tk examples I linked to. They worked fine the last time I tried them. If for some reason they do not work from the Quartus 14.0 GUI, let me know, and I'll take a look at them.

    Cheers,

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

    Dave,

    This is brilliant. Thank you! entrybox_ex.tcl is a great example.

    Happy Friday!

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

    Hi Sanjay,

    --- Quote Start ---

    This is brilliant. Thank you! entrybox_ex.tcl is a great example.

    --- Quote End ---

    Great! I'm glad to hear the examples helped.

    Cheers,

    Dave