Quartus® II Tcl 範例:自訂報告面板

從 Quartus® II 軟體的版本 4.1 開始,您可以在 Quartus® II GUI 的編譯報告中建立您自己的自訂報告面板。從 4.2 版本開始,您可以將輸出從report_timing指令引導到報告面板。從 5.0 版本開始,您可以為自訂報告面板建立自訂資料夾。在 5.0 以上的版本中,您只能在現有的報告資料夾中建立自訂報告面板。

如果您不熟悉報告面板,請參閱 報告面板概覽 頁面。

與自訂報告面板合作

請按照這些一般步驟建立自訂報告面板。

如果目前不存在,請建立報告面板。如果確實存在,您可以將資料附錄到面板上。如果您想要變更資料,您必須刪除面板並再次新增行。

在自訂面板中插入一排排資料。當您插入行時,它們會依循序自動插入;您無法按順序插入行。
儲存報告資料庫的變更。

下列代碼提供了建立自訂報告面板的基本範例。它適用于 Quartus® II 軟體的 4.1 版和更新版本。

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

如需建立自訂報告面板的腳本範例,請參閱 「非預設全球分配報告」 頁面。

這個頁面的內容綜合了英文原始內容的人工翻譯譯文與機器翻譯譯文。本內容是基於一般資訊目的,方便您參考而提供,不應視同完整或準確的內容。如果這個頁面的英文版與譯文之間發生任何牴觸,將受英文版規範及管轄。 查看這個頁面的英文版。