Example – Altera Quartus II Scripting User Manual

Page 634

Advertising
background image

3–504

Chapter 3: Tcl Packages & Commands

timing_report

Quartus II Scripting Reference Manual

© July 2013

Altera Corporation

# To match all indices of bus "a", type:
list_path -to a[*]

All other uses of square brackets must be escaped if you do not intend to use them as string patterns. For
example, to match indices 0, 1, and 2 of the bus "a", type:

list_path -to "a[escape_brackets \[]\[0-2\][escape_brackets \]]"

For more information about escaping square brackets, type "escape_brackets -h".

You must run the Timing Analyzer (quartus_tan) successfully before using this command, so that the
Timing Analyzer report sections generated for the project appear in the Compilation Report. Note that if
the requested path(s) are not found in the Timing Analysis report panel, the command does not report
anything, and the return value simply shows "0". Otherwise, the command returns the number of reported
paths.

This command is similar to the "report_timing" command in the ::quartus::timing package (accessible from
the quartus_tan executable). The "report_timing" command does not require a completed Timing Analysis
report, and therefore can report paths even if they do not appear in the report.

Example

# The following examples work from within the Quartus II
# Tcl Console after a successful Timing Analysis:

# List paths that represent input setup paths
if {[list_path -tsu] == 0} {

puts "No Tsu paths exist in the design"

}

# List clock setup paths for clock clk
list_path -clock_setup -clock_filter clk

# List clock setup paths from clock clk to clock clk
list_path -clock_setup -src_clock_filter clk -clock_filter clk

# List clock setup paths for clock clk
# from registers abc* to registers xyz*
list_path -clock_setup -clock_filter clk -from abc* -to xyz*

# List the top 5 pin-to-pin combinational paths
list_path -tpd -npaths 5

# List the top 5 pin-to-pin combinational paths and
# write output to an out.tao file
set path_count [list_path -tpd -npaths 5 -file out.tao]
puts "$path_count == 5"

# Append min tpd results to the existing out.tao file
list_path -tpd -npaths 5 -file out.tao -append

# Specify bus
list_path -from in[0]

Advertising