Altera Home Page
文档资料 许可
在线购买 下载

  主页   |   产品   |   支持   |   最终市场   |   技术中心   |   教育与活动   |   公司介绍   |   在线购买  
  mySupport   |   器件   |   软件   |   IP   |   设计范例   |   参考设计  

 产品
      MAX/MAX II
      Stratix/Stratix GX
      Nios II
  
 功能
      算法
      存储器
      总线及I/O
      逻辑
      接口与外设
      DSP
      通信
      PLL & Clocking
  
 设计输入方法
      Quartus II软件工程
      Tcl
      VHDL
      Verilog HDL
      C Code 范例
      DSP Builder
      TimeQuest
   片内调试
  
 仿真工具
      Mentor Graphics ModelSim
      Cadence NCsim
      Synopsys VCS
  
 旧范例
      图形编辑器
      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.

Design Examples Disclaimer

These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is” basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera.

  请填写反馈意见