mirror of https://github.com/YosysHQ/yosys.git
Fixed bug in opt_reduce (see vloghammer issue_044)
This commit is contained in:
parent
f69b5800c9
commit
68c059565a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue