diff options
author | gatecat <gatecat@ds0.me> | 2021-03-15 17:00:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 17:00:03 +0000 |
commit | 3cf4a336665e07f8d210aa9d3336f3d5b0e82ea7 (patch) | |
tree | f6a1d4d4bb5bc9c687044404affa2ca82340aa4b /common/timing_opt.cc | |
parent | 035b797ec230aa3d686d9013e0e15d79cd2982c3 (diff) | |
parent | 3c71911c26bd5813d3d72e683d9272098309d0c1 (diff) | |
download | nextpnr-3cf4a336665e07f8d210aa9d3336f3d5b0e82ea7.tar.gz nextpnr-3cf4a336665e07f8d210aa9d3336f3d5b0e82ea7.tar.bz2 nextpnr-3cf4a336665e07f8d210aa9d3336f3d5b0e82ea7.zip |
Merge pull request #624 from YosysHQ/gatecat/fix-623
opt-timing: Skip undriven nets
Diffstat (limited to 'common/timing_opt.cc')
-rw-r--r-- | common/timing_opt.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/timing_opt.cc b/common/timing_opt.cc index 51c27cc6..fd2a3f83 100644 --- a/common/timing_opt.cc +++ b/common/timing_opt.cc @@ -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(); } |