aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/bitstream.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-11-29 10:56:04 +0000
committerDavid Shah <dave@ds0.me>2019-11-29 10:56:04 +0000
commit1c1c096861d553f1fc71d7db3652af25b980b219 (patch)
tree9139aa1437724dc83d8ecafc0867318a8e0083bc /ecp5/bitstream.cc
parentff30bc87fed024189a49bc372b1db0bde6db29f2 (diff)
downloadnextpnr-1c1c096861d553f1fc71d7db3652af25b980b219.tar.gz
nextpnr-1c1c096861d553f1fc71d7db3652af25b980b219.tar.bz2
nextpnr-1c1c096861d553f1fc71d7db3652af25b980b219.zip
ecp5: Fix 25k DDRDLLA bitstream gen
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r--ecp5/bitstream.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index b491bf75..9b1a65ab 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -1397,8 +1397,9 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
Loc loc = ctx->getBelLocation(ci->bel);
bool u = loc.y<15, r = loc.x> 15;
std::string tiletype = fmt_str("DDRDLL_" << (u ? 'U' : 'L') << (r ? 'R' : 'L'));
- if (ctx->args.type == ArchArgs::LFE5U_25F || ctx->args.type == ArchArgs::LFE5UM_25F ||
- ctx->args.type == ArchArgs::LFE5UM5G_25F)
+ if ((ctx->args.type == ArchArgs::LFE5U_25F || ctx->args.type == ArchArgs::LFE5UM_25F ||
+ ctx->args.type == ArchArgs::LFE5UM5G_25F) &&
+ u)
tiletype += "A";
std::string tile = ctx->getTileByType(tiletype);
cc.tiles[tile].add_enum("DDRDLL.MODE", "DDRDLLA");