diff options
author | gatecat <gatecat@ds0.me> | 2021-06-07 21:20:40 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-06-07 21:20:40 +0100 |
commit | 8fa3088057633a431c342fb03d650ca06a92fb35 (patch) | |
tree | 7cd7a716e7e1ac5776003f0c07fcd67cfd71464c /ecp5 | |
parent | d946cfd265fd137f71ffe40e540ec1d8e5451bd8 (diff) | |
download | nextpnr-8fa3088057633a431c342fb03d650ca06a92fb35.tar.gz nextpnr-8fa3088057633a431c342fb03d650ca06a92fb35.tar.bz2 nextpnr-8fa3088057633a431c342fb03d650ca06a92fb35.zip |
ecp5: Don't attempt to promote undriven nets to globals
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ecp5')
-rw-r--r-- | ecp5/globals.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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<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) { |