You can run Tcl scripts from your Windows or Unix command line as well as pass arguments to scripts from the command line.
To execute a Tcl script file in the Designer software from a shell command line:
At the prompt, type the path to the Actel software followed by the word "SCRIPT" and a colon, and then the name of the script file as follows:
<location of Actel software>/bin/designer SCRIPT:<filename>
where
<location of Actel software> is
the root directory in which you installed the Actel software, and
<filename>
is the name, including
a relative or full path, of the Tcl script file to execute.
For example, to run the Tcl script file named "myscript.tcl"
from the command line, you can type:
C:\libero\designer\bin\designer.exe SCRIPT:myscript.tcl
If myscript.tcl is in a particular folder named ”my design,” you can use SCRIPT_DIR to change the current working directory before calling the script, as in the following example:
C:\libero\designer\bin\designer.exe SCRIPT:myscript.tcl "SCRIPT_DIR:C:\actelprj\mydesign"
To pass arguments from the command line to your Tcl script file:
At the prompt, type the path to the Actel followed by the SCRIPT argument. Enclose the entire argument expression in double quotes:
<location of Actel software>/bin/designer "SCRIPT:<scriptfilename arg1 arg2 ...>"
where <location of Actel software> is the root directory in which you installed the Actel software, and <scriptfilename arg1 arg2 ...> is the name, including a relative or full path, of the Tcl script file and arguments you are passing to the script file.
For example,
C:\libero\designer\bin\designer.exe SCRIPT:myscript.tcl one two three"