Get_number_of_rows, Usage, Options – Altera Quartus II Scripting User Manual

Page 385: Description, Example, Get_number_of_rows –255

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–255

report

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_number_of_rows

Usage

get_number_of_rows [-id <table_id>] [-name <table_name>]

Options

-id <table_id>: Id of panel from which to get data

-name <table_name>: Name of panel from which to get data

Description

Returns the number of rows 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 and print out all its row information

load_package report
project_open chiptrip
load_report

# Set panel name and id
set panel {*Fitter Settings}
set id [get_report_panel_id $panel]

# Get the number of rows
set row_cnt [get_number_of_rows -id $id]

for {set i 0} {$i < $row_cnt} {incr i} {
puts [get_report_panel_row -row $i -id $id]
}

unload_report
project_close

Advertising