Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
1,113 Views

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

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
Highlighted
Valued Contributor III
37 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