Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16557 Discussions

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

Altera_Forum
Honored Contributor II
1,677 Views

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
Altera_Forum
Honored Contributor II
601 Views

Tcl commands don't have ; at the end. 

 

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

 

http://tmml.sourceforge.net/doc/tcl/source.html 

 

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