- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am new to tcl scripting in Quartus II. My task is to compile a project using a tcl script and then use another tcl script to change the directory and again compile a project using a tcl script in the new directory. To compile the project the script is : set project_name fulladder_new project_new -overwrite $project_name# project_open fulladder source fulladder.qsf load_package flow execute_flow -compile project_close To change the directory the script is: set dirname D:/tcl_test set sysdir $dirname cd $dirname I am using a main tcl script to source these two scripts. source compile_script.tcl source change_dir_script.tcl However at the end of running the main script as quartus_sh -t main.tcl The directory doesnt change. However if I run individual scripts, both of them work. Can anyone suggest any way to fix this problem ThanksLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would suggest using a single script with relative paths to both directories where your projects reside.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply.
But the project requirements is such that I need individual scripts for all the sub-tasks. That is why I need to have the structure that I have declared.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok. I suppose the problem is that the path changes in change_dir_script, but remains the old one when returning to the top script. I would suggest one of the following:
1. Change the dir in the top script source compile_script.tcl set dirname D:/tcl_test set sysdir $dirname cd $dirname source compile_script.tcl 2. Use relative paths in the compile scripts, referring to the initial dir where the top script is invoked.
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