diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2021-11-06 22:17:31 +1000 |
---|---|---|
committer | YRabbit <rabbit@yrabbit.cyou> | 2021-11-06 22:17:31 +1000 |
commit | 19911ae3a76b158ae7cce90b119c7ba359ccdd59 (patch) | |
tree | 78ff15971fcf2e3a3a6dc64ee735aa8d243b5b11 /ecp5/pack.cc | |
parent | 74b4f6972878d90c6d5c22450dae535559edbea2 (diff) | |
parent | 1615b0a50044b2cef2fa5d572c7010040c98fe19 (diff) | |
download | nextpnr-19911ae3a76b158ae7cce90b119c7ba359ccdd59.tar.gz nextpnr-19911ae3a76b158ae7cce90b119c7ba359ccdd59.tar.bz2 nextpnr-19911ae3a76b158ae7cce90b119c7ba359ccdd59.zip |
Merge branch 'master' into gowin-packages
Diffstat (limited to 'ecp5/pack.cc')
-rw-r--r-- | ecp5/pack.cc | 4 |
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 |