aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/bitstream.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-04-15 20:25:56 +0100
committerDavid Shah <dave@ds0.me>2020-04-15 20:25:56 +0100
commitde00c00aac71bfd22fdd8ec663e78c0933383852 (patch)
tree0ad894f2054e8923b8c90818f1b8f2ba73b7f85a /ecp5/bitstream.cc
parent44582517650fb22787ae6250c789bf71fb21ca4c (diff)
downloadnextpnr-de00c00aac71bfd22fdd8ec663e78c0933383852.tar.gz
nextpnr-de00c00aac71bfd22fdd8ec663e78c0933383852.tar.bz2
nextpnr-de00c00aac71bfd22fdd8ec663e78c0933383852.zip
ecp5: Fix CSDECODE bitgen
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r--ecp5/bitstream.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index 8dfd1f8c..dbab920b 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -1079,6 +1079,9 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
tg.config.add_enum(ebr + ".OCEAMUX", str_or_default(ci->params, ctx->id("OCEAMUX"), "OCEA"));
tg.config.add_enum(ebr + ".OCEBMUX", str_or_default(ci->params, ctx->id("OCEBMUX"), "OCEB"));
+ std::reverse(csd_a.begin(), csd_a.end());
+ std::reverse(csd_b.begin(), csd_b.end());
+
tg.config.add_word(ebr + ".CSDECODE_A", csd_a);
tg.config.add_word(ebr + ".CSDECODE_B", csd_b);