Forum Discussion
DZuck1
Occasional Contributor
7 years agoFind Quartus Project Directory Path via TCL
Hi, I am trying to use a TCL script to grab the project's SVN repo revision and place it into a register in my Quartus project. Using the example posted on the Intel website I was able to pull the S...
JoanneSinY_L_Intel
Occasional Contributor
7 years agoHi
Can you try to run without specify any project qsf path?
set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:svn_revision.tcl
Thanks
Joanne
DZuck1
Occasional Contributor
7 years agoHi Joanne,
I was able to find the script file directory’s path by using the following function:
proc getScriptDirectory {} {
set dispScriptFile [file normalize [info script]]
set scriptFolder [file dirname $dispScriptFile]
return $scriptFolder
}
Thanks,
DZuck1