get_clocks
get_clocks
The following table displays information for the get_clocks Tcl command:
Tcl Package and Version |
Belongs to ::quartus::sdc 1.5 |
||||||||||
Syntax |
get_clocks [-h | -help] [-long_help] [-nocase] [-nowarn] [ <filter>] |
||||||||||
Arguments |
|
||||||||||
Description |
Returns a collection of clocks in the design. When used as an argument to another command, such as the -from or -to options of set_multicycle_path, each node in the clock represents all nodes driven by the clocks in the collection. # The following multicycle constraint applies to all paths ending at registers # driven by clk set_multicycle_path -to [get_clocks clk] 2 The filter for the collection is a Tcl list of wildcards, and must follow standard Tcl or TimeQuest-extension substitution rules. See the help for use_timequest_style_escaping for details. |
||||||||||
Example Usage |
project_open chiptrip create_timing_netlist read_sdc update_timing_netlist set clocks [get_clocks c* -nocase] foreach_in_collection clk $clocks { set name [get_clock_info -name $clk] set period [get_clock_info -period $clk] puts "$name: $period" } delete_timing_netlist project_close |
||||||||||
Return Value |
|
作者:星雨夜澈
出处:http://www.cnblogs.com/dxs959229640/
声明:欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接。