From: Eddie Hung Date: Tue, 16 Apr 2019 20:44:15 +0000 (-0700) Subject: Do not put constants into output_bits X-Git-Tag: working-ls180~1208^2~332 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43cd047fb9d73c43f8fe2c35c457cfa8fc3523ec;p=yosys.git Do not put constants into output_bits --- diff --git a/backends/aiger/xaiger.cc b/backends/aiger/xaiger.cc index 99ca4f8d5..7c7697874 100644 --- a/backends/aiger/xaiger.cc +++ b/backends/aiger/xaiger.cc @@ -229,9 +229,9 @@ struct XAigerWriter /*if (!output_bits.count(b))*/ if (abc_box) co_bits.emplace_back(b, 0); - else { + else if (b.wire) { output_bits.insert(b); - if (b.wire && !b.wire->port_input) + if (!b.wire->port_input) unused_bits.erase(b); } }