Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

TCL Window to read compile parameters

Altera_Forum
Honored Contributor II
2,096 Views

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
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
1,118 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
1,118 Views

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 ---  

0 Kudos
Altera_Forum
Honored Contributor II
1,118 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
1,118 Views

Dave, 

 

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

 

Happy Friday! 

Sanjay
0 Kudos
Altera_Forum
Honored Contributor II
1,118 Views

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
0 Kudos
Reply