Resolve @cliffordwolf comment on sigmap
authorEddie Hung <eddie@fpgeh.com>
Fri, 7 Jun 2019 18:36:19 +0000 (11:36 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 7 Jun 2019 18:36:19 +0000 (11:36 -0700)
passes/opt/muxpack.cc

index 8c4db4e4d8ce642c70b6789119e5133464f2edf0..b060389e3e7befbb4135017982c178445dedb0ee 100644 (file)
@@ -94,9 +94,9 @@ struct MuxpackWorker
                {
                        log_debug("Considering %s (%s)\n", log_id(cell), log_id(cell->type));
 
-                       SigSpec a_sig = cell->getPort("\\A");
+                       SigSpec a_sig = sigmap(cell->getPort("\\A"));
                        if (cell->type == "$mux") {
-                               SigSpec b_sig = cell->getPort("\\B");
+                               SigSpec b_sig = sigmap(cell->getPort("\\B"));
                                if (sig_chain_prev.count(a_sig) + sig_chain_prev.count(b_sig) != 1)
                                        goto start_cell;