We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6114fbb + f853b11 commit 7112b11Copy full SHA for 7112b11
1 file changed
flow/scripts/util.tcl
@@ -74,7 +74,10 @@ proc recover_power_helper { } {
74
}
75
76
proc extract_stage { input_file } {
77
- if { ![regexp {/([0-9])_(([0-9])_)?} $input_file match num1 _ num2] } {
+ # Match the stage prefix on the basename, not the full path: an ancestor
78
+ # dir like ".../4_something/3_place.odb" would otherwise match "4_" -> stage 4.
79
+ set stage_file [file tail $input_file]
80
+ if { ![regexp {^([0-9])_(?:([0-9])_)?} $stage_file match num1 num2] } {
81
puts "Error: Could not determine design stage from $input_file"
82
exit 1
83
0 commit comments