summaryrefslogtreecommitdiff
path: root/qrouter.tcl.in
diff options
context:
space:
mode:
authorTim Edwards <tim@opencircuitdesign.com>2015-05-08 09:05:56 -0400
committerTim Edwards <tim@opencircuitdesign.com>2015-05-08 09:05:56 -0400
commit45292fd098f673ad6811f76d651101976fac3625 (patch)
tree02b7d11bcbd956b9beb622eb3f092835a1bcf951 /qrouter.tcl.in
parentad6381b9d6ccf1515ad5fde4f43dc331e3b63515 (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.in5
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}
}