aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/globals.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5/globals.cc')
-rw-r--r--ecp5/globals.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/ecp5/globals.cc b/ecp5/globals.cc
index f2a556fa..75535dfe 100644
--- a/ecp5/globals.cc
+++ b/ecp5/globals.cc
@@ -302,7 +302,8 @@ class Ecp5GlobalRouter
}
// Return true if a short (<5) route exists between two wires
- bool has_short_route(WireId src, WireId dst, int thresh = 5) {
+ bool has_short_route(WireId src, WireId dst, int thresh = 5)
+ {
std::queue<WireId> visit;
std::unordered_map<WireId, PipId> backtrace;
visit.push(src);
@@ -310,7 +311,8 @@ class Ecp5GlobalRouter
while (true) {
if (visit.empty() || visit.size() > 1000) {
- log_info ("dist %s -> %s = inf\n", ctx->getWireName(src).c_str(ctx), ctx->getWireName(dst).c_str(ctx));
+ // log_info ("dist %s -> %s = inf\n", ctx->getWireName(src).c_str(ctx),
+ // ctx->getWireName(dst).c_str(ctx));
return false;
}
cursor = visit.front();
@@ -334,7 +336,8 @@ class Ecp5GlobalRouter
cursor = ctx->getPipSrcWire(fnd->second);
length++;
}
- log_info ("dist %s -> %s = %d\n", ctx->getWireName(src).c_str(ctx), ctx->getWireName(dst).c_str(ctx), length);
+ // log_info ("dist %s -> %s = %d\n", ctx->getWireName(src).c_str(ctx), ctx->getWireName(dst).c_str(ctx),
+ // length);
return length < thresh;
}
@@ -360,8 +363,6 @@ class Ecp5GlobalRouter
ctx->bindBel(best_bel, dcc, STRENGTH_LOCKED);
}
-
-
// Insert a DCC into a net to promote it to a global
NetInfo *insert_dcc(NetInfo *net)
{