aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/site_router.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-06-14 10:58:42 +0100
committergatecat <gatecat@ds0.me>2021-06-14 10:58:42 +0100
commit377f56c1510bc7da66aa43eb06dc7579fef9b403 (patch)
tree5ca6af38c003648ff686155f8f6c2f704de3a4cf /fpga_interchange/site_router.cc
parentee65e6f32d669cabd1d8a00534410da423348ac4 (diff)
downloadnextpnr-377f56c1510bc7da66aa43eb06dc7579fef9b403.tar.gz
nextpnr-377f56c1510bc7da66aa43eb06dc7579fef9b403.tar.bz2
nextpnr-377f56c1510bc7da66aa43eb06dc7579fef9b403.zip
interchange: Cope with undriven nets in more places
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'fpga_interchange/site_router.cc')
-rw-r--r--fpga_interchange/site_router.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/fpga_interchange/site_router.cc b/fpga_interchange/site_router.cc
index 12dce9f5..fbb87c00 100644
--- a/fpga_interchange/site_router.cc
+++ b/fpga_interchange/site_router.cc
@@ -706,6 +706,8 @@ static bool route_site(SiteArch *ctx, SiteRoutingCache *site_routing_cache, Rout
expansions.reserve(ctx->nets.size());
for (auto &net_pair : ctx->nets) {
+ if (net_pair.first->driver.cell == nullptr)
+ continue;
SiteNetInfo *net = &net_pair.second;
if (net->net->loop == nullptr) {
@@ -792,6 +794,8 @@ void check_routing(const SiteArch &site_arch)
{
for (auto &net_pair : site_arch.nets) {
const NetInfo *net = net_pair.first;
+ if (net->driver.cell == nullptr)
+ continue;
const SiteNetInfo &net_info = net_pair.second;
for (const auto &user : net_info.users) {