Altera Home Page
Literature Licensing
Buy On-Line Download

  Home   |   Products   |   Support   |   End Markets   |   Technology Center   |   Education & Events   |   Corporate   |   Buy On-Line  
  Knowledge Database   |   Devices   |   Design Software   |   Intellectual Property   |   Design Examples   |   mySupport   |   Reference Designs  

 Products
      MAX/MAX II
      Stratix/Stratix GX
      Nios II
  
 Functionality
      Arithmetic
      Memory
      Bus & I/O
      Logic
      Interfaces & Peripherals
      DSP
      Communications
      PLL & Clocking
  
 Design Entry
      Quartus II Project
      Tcl
      VHDL
      Verilog HDL
      C Code Examples
      DSP Builder
      TimeQuest
   On-Chip Debugging
  
 Simulation Tools
      Mentor Graphics ModelSim
      Cadence NCsim
      Synopsys VCS
  
 Legacy Examples
      Graphic Editor
      AHDL
  

Quartus II Tcl Example: Custom Report Panels

Beginning with version 4.1 of the Quartus® II software, you can create your own custom report panels in the Compilation Report in the Quartus II GUI. Beginning with version 4.2, you can direct the output from the report_timing command to a report panel. Beginning with version 5.0, you can create custom folders for your custom report panels. In versions earlier than 5.0, you can create custom report panels only in existing report folders.

If you're not familiar with report panels, refer to the Report Panel Overview page.

Working With Custom Report Panels

Follow these general steps to create custom report panels.

  1. Create a report panel if it does not already exist. If it does exist, you can append data to the panel. You must delete the panel and add rows again if you want to change the data.
  2. Insert rows of data in the custom panel. When you insert rows, they are automatically inserted sequentially; you cannot insert rows out of order.
  3. Save the changes to the report database.

The following code provides a basic example of creating custom report panels. It works in version 4.1 and later of the Quartus II software.

load_package report
project_open chiptrip
load_report

# Set panel name and id
set panel "Fitter||My Table"
set id    [get_report_panel_id $panel]

# Check if specified panel exists. Delete it if yes.
if {$id != -1} {
    delete_report_panel -id $id
}

# Create the specified panel and get its id
set id    [create_report_panel -table $panel]

# Add Timing Analyzer Summary to it
add_row_to_table -id $id {{Name} {Value}}
add_row_to_table -id $id {{Number of Registers} {100}}

# Save the changes to the report database
save_report_database

unload_report
project_close

For an example of a script that creates a custom report panel, see the Non-Default Global Assignment Report page.

  Please Give Us Feedback