Skip to content

Commit 001ccd6

Browse files
authored
Merge pull request #8741 from Pinata-Consulting/mock-array-opensta-testing
mock-array: more OpenSTA testing
2 parents a6276ba + fdc375d commit 001ccd6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
14+
# There is no guarantee that the first node in the
15+
# tcl path structure is an exception start point, so use -through
16+
# to ensure we capture a valid path for our testing purposes.
17+
group_path -name test_group -through $from -to $to
18+
if { [llength [find_timing_paths -path_group test_group]] == 0 } {
19+
puts "Error: find_timing_paths -path_group test_group failed"
20+
exit 1
21+
}
22+
23+
set f [open $::env(OUTPUT) w]
24+
puts $f OK
25+
close $f

0 commit comments

Comments
 (0)