Skip to content

Commit b242abe

Browse files
committed
flow: Add support for scaling min channel width hint estimates
1 parent 9888343 commit b242abe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vtr_flow/scripts/run_vtr_task.pl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
my $shared_script_params = "";
7272
my $verbosity = 0;
7373
my $short_task_names = 0;
74+
my $minw_hint_factor = 1.;
7475

7576
# Parse Input Arguments
7677
while ( $token = shift(@ARGV) ) {
@@ -122,6 +123,10 @@
122123
$short_task_names = 1;
123124
}
124125

126+
elsif ( $token eq "-minw_hint_factor" ) {
127+
$minw_hint_factor = shift(@ARGV);
128+
}
129+
125130
elsif ( $token =~ /^-/ ) {
126131
die "Invalid option: $token\n";
127132
}
@@ -459,6 +464,8 @@ sub generate_single_task_actions {
459464

460465
#Add a hint about the minimum channel width (potentially saves run-time)
461466
my $expected_min_W = ret_expected_min_W($circuit, $arch, $full_params_dirname, $golden_results_file);
467+
$expected_min_W = int($expected_min_W * $minw_hint_factor);
468+
$expected_min_W += ($expected_min_W % 2);
462469
if($expected_min_W > 0) {
463470
$command .= " --min_route_chan_width_hint $expected_min_W";
464471
}

0 commit comments

Comments
 (0)