Tcl_eval=<tcl command, Tcl_eval=<tcl command> –103 tcl –103, Tcl_eval=<tcl command> –103 – Altera Quartus II Scripting User Manual

Page 129: Tcl –103

Advertising
background image

Chapter 2: Command-line Executables

2–103

Tcl Options

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

--tcl_eval=<tcl command>

Option to evaluate the remaining command-line arguments as a Tcl command, posting the results to
stdout.

Any remaining arguments are not interpreted as an argument to the application, but treated as part of the
Tcl command itself.

This option does not allow other arguments to be specified before it.

In Linux, use a backslash '\' plus a semi-colon ';' to separate Tcl commands instead of using only a
semi-colon ';'. Example:

% quartus_sh --tcl_eval puts "Hello"\; puts "World"

% Hello
% World

In Windows platforms, using a semi-colon will suffice. Example:

% quartus_sh --tcl_eval puts "Hello"; puts "World"

% Hello
% World

Tcl

The Quartus II software offers three Tcl modes of operation: script, shell, and quick-eval.

Script Mode: The "-t <script file> | --script=<script file>" option evaluates a Tcl script.

See "--help=script" for more information.

Shell Mode: The "-s | --shell" option starts an interactive Tcl interpreter.

See "--help=shell" for more information.

Quick-Eval Mode: * The "--tcl_eval" option evaluates the remaining command line as Tcl commands.

See "--help=tcl_eval" for more information.

Other command-line options are not available with these Tcl modes.

Advertising