Skip to content

Commit 03ac96e

Browse files
committed
test/orfs/mock-array: single concern opensta path groups test
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 487646b commit 03ac96e

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

test/orfs/mock-array/mock-array.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ MACROS = [
221221
POWER_TESTS = [
222222
"power",
223223
"power_instances",
224+
"path_groups",
224225
]
225226

226227
def mock_array(name, config):
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

test/orfs/mock-array/power.tcl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -104,22 +104,6 @@ if { abs($total_power_vcd - $total_power_user_activity) > 1e-3 } {
104104
log_cmd report_parasitic_annotation
105105
log_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-
123107
set f [open $::env(OUTPUT) w]
124108
puts $f OK
125109
close $f

0 commit comments

Comments
 (0)