--- Quote Start ---
I tried to run the ferst example:
----------------------------------------------------------------------
set chan [open "TQ_all_clocks.rpt" "w"]
foreach_in_collection element [all_clocks] {
puts $chan [concat $element : [get_object_info -name $element]]
}
close $chan
----------------------------------------------------------------------
The 'all_clocks' command is not recognized (ran from the Tcl Console). I've got the following:
----------------------------------------------------------------------
Error:ERROR: Quartus Prime Tcl command "all_clocks" is only available for use in the following executables:
Error: quartus_fit
Error: quartus_sta
Error: while executing
Error:"all_clocks"
Error: invoked from within
Error:"foreach_in_collection element [all_clocks] { puts $chan [concat $element : [get_object_info -name $element]]}"
----------------------------------------------------------------------
So, what's the problem? How could be fixed?
Thank you!
--- Quote End ---
Ok, so here is my complete example. Previously I just posted snippets but they need to be run in the correct context.
I run this on the command line:
$(QUARTUS_BIN)/quartus_sta -t generate_timing.tcl $(DESIGN) 10
Where the contents of the file
generate_timing.tcl is as follows:
set projname
set numpaths
project_open $projname
create_timing_netlist
read_sdc
set_operating_conditions -model slow -grade c
update_timing_netlist
report_timing -setup -npaths $numpaths -detail path_only -file "TQ_setup_slow.rpt"
set_operating_conditions -model fast -grade c
update_timing_netlist
report_timing -hold -npaths $numpaths -detail path_only -file "TQ_hold_fast.rpt"
report_exceptions -file "TQ_exceptions.rpt"
set chan
foreach_in_collection reg {
puts $chan ]
}
close $chan
set chan
foreach_in_collection reg {
puts $chan ]
}
close $chan
set chan
foreach_in_collection reg {
puts $chan ]
}
close $chan
set chan
foreach_in_collection reg {
puts $chan ]
}
close $chan
set chan
foreach_in_collection cell {
puts $chan ]
}
close $chan
set chan
foreach_in_collection pin {
puts $chan ]
}
close $chan
set chan
foreach_in_collection net {
puts $chan ]
}
close $chan
set chan
foreach_in_collection port {
puts $chan ]
}
close $chan
set chan
foreach_in_collection clk {
puts $chan ]
}
close $chan
set chan
foreach_in_collection keeper {
puts $chan ]
}
close $chan
exit