Fix input vector for reduce cells.
authorKaj Tuomi <kaj.tuomi@siru.fi>
Thu, 12 Oct 2017 10:05:10 +0000 (13:05 +0300)
committerKaj Tuomi <kaj.tuomi@siru.fi>
Thu, 12 Oct 2017 10:05:10 +0000 (13:05 +0300)
passes/opt/opt_reduce.cc

index eb9d02ad538bd8803391c5509ecd57c219237d6b..10bdf7221eede83e2c2d9d385f13e604fa2f775e 100644 (file)
@@ -88,6 +88,7 @@ struct OptReduceWorker
                RTLIL::SigSpec new_sig_a(new_sig_a_bits);
 
                if (new_sig_a != sig_a || sig_a.size() != cell->getPort("\\A").size()) {
+                       new_sig_a.sort_and_unify();
                        log("    New input vector for %s cell %s: %s\n", cell->type.c_str(), cell->name.c_str(), log_signal(new_sig_a));
                        did_something = true;
                        total_count++;