Forum Discussion
Altera_Forum
Honored Contributor
17 years agoRunning a batch file before compiling
In my VHDL application I have some registers which are readable via SPI by a CPU. I would like to have one of the registers report the current source code revision. I am using Subversion ...
Altera_Forum
Honored Contributor
17 years agoA batch file is probably easiest, since it's just the two lines mentioned by thepancake. Note that you can have Quartus reun a pre-flow .tcl script. Look at:
http://www.altera.com/support/examples/tcl/tcl-version-number.html?gsa_pos=2&wt.oss_r=1&wt.oss=timestamp THe key is adding the following line to your .qsf: set_global_assignment -name PRE_FLOW_SCRIPT_FILE quartus_sh:<script name> That way you can use the GUI for compiles and it will still work. Of course, you then need to figure out how to get your .tcl file to run the executable, which I'm not sure how to do(and why the first method is easier...)