- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
Including the following line in my QSF-File calls the TCL-Script before compilation to generate a timestamp form y FPGA.set_global_assignment -name pre_flow_script_file "quartus_sh:compile_timestamp_make.tcl" In addition to timestamp generation I have further things to do prior to compilation. I want to extract the revision number from subversion. Thus I wrote another TCL to do this and added another line to the QSF-File: set_global_assignment -name pre_flow_script_file "quartus_sh:compile_timestamp_make.tcl"
set_global_assignment -name pre_flow_script_file "quartus_sh:compile_svn_revision_make.tcl" Unfortunately this does not work. It seems to me that QuartusII can only handle one single TCL File with „PRE_FLOW_SCRIPT_FILE“ Is this correct or is there a way to handle multiple TCLs with „PRE_FLOW_SCRIPT_FILE“? Thanks a lot for any help mschultheis
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You could put all your code in one file or make a general preprocessing TCL file that calls other TCL files, e.g.: QSF:set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:preprocessing.tcl"
Contents of preprocessing.tcl: source compile_timestamp_make.tcl
source compile_svn_revision_make.tcl
The "source" keyword is a TCL command that evaluates another file as TCL code. See the tcl documentation (http://www.tcl.tk/man/tcl8.5/tclcmd/source.htm). Hope this helps! JBC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
yes this helps. It is an acceptable workaround. Thanks MSCHULTHEIS
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page