Execute_hc, Usage, Options – Altera Quartus II Scripting User Manual
Page 231: Description, Example, Execute_hc –101

Chapter 3: Tcl Packages & Commands
3–101
flow
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
execute_hc
Usage
execute_hc [-archive
[-handoff_report] [-hc_ready] [-min_archive]
Options
-archive
name
-compare: Option to run HardCopy Companion Revision Comparison
-create_companion
revision
-handoff_report: Option to run HardCopy Handoff Report
-hc_ready: Option to generate HardCopy Design Readiness Check report
-min_archive: Option to exclude design files when archiving HardCopy Handoff Files
Description
Runs one of the predefined HardCopy flows.
All created or modified Quartus II Settings File (.qsf) assignments are automatically exported before
running the predefined flow, as if you called the "export_assignments" command beforehand.
You must use the Tcl command "catch" to determine whether the predefined flow ran successfully or not,
as in the following example:
if {[catch {execute_hc -compare} result]} {
post_message "Result: $result"
post_message -type error "HardCopy Companion Revision Comparison failed. See report
files."
} else {
post_message "HardCopy Companion Revision Comparison was successful."
}
Example
# Load the ::quartus::flow Tcl package
load_package flow
# Open the FPGA revision named "my_fpga"
project_open my_design -revision my_fpga
# Compile the FPGA "my_fpga" revision
execute_flow -compile
# Create a HardCopy companion revision named "my_hcii"
execute_hc -create_companion my_hcii
# Set "my_hcii" as the current revision before compiling it
set_current_revision my_hcii
# Compile the HardCopy "my_hcii" revision
execute_flow -compile
# Compare the two HardCopy companion revisions
execute_hc -compare
# Generate HardCopy Design Readiness Check report
execute_hc -hc_ready