Merge pull request #624 from YosysHQ/gatecat/fix-623

opt-timing: Skip undriven nets
This commit is contained in:
gatecat 2021-03-15 17:00:03 +00:00 committed by GitHub
commit 3cf4a33666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,8 @@ class TimingOptimiser
max_net_delay.clear();
for (auto net : sorted(ctx->nets)) {
NetInfo *ni = net.second;
if (ni->driver.cell == nullptr)
continue;
for (auto usr : ni->users) {
max_net_delay[std::make_pair(usr.cell->name, usr.port)] = std::numeric_limits<delay_t>::max();
}