Get_report_panel_row_index, Usage, Options – Altera Quartus II Scripting User Manual
Page 392: Description, Example, Get_report_panel_row_index –262

3–262
Chapter 3: Tcl Packages & Commands
report
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
get_report_panel_row_index
Usage
get_report_panel_row_index [-id
Options
-id
-name
Description
Gets the row index of the specified panel row name.
Row name refers to the first element content of the specified row. The row index is a non-negative integer
for an existing row. Row index is -1 if the row name is not found in the panel.
Using the row index and panel id provides faster data access than using row name and panel name.
Row indices and 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.
Row and 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
load_package report
project_open chiptrip
load_report
# Set panel name and id
set panel {*Input Pins}
set id [get_report_panel_id $panel]
# Set row name and index
set rname {[Cc]lock}
set rindex [get_report_panel_row_index -id $id $rname]
# Get data out of the specified panel
set pc_str [get_report_panel_data -id $id -row 0 -col 1]
set pin_cnt [get_report_panel_data -id $id -row $rindex -col 1]
set iob_str [get_report_panel_data -id $id -row 0 -col 2]
set io_bank [get_report_panel_data -id $id -row $rindex -col 2]
# Output results
puts "$pc_str: $pin_cnt"
puts "$iob_str: $io_bank"
unload_report
project_close