Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- To run a script during before compilation, you have to add it to your .qsf like so: set_global_assignment -name PRE_FLOW_SCRIPT_FILE quartus_sh:assign_pin.tcl Note that when the script runs, it does not act like Quartus is open. So you need to open and close the project. For example, if I had a project named gocubs and I wanted to create a pre-flow script called assign_pin.tcl that made a pin assignment, it would look like: project_open gocubs set_location_assignment PIN_M4 -to blaa project_close The big benefit is that it's true Tcl interpreter(unlike the .qsf reader) so you can script about whatever you want. --- Quote End --- Thanks! I have already this line in my .qsf: set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:version_and_time.tcl". Do I have to add those lines to my .qsf? project_open <project_name> set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:version_and_time.tcl" project_close