From: Eddie Hung Date: Fri, 21 Jun 2019 22:45:51 +0000 (-0700) Subject: Replace assert with error message X-Git-Tag: working-ls180~1208^2~111 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a0fb3035ebe7d096a22b13a2fb90de891d6ffe5;p=yosys.git Replace assert with error message --- diff --git a/backends/aiger/xaiger.cc b/backends/aiger/xaiger.cc index 637c54ff9..110d727de 100644 --- a/backends/aiger/xaiger.cc +++ b/backends/aiger/xaiger.cc @@ -244,7 +244,8 @@ struct XAigerWriter if (c.second.is_fully_const()) continue; auto is_input = cell->input(c.first); auto is_output = cell->output(c.first); - log_assert(is_input || is_output); + if (!is_input && !is_output) + log_error("Connection '%s' on cell '%s' (type '%s') not recognised!\n", log_id(c.first), log_id(cell), log_id(cell->type)); if (is_input) { for (auto b : c.second.bits()) {