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

Page 521: Description, Example, Get_clock_domain_info –391

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–391

sta

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_clock_domain_info

Usage

get_clock_domain_info [-hold] [-mpw] [-recovery] [-removal] [-setup]

Options

-hold: Hold Analysis

-mpw: Minimum Pulse Width Analysis

-recovery: Recovery Analysis

-removal: Removal Analysis

-setup: Setup Analysis (Default)

Description

Similar to create_timing_summary, the get_clock_domain_info command returns a Tcl list of information
about each clock domain. Each entry in the list is a list of four elements: the clock name, worst-case slack,
endpoint TNS, and edge TNS. TNS istotal negative slack, and it is the sum of all slacks less than zero for
either destination registers or ports in the clock domain (endpoint TNS) or for all edges affecting the clock
domain (edge TNS).

By default, this command creates a Setup Summary. This command can also generate a Hold Summary
(-hold), Recovery Summary (-recovery), Removal Summary (-removal), or Minimum Pulse Width
Summary (-mpw).

Example

project_open my_project

# Always create the netlist first
create_timing_netlist
read_sdc my_project.sdc
update_timing_netlist

# Get domain summary object
set domain_list [get_clock_domain_info -setup]
foreach domain $domain_list {

set name [lindex $domain 0]
set slack [lindex $domain 1]
set keeper_tns [lindex $domain 2]
set edge_tns [lindex $domain 3]

puts "Clock $name : Slack = $slack , TNS = ( $keeper_tns , $edge_tns \
)"

}

# The following command is optional
delete_timing_netlist

project_close

Advertising