aboutsummaryrefslogtreecommitdiffstats
path: root/passes/opt/muxpack.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-06-07 11:36:19 -0700
committerEddie Hung <eddie@fpgeh.com>2019-06-07 11:36:19 -0700
commit5ab59cd59ee90abc4b6991486854dbe4c3f4d0a4 (patch)
tree9125e545989a9fa32fff2388190a6e98de97299d /passes/opt/muxpack.cc
parent0f6e914ef63d06ae77b54d246b61118c19647f26 (diff)
downloadyosys-5ab59cd59ee90abc4b6991486854dbe4c3f4d0a4.tar.gz
yosys-5ab59cd59ee90abc4b6991486854dbe4c3f4d0a4.tar.bz2
yosys-5ab59cd59ee90abc4b6991486854dbe4c3f4d0a4.zip
Resolve @cliffordwolf comment on sigmap
Diffstat (limited to 'passes/opt/muxpack.cc')
-rw-r--r--passes/opt/muxpack.cc4
1 files changed, 2 insertions, 2 deletions
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;