From 98d1c5a411a9b349298384d32627f0fa1229986f Mon Sep 17 00:00:00 2001 From: gatecat Date: Thu, 4 Mar 2021 11:34:20 +0000 Subject: timing: Skip route delays for unplaced/nullptr cells Signed-off-by: gatecat --- common/timing.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/timing.cc b/common/timing.cc index dd38ee45..77206c30 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -140,8 +140,13 @@ void TimingAnalyser::get_route_delays() { for (auto net : sorted(ctx->nets)) { NetInfo *ni = net.second; - for (auto &usr : ni->users) + if (ni->driver.cell == nullptr || ni->driver.cell->bel == BelId()) + continue; + for (auto &usr : ni->users) { + if (usr.cell->bel == BelId()) + continue; ports.at(CellPortKey(usr)).route_delay = DelayPair(ctx->getNetinfoRouteDelay(ni, usr)); + } } } -- cgit v1.2.3