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;