From: Eddie Hung Date: Fri, 12 Apr 2019 17:36:05 +0000 (-0700) Subject: PI before CI X-Git-Tag: working-ls180~1208^2~350 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca8ef92a82897b71c3dbc13ab5ff0cbd28339689;p=yosys.git PI before CI --- diff --git a/backends/aiger/xaiger.cc b/backends/aiger/xaiger.cc index bad9322bb..b0770ec96 100644 --- a/backends/aiger/xaiger.cc +++ b/backends/aiger/xaiger.cc @@ -295,12 +295,12 @@ struct XAigerWriter aig_map[State::S0] = 0; aig_map[State::S1] = 1; - for (auto bit : ci_bits) { + for (auto bit : input_bits) { aig_m++, aig_i++; aig_map[bit] = 2*aig_m; } - for (auto bit : input_bits) { + for (auto bit : ci_bits) { aig_m++, aig_i++; aig_map[bit] = 2*aig_m; }