aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/pack.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-11-05 15:16:43 +0000
committergatecat <gatecat@ds0.me>2021-11-05 15:16:43 +0000
commitce030a474ca28dcc309892439b0dab331c4f73b0 (patch)
tree9e20c7b7c68f1b1d9679afb3db3c1c13620b0fe9 /ecp5/pack.cc
parent06d58e6eed90aa9c2d16d0fe6286ec59a2f880a2 (diff)
downloadnextpnr-ce030a474ca28dcc309892439b0dab331c4f73b0.tar.gz
nextpnr-ce030a474ca28dcc309892439b0dab331c4f73b0.tar.bz2
nextpnr-ce030a474ca28dcc309892439b0dab331c4f73b0.zip
ecp5: Fix packing of IOFF with IODELAYs
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ecp5/pack.cc')
-rw-r--r--ecp5/pack.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ecp5/pack.cc b/ecp5/pack.cc
index 66cb81b2..cbf882a8 100644
--- a/ecp5/pack.cc
+++ b/ecp5/pack.cc
@@ -2316,7 +2316,9 @@ class Ecp5Packer
set_iologic_mode(iol, "IREG_OREG");
bool drives_iologic = false;
for (auto user : ci->ports.at(ctx->id("Z")).net->users)
- if (is_iologic_input_cell(ctx, user.cell) && user.port == ctx->id("D"))
+ if (is_iologic_input_cell(ctx, user.cell) &&
+ (user.port == ctx->id("D") ||
+ (user.cell->type == ctx->id("TRELLIS_FF") && user.port == ctx->id("DI"))))
drives_iologic = true;
if (drives_iologic) {
// Reconnect to PIO which the packer expects later on