aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/globals.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-05-14 13:07:59 +0100
committerDavid Shah <dave@ds0.me>2020-05-14 13:07:59 +0100
commit2aaef61547b78fc005cc7e0e7b6651660f58123a (patch)
tree644820ec3b3b0958e12bb03418870c4797bf3d26 /ecp5/globals.cc
parent2cebd40f2e26207f1ac22471ac269ede2784c7d0 (diff)
downloadnextpnr-2aaef61547b78fc005cc7e0e7b6651660f58123a.tar.gz
nextpnr-2aaef61547b78fc005cc7e0e7b6651660f58123a.tar.bz2
nextpnr-2aaef61547b78fc005cc7e0e7b6651660f58123a.zip
ecp5: Don't promote VCC/GND to globals even if connected to clock port
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/globals.cc')
-rw-r--r--ecp5/globals.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ecp5/globals.cc b/ecp5/globals.cc
index 65b1710f..28061e1a 100644
--- a/ecp5/globals.cc
+++ b/ecp5/globals.cc
@@ -68,6 +68,8 @@ class Ecp5GlobalRouter
std::unordered_map<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"))
+ continue;
clockCount[ni->name] = 0;
for (const auto &user : ni->users) {
if (is_clock_port(user)) {