3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-25 21:57:01 +00:00

Bugfixes in handling of "keep" attribute on wires

This commit is contained in:
Clifford Wolf 2015-10-15 14:57:28 +02:00
parent 5dd3e93e8f
commit 1d83854d84
2 changed files with 8 additions and 2 deletions

View file

@ -136,7 +136,7 @@ struct OptMuxtreeWorker
}
}
for (auto wire : module->wires()) {
if (wire->port_output)
if (wire->port_output || wire->get_bool_attribute("\\keep"))
for (int idx : sig2bits(RTLIL::SigSpec(wire)))
bit2info[idx].seen_non_mux = true;
}