aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-12-06 10:51:17 +0000
committerDavid Shah <dave@ds0.me>2018-12-06 10:51:17 +0000
commitdbaabae23594dc3ac058abeb9f3de2db756a4636 (patch)
treece2d33e1bd9815fdaf5e6d14aa515d57463f800d /ice40
parentd298687dc2472e3afd2b19979719658b5eba3132 (diff)
downloadnextpnr-dbaabae23594dc3ac058abeb9f3de2db756a4636.tar.gz
nextpnr-dbaabae23594dc3ac058abeb9f3de2db756a4636.tar.bz2
nextpnr-dbaabae23594dc3ac058abeb9f3de2db756a4636.zip
ice40: Put debug logging behind ctx->debug
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/chains.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/ice40/chains.cc b/ice40/chains.cc
index 3ef367f1..b3b54d6b 100644
--- a/ice40/chains.cc
+++ b/ice40/chains.cc
@@ -134,11 +134,13 @@ class ChainConstrainer
// Find the user corresponding to the next CIN
int replaced_ports = 0;
- log_info("cell: %s\n", cin_cell->name.c_str(ctx));
+ if (ctx->debug)
+ log_info("cell: %s\n", cin_cell->name.c_str(ctx));
for (auto port : {id_CIN, id_I3}) {
auto &usr = lc->ports.at(id_O).net->users;
- for (auto user : usr)
- log_info("%s.%s\n", user.cell->name.c_str(ctx), user.port.c_str(ctx));
+ if (ctx->debug)
+ for (auto user : usr)
+ log_info("%s.%s\n", user.cell->name.c_str(ctx), user.port.c_str(ctx));
auto fnd_user = std::find_if(usr.begin(), usr.end(),
[&](const PortRef &pr) { return pr.cell == cin_cell && pr.port == port; });
if (fnd_user != usr.end()) {