diff options
author | David Shah <dave@ds0.me> | 2019-10-09 14:23:35 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-10-09 14:23:35 +0100 |
commit | c6401413a4511de7faf56254ea27a85b5dc55ca0 (patch) | |
tree | 311bb9f9bc223958304719524310f0154b4fa26c /ecp5/bitstream.cc | |
parent | a14555c8d1c989a56fdd7bdd9c2a401d7d24a6bd (diff) | |
download | nextpnr-c6401413a4511de7faf56254ea27a85b5dc55ca0.tar.gz nextpnr-c6401413a4511de7faf56254ea27a85b5dc55ca0.tar.bz2 nextpnr-c6401413a4511de7faf56254ea27a85b5dc55ca0.zip |
ecp5: Add support for IO registers
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r-- | ecp5/bitstream.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc index 1d153720..acab95dd 100644 --- a/ecp5/bitstream.cc +++ b/ecp5/bitstream.cc @@ -888,9 +888,15 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex std::string datamux_oddr = str_or_default(ci->params, ctx->id("DATAMUX_ODDR"), "PADDO"); if (datamux_oddr != "PADDO") cc.tiles[pic_tile].add_enum(pio + ".DATAMUX_ODDR", datamux_oddr); + std::string datamux_oreg = str_or_default(ci->params, ctx->id("DATAMUX_OREG"), "PADDO"); + if (datamux_oreg != "PADDO") + cc.tiles[pic_tile].add_enum(pio + ".DATAMUX_OREG", datamux_oreg); std::string datamux_mddr = str_or_default(ci->params, ctx->id("DATAMUX_MDDR"), "PADDO"); if (datamux_mddr != "PADDO") cc.tiles[pic_tile].add_enum(pio + ".DATAMUX_MDDR", datamux_mddr); + std::string trimux_tsreg = str_or_default(ci->params, ctx->id("TRIMUX_TSREG"), "PADDT"); + if (trimux_tsreg != "PADDT") + cc.tiles[pic_tile].add_enum(pio + ".TRIMUX_TSREG", trimux_tsreg); } else if (ci->type == ctx->id("DCCA")) { const NetInfo *cen = get_net_or_empty(ci, ctx->id("CE")); if (cen != nullptr) { |