aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
Diffstat (limited to 'passes')
-rw-r--r--passes/techmap/zinit.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/passes/techmap/zinit.cc b/passes/techmap/zinit.cc
index a427c4987..5cfc82ac9 100644
--- a/passes/techmap/zinit.cc
+++ b/passes/techmap/zinit.cc
@@ -141,9 +141,10 @@ struct ZinitPass : public Pass {
cell->setPort(ID::Q, initwire);
}
- for (auto &it : initbits)
- if (donebits.count(it.first) == 0)
- log_error("Failed to handle init bit %s = %s.\n", log_signal(it.first), log_signal(it.second));
+ if (!design->selected_whole_module(module))
+ for (auto &it : initbits)
+ if (donebits.count(it.first) == 0)
+ log_error("Failed to handle init bit %s = %s.\n", log_signal(it.first), log_signal(it.second));
}
}
} ZinitPass;