Get_edge_slacks, Get_edge_slacks –90 – Altera SDC and TimeQuest API User Manual

Page 100

Advertising
background image

2–90

Chapter 2: SDC and TimeQuest API Package and Commands

sta

SDC and TimeQuest API Reference Manual

© December 2009

Altera Corporation

get_edge_slacks

Usage

get_edge_slacks [-hold] [-recovery] [-removal] [-setup]

Options

-hold: Hold analysis

-recovery: Recovery analysis

-removal: Removal analysis

-setup: Setup analysis

Description

Returns a collection of edge slack pairs for the specified analysis type. A setup analysis is performed by
default if no option is specified. Results are sorted by slack, then by the name of the source node for the
edge, and last by the node name of the destination of the edge.

Example

project_open top
create_timing_netlist
read_sdc
update_timing_netlist

foreach_in_collection edge_slack [get_edge_slacks -setup] {

# Each item in the collection is an {edge slack} pair
set edge [lindex $edge_slack 0]
set slack [lindex $edge_slack 1]

set src_node [get_edge_info -src $edge]
set dst_node [get_edge_info -dst $edge]

post_message -type info "Found edge [get_node_info -name $src_node] \
-> [get_node_info -name $dst_node] with slack $slack"

}

delete_timing_netlist
project_close

Advertising