ecp5: Don't attempt to promote undriven nets to globals

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-06-07 21:20:40 +01:00
parent d946cfd265
commit 8fa3088057

View File

@ -75,7 +75,8 @@ class Ecp5GlobalRouter
dict<IdString, int> 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) {