Fixed bug in opt_reduce (see vloghammer issue_044)

This commit is contained in:
Clifford Wolf 2014-05-12 12:45:47 +02:00
parent f69b5800c9
commit 68c059565a
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}