File tree Expand file tree Collapse file tree 3 files changed +22
-16
lines changed
Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ MACROS = [
221221POWER_TESTS = [
222222 "power" ,
223223 "power_instances" ,
224+ "path_groups" ,
224225]
225226
226227def mock_array (name , config ):
Original file line number Diff line number Diff line change 1+ source $::env(LOAD_POWER_TCL)
2+
3+ # Various checks on path groups
4+ set first_path [lindex [find_timing_paths] 0]
5+ set from [get_property [get_property $first_path startpoint] full_name]
6+ set to [get_property [get_property $first_path endpoint] full_name]
7+ puts " Checking if we can find timing paths from $from to $to "
8+ if { [llength [find_timing_paths -from $from -to $to ]] == 0 } {
9+ puts " Error: find_timing_paths -from $from -to $to failed"
10+ exit 1
11+ }
12+ puts " Checking if we can create a group_path from $from to $to "
13+ group_path -name test_group -from $from -to $to
14+ if { [llength [find_timing_paths -path_group test_group]] == 0 } {
15+ puts " Error: find_timing_paths -path_group test_group failed"
16+ exit 1
17+ }
18+
19+ set f [open $::env(OUTPUT) w]
20+ puts $f OK
21+ close $f
Original file line number Diff line number Diff line change @@ -104,22 +104,6 @@ if { abs($total_power_vcd - $total_power_user_activity) > 1e-3 } {
104104log_cmd report_parasitic_annotation
105105log_cmd report_activity_annotation -report_unannotated
106106
107- # some drive-by tests for OpenSTA path groups
108- set first_path [lindex [find_timing_paths] 0]
109- set from [get_property [get_property $first_path startpoint] full_name]
110- set to [get_property [get_property $first_path endpoint] full_name]
111- puts " Checking if we can find timing paths from $from to $to "
112- if { [llength [find_timing_paths -from $from -to $to ]] == 0 } {
113- puts " Error: find_timing_paths -from $from -to $to failed"
114- exit 1
115- }
116- puts " Checking if we can create a group_path from $from to $to "
117- group_path -name test_group -from $from -to $to
118- if { [llength [find_timing_paths -path_group test_group]] == 0 } {
119- puts " Error: find_timing_paths -path_group test_group failed"
120- exit 1
121- }
122-
123107set f [open $::env(OUTPUT) w]
124108puts $f OK
125109close $f
You can’t perform that action at this time.
0 commit comments