Execute_module, Usage, Options – Altera Quartus II Scripting User Manual
Page 233: Description, Example, Execute_module –103
Chapter 3: Tcl Packages & Commands
3–103
flow
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
execute_module
Usage
execute_module [-args <arguments>] [-dont_export_assignments] [-tool
<asm|cdb|drc|eda|fit|map|pow|sta|sim|tan|si|cpf>]
Options
-args <arguments>: Option to specify arguments for the executable
-dont_export_assignments: Option not to export assignments to file. By default, this
command exports assignments before running command-line executables.
-tool <asm|cdb|drc|eda|fit|map|pow|sta|sim|tan|si|cpf>: Option to run the specified
executable
Description
Runs one of the command-line executables, such as quartus_map or quartus_fit. If the -args option is
specified, the arguments are passed to the command-line executable.
All assignments are exported automatically first, as if the "export_assignments" command was called first,
unless -dont_export_assignments option is specified.
You must use the Tcl command "catch" to determine whether the command-line executable ran
successfully or not, as in the following example:
if {[catch {execute_module -tool map} result]} {
puts "\nResult: $result\n"
puts "ERROR: Analysis & Synthesis failed. See the report file.\n"
} else {
puts "\nINFO: Analysis & Synthesis was successful.\n"
}
Example
# Run quartus_map using device family Stratix and device part
# EP1S10B672C6.
execute_module -tool map -args "--family=Stratix --part=EP1S10B672C6"
# Compile using a set of executables
execute_module -tool map
execute_module -tool fit
execute_module -tool tan
execute_module -tool asm
execute_module -tool eda
# To determine if Analysis & Synthesis was successful or not
# and print out a personalized message.
if {[catch {execute_module -tool map} result]} {
puts "\nResult: $result\n"
puts "ERROR: Analysis & Synthesis failed. See the report file.\n"
} else {
puts "\nINFO: Analysis & Synthesis was successful.\n"
}