3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Selective boolopt

This commit is contained in:
Alain Dargelas 2024-11-25 15:19:35 -08:00
parent e8e25b4cea
commit b2587f5e68

View file

@ -135,7 +135,7 @@ struct AigmapPass : public Pass {
SigBit new_bit = module->addWire(NEW_ID2_SUFFIX("new_bit"));
auto gate = module->addNotGate(NEW_ID2_SUFFIX("inv"), bit, new_bit);
for (auto attr : cell->attributes)
gate->attributes[attr.first] = attr.second;
gate->attributes[attr.first] = attr.second;
bit = new_bit;
if (select_mode)
new_sel.insert(gate->name);