Skip to content

Commit 487646b

Browse files
committed
mock-array: more OpenSTA testing
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 83ff256 commit 487646b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/orfs/mock-array/power.tcl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,22 @@ 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+
107123
set f [open $::env(OUTPUT) w]
108124
puts $f OK
109125
close $f

0 commit comments

Comments
 (0)