数字ASIC设计概要:Timing Related Script

风行水上 @ 2009-04-27 21:04:28
标签:

列出存在Timing Path的clock

proc list_clock_group {} {
    set all_clocks [get_clock *]
    echo "# clock = [sizeof_collection $all_clocks]"
    foreach_in_collection clk_from $all_clocks {
        set name_from [get_object_name $clk_from]
        foreach_in_collection clk_to $all_clocks {
            set name_to [get_object_name $clk_to]
            # Skip same clock
            if {$name_from == $name_to} continue
            set timing_path [get_timing_path -from $clk_from -to $clk_to]
            set n_path [sizeof_collection $timing_path]
            if {$n_path]>0} {
                echo "TIMING PATH: $name_from -> $name_to : $n_path"
            }
        }
    }
}
标签:

分享到:
comments powered by Disqus

24/27ms