From: Eddie Hung Date: Fri, 7 Jun 2019 18:36:19 +0000 (-0700) Subject: Resolve @cliffordwolf comment on sigmap X-Git-Tag: yosys-0.9~48^2~20 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ab59cd59ee90abc4b6991486854dbe4c3f4d0a4;p=yosys.git Resolve @cliffordwolf comment on sigmap --- diff --git a/passes/opt/muxpack.cc b/passes/opt/muxpack.cc index 8c4db4e4d..b060389e3 100644 --- a/passes/opt/muxpack.cc +++ b/passes/opt/muxpack.cc @@ -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;