From b97a9cd3f3619f035af4792de199298487c689a9 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 11 Dec 2019 11:49:13 -0800 Subject: [PATCH] Supress error for unhandled \init if whole module selected --- passes/techmap/zinit.cc | 7 ++++--- 1 file 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;