Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHi davide.camerano,
Command line arguments are stored in the list named 'argv'. You can get the first argument with "lindex $argv 0" and the second argument with "lindex $argv 1". For example, assume that hoge.tcl contains the following: puts "1st argument is [lindex $argv 0]" If you execute the script as "quartus_sh -t hoge.tcl xxx", you will get the following output: 1st argument is xxx Also you can use the cmdline package to specify command line arguments like -<option> <value> . For more information on the package, please refer to the page 3-37 in the following document. http://www.altera.com/literature/hb/qts/qts_qii52003.pdf