Altera_Forum
Honored Contributor
16 years agoquartus II tcl script problems
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 Thanks