Forum Discussion
Altera_Forum
Honored Contributor
11 years agoDave,
Thanks for the expanded answer. However I get an error saying that save_script.tcl does not exist when I run the command. I created my own script that uses the export_hw_tcl command to write the hw.tcl file though. I can attach that here. I would like the script to write the hw.tcl file to the current directory rather than the directory where it read the qsys file from. My script copies the qsys file to the current directory and then loads it. When I run export_hw_tcl though I get an info message saying "No save path defined. Defaulting to working directory." Do you know how I can set the save path and thus avoid copying the file and then removing the copy at the end? And if so, please tell me. Here is my script: package require -exact qsys 14.0 file copy -force $system . load_system [ file tail $system ] set system_name [ file tail [ file root $system ] ] export_hw_tcl file delete -force [ file tail $system ] ] I use a --cmd argument to set the $system variable to point to my qsys file. It doesn't look like qsys-script supports the same command line processing functions as quarts_sh. Thanks, -Pete