Forum Discussion
Altera_Forum
Honored Contributor
18 years agosetting/using variables within a QSF
I'd like to be able to set text (and potentially numerical values) to variables that can be recalled throughout the QSF. QSF files are supposed to be interpretted as TCL files, but they don't support...
Altera_Forum
Honored Contributor
10 years agoI have not been able to use the tcl syntax you mention in the qsf, but a possible workaround is to put your qsf assignments in a tcl file where you can use more of the standard syntax of tcl. Then add the following global assignment in the qsf
set_global_assignment -name SOURCE_TCL_SCRIPT_FILE <filename_here>.tcl Then in the file <filename_here>.tcl add the lines... set VAR_NAME VAR_VALUE set_instance_assignment -name MISC_CONSTRAINT ON -to $VAR_NAME I, admittedly have never used set_instance_assignment in this separate tcl file, but I have used set_parameter -name PARAM_NAME $VAR_NAME and that worked.