ecp5: Don't promote VCC/GND to globals even if connected to clock port

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-05-14 13:07:59 +01:00
parent 2cebd40f2e
commit 2aaef61547

View File

@ -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)) {