Create_report_panel, Usage, Options – Altera Quartus II Scripting User Manual
Page 379: Description, Example, Create_report_panel –249

Chapter 3: Tcl Packages & Commands
3–249
report
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
create_report_panel
Usage
create_report_panel [-folder] [-table]
Options
-folder: Option to create folder
-table: Option to create table
Description
Creates a new report panel with the specified name.
If -table option is specified, a table is created. If -folder option is specified, a folder is created.
The name must be the full path to the new report panel, such as "Fitter||My Table". If the specified panel
is created successfully, the corresponding panel id is returned.
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 folder name and id
set folder "My Folder"
set folder_id [get_report_panel_id $folder]
# Check if specified folder exists. If not, create it.
if {$folder_id == -1} {
set folder_id [create_report_panel -folder $folder]
}
# Set table name and id
set table "$folder||My Table"
set table_id [get_report_panel_id $table]
# Check if specified table exists. If so, delete it.
if {$table_id != -1} {
delete_report_panel -id $table_id
}
# Create the specified table and get its id
set table_id [create_report_panel -table $table]
# Add Timing Analyzer Summary to the table
add_row_to_table -id $table_id {{Name} {Value}}
add_row_to_table -id $table_id {{Number of Registers} {100}}
# Save the changes to the report database
save_report_database