mirror of https://github.com/YosysHQ/yosys.git
Fix input vector for reduce cells.
This commit is contained in:
parent
2b03a73a46
commit
90be0d800b
|
@ -88,6 +88,7 @@ struct OptReduceWorker
|
||||||
RTLIL::SigSpec new_sig_a(new_sig_a_bits);
|
RTLIL::SigSpec new_sig_a(new_sig_a_bits);
|
||||||
|
|
||||||
if (new_sig_a != sig_a || sig_a.size() != cell->getPort("\\A").size()) {
|
if (new_sig_a != sig_a || sig_a.size() != cell->getPort("\\A").size()) {
|
||||||
|
new_sig_a.sort_and_unify();
|
||||||
log(" New input vector for %s cell %s: %s\n", cell->type.c_str(), cell->name.c_str(), log_signal(new_sig_a));
|
log(" New input vector for %s cell %s: %s\n", cell->type.c_str(), cell->name.c_str(), log_signal(new_sig_a));
|
||||||
did_something = true;
|
did_something = true;
|
||||||
total_count++;
|
total_count++;
|
||||||
|
|
Loading…
Reference in New Issue