Forum Discussion

MBisi3's avatar
MBisi3
Icon for New Contributor rankNew Contributor
6 years ago

Passing tcl script variables to qsf file

I am looking to execute a tcl script at the beginning of the flow using

set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:first.tcl"

in this script I create a variable that should be evaluated inside qsf; I would like to be able to write, in qsf, a line such as:

set_parameter -name MYVARIABLE = $tclscriptcreatedvariable

unfortunately this syntax throw an error while starting compile and also removing "=" the same.

How can I obtain this result without rewriting qsf file from tcl ? Is it possible to have qsf file to include an external file setting some parameters ?

Thank you for your support

Marco Bisio

9 Replies