Altera Quartus II Scripting Manual de usuario Pagina 128

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 634
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 127
2–102 Chapter 2: Command-line Executables
Tcl Options
Quartus II Scripting Reference Manual © July 2013 Altera Corporation
Tcl Options
Command-line executables that support Tcl support the following options:
Option Page
-s ............................................................................................................................................................. 2–102
-t=<script file> ...................................................................................................................................... 2–102
--script=<script file> ............................................................................................................................ 2–102
--shell...................................................................................................................................................... 2–102
--tcl_eval=<tcl command>.................................................................................................................. 2–103
Command-line executables that support Tcl include help on the following topics:
Help Topic Page
Tcl ........................................................................................................................................................... 2–103
-s
Refer to the help for --shell on page 2–102
-t=<script file>
Refer to the help for --script=<script file> on page 2–102
--script=<script file>
Option to load and execute the specified Tcl script.
Any remaining arguments are not interpreted as arguments to the executable, but passed to the Tcl script
as an argument, set in the global variable quartus(args).
The following example shows how to access the arguments from a Tcl script:
args.tcl:
proc show_arguments {} {
global quartus
foreach argument $quartus(args) {
puts "-> $argument"
}
}
show_arguments
% quartus_sh -t args.tcl a b c
% -> a
% -> b
% -> c
Note that this option does not allow other arguments to be specified before it.
--shell
Option to start the executable in shell mode, an interactive Tcl interpreter.
Additional arguments are not allowed before or after this option.
Vista de pagina 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 633 634

Comentarios a estos manuales

Sin comentarios