aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/pack.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5/pack.cc')
-rw-r--r--ecp5/pack.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ecp5/pack.cc b/ecp5/pack.cc
index d605b4a3..3b56daa9 100644
--- a/ecp5/pack.cc
+++ b/ecp5/pack.cc
@@ -552,11 +552,13 @@ class Ecp5Packer
if (ionet != nullptr) {
ctx->nets.erase(ionet->name);
tp.cell->ports.at(tp.port).net = nullptr;
+ ci->ports.at(ci->type == ctx->id("$nextpnr_obuf") ? id_I : id_O).net = nullptr;
}
if (ci->type == ctx->id("$nextpnr_iobuf")) {
NetInfo *net2 = ci->ports.at(id_I).net;
if (net2 != nullptr) {
ctx->nets.erase(net2->name);
+ ci->ports.at(id_I).net = nullptr;
}
}
} else {