Get_edge_slacks, Usage, Options – Altera Quartus II Scripting User Manual

Page 529: Description, Example, Get_edge_slacks –399

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–399

sta

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

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