From 8fa3088057633a431c342fb03d650ca06a92fb35 Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 7 Jun 2021 21:20:40 +0100 Subject: ecp5: Don't attempt to promote undriven nets to globals Signed-off-by: gatecat --- ecp5/globals.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecp5/globals.cc b/ecp5/globals.cc index b840ac91..ee30fcec 100644 --- a/ecp5/globals.cc +++ b/ecp5/globals.cc @@ -75,7 +75,8 @@ class Ecp5GlobalRouter dict clockCount; for (auto &net : ctx->nets) { NetInfo *ni = net.second.get(); - if (ni->name == ctx->id("$PACKER_GND_NET") || ni->name == ctx->id("$PACKER_VCC_NET")) + if (ni->name == ctx->id("$PACKER_GND_NET") || ni->name == ctx->id("$PACKER_VCC_NET") || + ni->driver.cell == nullptr) continue; clockCount[ni->name] = 0; for (const auto &user : ni->users) { -- cgit v1.2.3