Get_number_of_columns, Usage, Options – Altera Quartus II Scripting User Manual
Page 384: Description, Example, Get_number_of_columns –254

3–254
Chapter 3: Tcl Packages & Commands
report
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
get_number_of_columns
Usage
get_number_of_columns [-id
Options
-id
-name
Description
Returns the number of columns for the specified panel.
Using the panel id provides faster data access than using the panel name.
Panel ids that you have cached may become outdated or invalid if the report is unloaded or reloaded. This
error occurs after compilation or with calls to the "project_close", "unload_report", and "load_report"
commands.
Panel names support wildcards.
The table of contents portion of the Compilation Report window shows short panel names for better
readability. However, the panel name used by this command is the full panel name as shown in the
right-hand side frame of the Compilation Report window or the .rpt file of the corresponding
command-line executable. For example, the table of contents shows the path "Analysis &
Synthesis||Summary". However, the corresponding full path used by this Tcl command is "Analysis &
Synthesis||Analysis & Synthesis Summary".
Example
## Loop through a panel row and print out all its element information
load_package report
project_open chiptrip
load_report
# Set panel name and id
set panel {*Input Pins}
set id [get_report_panel_id $panel]
# Get the number of columns
set col_cnt [get_number_of_columns -id $id]
# Set row name and get row index
set rname {[Cc]lock}
set rindex [get_report_panel_row_index -id $id $rname]
set rname [get_report_panel_data -row $rindex -col 0 -id $id]
puts "\[Input Pins - $rname\]"
for {set i 1} {$i < $col_cnt} {incr i} {
set result "[get_report_panel_data -row 0 -col $i -id $id]: "
append result [get_report_panel_data -row $rindex -col $i -id $id]
puts $result
}
unload_report
project_close