projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f69b580
)
Fixed bug in opt_reduce (see vloghammer issue_044)
author
Clifford Wolf
<clifford@clifford.at>
Mon, 12 May 2014 10:45:47 +0000
(12:45 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Mon, 12 May 2014 10:45:47 +0000
(12:45 +0200)
passes/opt/opt_reduce.cc
patch
|
blob
|
history
diff --git
a/passes/opt/opt_reduce.cc
b/passes/opt/opt_reduce.cc
index fee8fb71b1069119cec512b29d81646e0a76dc92..dfe214416f928727d9f737e135848e8a958182e0 100644
(file)
--- a/
passes/opt/opt_reduce.cc
+++ b/
passes/opt/opt_reduce.cc
@@
-73,7
+73,10
@@
struct OptReduceWorker
for (auto child_cell : drivers.find(chunk)) {
if (child_cell->type == cell->type) {
opt_reduce(cells, drivers, child_cell);
- new_sig_a.append(child_cell->connections["\\A"]);
+ if (child_cell->connections["\\Y"].extract(0, 1) == chunk)
+ new_sig_a.append(child_cell->connections["\\A"]);
+ else
+ new_sig_a.append(RTLIL::State::S0);
imported_children = true;
}
}