3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-20 07:36:39 +00:00

sta: do not consider constant bits

This commit is contained in:
Eddie Hung 2020-03-17 13:42:52 -07:00
parent c5e13f412a
commit d58a648f45

View file

@ -111,8 +111,11 @@ struct StaWorker
if (it == t.arrival.end())
continue;
const auto &s = it->second.second;
if (cell->hasPort(s.name))
data[cell->getPort(s.name)[s.offset]].fanouts.emplace_back(bit,it->second.first,s.name);
if (cell->hasPort(s.name)) {
auto &s_bit = cell->getPort(s.name)[s.offset];
if (s_bit.wire)
data[s_bit].fanouts.emplace_back(bit,it->second.first,s.name);
}
}
}
}