23 set tcl_path [
file normalize "[
file dirname [
info script]]/.."]
24 if {[
info procs Msg] == "" } {
25 source $tcl_path/hog.tcl
28 set stage [
lindex $quartus(args) 0]
30 if { [
string compare $stage "quartus_map"] == 0 || [
string compare $stage "quartus_syn"] == 0 } {
31 set script_path [
file normalize "$tcl_path/integrated/post-synthesis.tcl"]
32 }
elseif { [
string compare $stage "quartus_fit"] == 0 } {
33 set script_path [
file normalize "$tcl_path/integrated/post-implementation.tcl"]
34 }
elseif { [
string compare $stage "quartus_asm"] == 0 } {
35 set script_path [
file normalize "$tcl_path/integrated/post-bitstream.tcl"]
37 Msg Info "Unsupported step: $stage"
41 if {[
file exists $script_path]} {