Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
15538 Discussions

[QSF] how to use variables + how to include another script?

Honored Contributor II

Hi All, 


1) How can I use the local/environment variables inside of the QSF file? 


Howsome the regular TCL variable assignment does not work for me: 

%> set a "AAA"; 


2) How to use the source_tcl_script_file in the following command? How should it work? 

%> set_global_assignment -name source_tcl_script_file "<path>/vars.tcl" 


3) inside of the QSF I've put the following line:  

source <path>/<filename.tcl>  


The <path> is an absolute path to the file and the file is physically exists in its location, but Quartus Prime issues an error message that it cannot find the file.... Why? How to fix?  


Thank you!
0 Kudos
1 Reply
Honored Contributor II

Tcl commands don't have ; at the end. 


I haven't heard of source_tcl_script file. Just do "source <name of file>". 


Try using a relative path to the project directory (where the .qpf and .qsf files are).