diff options
author | gatecat <gatecat@ds0.me> | 2021-03-15 16:08:47 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-03-15 16:08:47 +0000 |
commit | 3c71911c26bd5813d3d72e683d9272098309d0c1 (patch) | |
tree | f6a1d4d4bb5bc9c687044404affa2ca82340aa4b | |
parent | 035b797ec230aa3d686d9013e0e15d79cd2982c3 (diff) | |
download | nextpnr-3c71911c26bd5813d3d72e683d9272098309d0c1.tar.gz nextpnr-3c71911c26bd5813d3d72e683d9272098309d0c1.tar.bz2 nextpnr-3c71911c26bd5813d3d72e683d9272098309d0c1.zip |
opt-timing: Skip undriven nets
Signed-off-by: gatecat <gatecat@ds0.me>
-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(); } |