Get_path, Get_path –98 – Altera SDC and TimeQuest API User Manual

Page 108

Advertising
background image

2–98

Chapter 2: SDC and TimeQuest API Package and Commands

sta

SDC and TimeQuest API Reference Manual

© December 2009

Altera Corporation

get_path

Usage

get_path [-from <names>] [-min_path] [-npaths <number>] [-nworst <number>]
[-pairs_only] [-show_routing] [-through <names>] [-to <names>]

Options

-from <names>: Valid sources (string patterns are matched using Tcl string matching)

-min_path: Find the minimum delay path(s)

-npaths <number>: Specifies the number of paths to report. The default value is 1 or the
same value as nworst, if nworst is specified

-nworst <number>: Specifies the maximum number of paths to report for each endpoint. If
unspecified, there is no limit. If nworst is specified, but npaths is not, npaths
defaults to the same value as nworst

-pairs_only: When set, paths with the same start and end points are considered
equivalent. Only the longest delay path for each unique combination is displayed.

-show_routing: Option to display detailed routing in the path

-through <names>: Valid through nodes (string patterns are matched using Tcl string
matching)

-to <names>: Valid destinations (string patterns are matched using Tcl string matching)

Description

Returns a collection of path objects for the longest delay paths between arbitrary points in the netlist.

This command behaves the same as the report_path command. However, instead of reporting the paths, it
returns a Tcl collection of path objects. You can retrieve path object data using the get_path_info and
get_point_info commands.

Note that get_path_info does not provide any clock-related information, required points, or meaningful
slack values, for paths represented by the path objects returned by this function.

For help on the options shared with report_path, see help for the report_path command.

Example

# Define a few helper procedures to print out points
# on a path, and the path itself

proc print_point { point } {

set total [ get_point_info $point -total ]
set incr [ get_point_info $point -incr ]
set node_id [ get_point_info $point -node ]
set type [ get_point_info $point -type ]
set rf [ get_point_info $point -rise_fall]
set node_name ""

if { $node_id ne "" } {
set node_name [ get_node_info $node_id -name ]
}

puts \
[format "%10s %8s %2s %-6s %s" $total $incr $rf $type $node_name ]

}

proc print_path { path } {

puts "Delay : [ get_path_info $path -arrival_time]"
puts ""

Advertising