Hi Martin,
--- Quote Start ---
Thanks a lot for the examples! Are these TCL scripts handwritten or are you using some shortcuts to create these files?
--- Quote End ---
They're handwritten. However, the versions I use are less verbose.
Tcl allows you to put scripts in a common location that is specified by the TCLLIBPATH path environment variable. You can put the re-useable Tcl procedures in scripts there. I use environment variables to describe where I want everything. Since I don't want to have to make people setup their environment before they can use my scripts, I dumbed them down first :)
I also have Quartus and Modelsim output their build results into a version specific folder, eg., in the c:/build directory, I have
c:/build/quartus/v9.0_sp2_full
c:/build/quartus/v10.1_full
c:/build/quartus/v11.1_sp2_full
c:/build/modelsim/v6.5b_se
c:/build/modelsim/v6.6c_ase
c:/build/modelsim/v6.6d_ase
c:/build/modelsim/v10.0c_ase
i.e., I have Quartus and its corresponding Modelsim-ASE, and I have a full-edition of Modelsim-SE. This allows me to build the same project with multiple versions of Quartus+Modelsim while keeping the build results.
I use CVS for source control.
Cheers,
Dave