diff options
author | Tim Edwards <tim@opencircuitdesign.com> | 2015-05-08 09:05:56 -0400 |
---|---|---|
committer | Tim Edwards <tim@opencircuitdesign.com> | 2015-05-08 09:05:56 -0400 |
commit | 45292fd098f673ad6811f76d651101976fac3625 (patch) | |
tree | 02b7d11bcbd956b9beb622eb3f092835a1bcf951 /qrouter.tcl.in | |
parent | ad6381b9d6ccf1515ad5fde4f43dc331e3b63515 (diff) |
Tweaked the "standard_route" script to make a second stage2
attempt if fewer than 5 routes remain. There is no sense in
abandoning the routing if it is so close to completion.
Diffstat (limited to 'qrouter.tcl.in')
-rw-r--r-- | qrouter.tcl.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qrouter.tcl.in b/qrouter.tcl.in index 26f1960..12ad6cd 100644 --- a/qrouter.tcl.in +++ b/qrouter.tcl.in @@ -89,13 +89,16 @@ proc qrouter::write_congested {filename} { # Upon first success, write the DEF file output and quit. # If "stage2 mask none" leaves failing routes, then write # the routes done so far to the DEF file output and remain -# in the interpreter. +# in the interpreter. If "stage2 mask none" leaves fewer +# than five routes (a very ad hoc number), give it a +# second try. #--------------------------------------------------------- proc qrouter::standard_route {} { if {![stage1]} {write_def; quit} if {![stage2]} {write_def; quit} set result [stage2 mask none] + if {$result < 5} {set result [stage2 mask none]} write_def if {$result == 0} {quit} } |