projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31b0002
)
Wrap A and B in sigmap
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 19 Jul 2019 20:23:07 +0000
(13:23 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Fri, 19 Jul 2019 20:23:07 +0000
(13:23 -0700)
passes/opt/wreduce.cc
patch
|
blob
|
history
diff --git
a/passes/opt/wreduce.cc
b/passes/opt/wreduce.cc
index 23e14f7f53863a184d78cf3db22ce4f7748a0e2f..294f0d57e15c35de14e204b87b442e32704ba315 100644
(file)
--- a/
passes/opt/wreduce.cc
+++ b/
passes/opt/wreduce.cc
@@
-366,8
+366,8
@@
struct WreduceWorker
}
if (cell->type.in("$add", "$sub")) {
- SigSpec A =
cell->getPort("\\A"
);
- SigSpec B =
cell->getPort("\\B"
);
+ SigSpec A =
mi.sigmap(cell->getPort("\\A")
);
+ SigSpec B =
mi.sigmap(cell->getPort("\\B")
);
bool sub = cell->type == "$sub";
int i;